Changeset 378014
- Timestamp:
- 04/27/2011 04:54:50 PM (15 years ago)
- Location:
- advanced-user-agent-displayer/trunk
- Files:
-
- 3 added
- 3 edited
-
auad.php (modified) (1 diff)
-
img/24/net/msie-9.0.png (added)
-
img/24/os/android.png (added)
-
img/24/os/ipad.png (added)
-
include/browser.php (modified) (4 diffs)
-
readme.txt (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
advanced-user-agent-displayer/trunk/auad.php
r325842 r378014 5 5 Plugin URI: http://www.moallemi.ir/en/blog/2009/09/20/advanced-user-agent-displayer/ 6 6 Description: Shows user agent information to your blog comments by adding browser and platform icons. 7 Version: 2.7 7 Version: 2.7.5 8 8 Author: Reza Moallemi 9 9 Author URI: http://www.moallemi.ir/blog -
advanced-user-agent-displayer/trunk/include/browser.php
r325840 r378014 7 7 8 8 Author: Reza Moallemi 9 Last modified: December 29, 20109 Last modified: April 27, 2011 10 10 11 11 ************************************************************** 12 12 13 13 Copyright (C) 2003 Gary White 14 Copyright (C) 201 0Reza Moallemi14 Copyright (C) 2011 Reza Moallemi 15 15 16 16 This program is free software; you can redistribute it and/or … … 106 106 $bd['pver'] = $val; 107 107 } 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 108 126 elseif (stripos($agent,'mac')) 109 127 $bd['platform'] = "MacIntosh"; … … 179 197 $val = explode('Flock',$agent); 180 198 $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 187 201 $bd['browser'] = 'Lunascape'; 188 202 $val = explode("lunascape",strtolower($agent)); … … 397 411 } 398 412 413 if(stripos($agent,'Android')) { 414 $val = explode(" ",stristr($agent,"android")); 415 $bd['platform'] = $val[0]; 416 $bd['pver'] = $val[1]; 417 } 418 399 419 // finally assign our properties 400 420 $this->Name = $bd['browser']; -
advanced-user-agent-displayer/trunk/readme.txt
r325840 r378014 4 4 Tags: comment,comments,user,agent,user agent,browser,os,operating system,platform, useragent, کاوشگر 5 5 Requires at least: 2.7.1 6 Tested up to: 3. 16 Tested up to: 3.2.1 7 7 Stable tag: "trunk" 8 8 … … 16 16 Platform: Windows (2000, XP, Vista, 7), Linux, Mac, iPhone and ... 17 17 18 What's New in version 2.7.5 18 19 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 25 23 26 24 … … 29 27 * Persian - [Reza Moallemi](http://www.moallemi.ir/) 30 28 * French - [Wolforg](http://www.wptrads.fr/) 29 31 30 32 31 == Installation == … … 45 44 46 45 == 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 47 51 48 52 = 2.7 =
Note: See TracChangeset
for help on using the changeset viewer.