Plugin Directory

Changeset 378014


Ignore:
Timestamp:
04/27/2011 04:54:50 PM (15 years ago)
Author:
moallemi
Message:
 
Location:
advanced-user-agent-displayer/trunk
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • advanced-user-agent-displayer/trunk/auad.php

    r325842 r378014  
    55    Plugin URI: http://www.moallemi.ir/en/blog/2009/09/20/advanced-user-agent-displayer/
    66    Description: Shows user agent information to your blog comments by adding  browser and platform icons.
    7     Version: 2.7
     7    Version: 2.7.5
    88    Author: Reza Moallemi
    99    Author URI: http://www.moallemi.ir/blog
  • advanced-user-agent-displayer/trunk/include/browser.php

    r325840 r378014  
    77   
    88    Author: Reza Moallemi
    9     Last modified: December 29, 2010
     9    Last modified: April 27, 2011
    1010
    1111    **************************************************************
    1212
    1313    Copyright (C) 2003  Gary White
    14     Copyright (C) 2010  Reza Moallemi
     14    Copyright (C) 2011  Reza Moallemi
    1515
    1616    This program is free software; you can redistribute it and/or
     
    106106                $bd['pver'] = $val;
    107107            }
     108           
     109            elseif(preg_match('/iPad/i', $agent)){
     110                $bd['browser']= 'Safari';
     111                $bd['platform']="iPad";
     112                if(preg_match('/CPU\ OS\ ([._0-9a-zA-Z]+)/i', $agent, $regmatch))
     113                    $bd['pver']=" iOS ".str_replace("_", ".", $regmatch[1]);
     114            }elseif(preg_match('/iPod/i', $agent)){
     115                $bd['browser']= 'Safari';
     116                $bd['platform']="iPod";
     117                if(preg_match('/iPhone\ OS\ ([._0-9a-zA-Z]+)/i', $agent, $regmatch))
     118                    $bd['pver']=" iOS ".str_replace("_", ".", $regmatch[1]);
     119            }elseif(preg_match('/iPhone/i', $agent)){
     120                $bd['browser']= 'Safari';
     121                $bd['platform']="iPhone";
     122                if(preg_match('/iPhone\ OS\ ([._0-9a-zA-Z]+)/i', $agent, $regmatch))
     123                    $bd['pver']=" iOS ".str_replace("_", ".", $regmatch[1]);
     124            }
     125           
    108126            elseif (stripos($agent,'mac'))
    109127                $bd['platform'] = "MacIntosh";
     
    179197                $val = explode('Flock',$agent);
    180198                $bd['version'] = $val[1];
    181             }elseif(stripos($agent,'iphone')){//test for iPhone
    182                 $bd['browser'] = 'Safari';
    183                 $val = explode('Safari',$agent);
    184                 $bd['version'] = $val[1];
    185                 $bd['platform'] = 'iPhone';
    186             }elseif(stripos($agent,'lunascape')){ //test for Lunascape
     199            }
     200            elseif(stripos($agent,'lunascape')){ //test for Lunascape
    187201                $bd['browser'] = 'Lunascape';
    188202                $val = explode("lunascape",strtolower($agent));
     
    397411            }
    398412           
     413            if(stripos($agent,'Android')) {
     414                $val = explode(" ",stristr($agent,"android"));
     415                $bd['platform'] = $val[0];
     416                $bd['pver'] = $val[1];
     417            }
     418           
    399419            // finally assign our properties
    400420            $this->Name = $bd['browser'];
  • advanced-user-agent-displayer/trunk/readme.txt

    r325840 r378014  
    44Tags: comment,comments,user,agent,user agent,browser,os,operating system,platform, useragent, کاوشگر
    55Requires at least: 2.7.1
    6 Tested up to: 3.1
     6Tested up to: 3.2.1
    77Stable tag: "trunk"
    88
     
    1616Platform: Windows (2000, XP, Vista, 7), Linux, Mac, iPhone and ...
    1717
     18What's New in version 2.7.5
    1819
    19 What's New in version 2.7
    20 
    21     * Added support for x86_64 linux
    22     * Added support for opera 11 and later
    23     * Added support for Ubuntu and Fedora versions
    24     * Fixed a bug where icons did not show if the os was linux mint
     20    * Added support for iPhone, iPad and iPod
     21    * Added Android phones and tablets
     22    * Added support for Internet Explorer 9
    2523
    2624
     
    2927* Persian - [Reza Moallemi](http://www.moallemi.ir/)
    3028* French - [Wolforg](http://www.wptrads.fr/)
     29
    3130
    3231== Installation ==
     
    4544
    4645== Changelog ==
     46
     47= 2.7.5 =
     48* Added support for iPhone, iPad and iPod
     49* Added Android phones and tablets
     50* Added support for Internet Explorer 9
    4751
    4852= 2.7 =
Note: See TracChangeset for help on using the changeset viewer.