Changeset 426533
- Timestamp:
- 08/20/2011 09:01:06 PM (15 years ago)
- Location:
- wp-useragent/trunk
- Files:
-
- 2 added
- 2 edited
-
img/16/os/red-hat.png (added)
-
img/24/os/red-hat.png (added)
-
readme.txt (modified) (2 diffs)
-
wp-useragent.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-useragent/trunk/readme.txt
r383859 r426533 5 5 Requires at least: 2.0 6 6 Tested up to: 3.2 7 Stable tag: 0.10. 87 Stable tag: 0.10.9 8 8 9 9 == Description == … … 66 66 67 67 == Changelog == 68 69 = v0.10.9 = 70 * Fixed Mac OS X version detection so its more flexible. 71 * Fixed icon used for Red Hat linux (props: Third Eye) 72 68 73 69 74 = v0.10.8 = -
wp-useragent/trunk/wp-useragent.php
r383859 r426533 4 4 Plugin URI: http://kyleabaker.com/goodies/coding/wp-useragent/ 5 5 Description: A simple User-Agent detection plugin that lets you easily insert icons and/or textual web browser and operating system details with each comment. 6 Version: 0.10. 86 Version: 0.10.9 7 7 Author: Kyle Baker 8 8 Author URI: http://kyleabaker.com/ … … 1339 1339 if(preg_match('/Mac OS X/i', $useragent)){ 1340 1340 $title=substr($useragent, strpos(strtolower($useragent), strtolower("Mac OS X"))); 1341 $title=substr($title, 0, strpos($title, ";")); 1342 $title=str_replace("_", ".", $title); 1341 $title=substr($title, 0, strpos($title, ")")); 1342 if (strpos($title, ";")) 1343 $title=substr($title, 0, strpos($title, ";")); 1344 $title=str_replace("_", ".", $title); 1343 1345 $code="mac-3"; 1344 1346 }elseif(preg_match('/Mac OSX/i', $useragent)){ 1345 $title=substr($useragent, strpos(strtolower($useragent), strtolower("Mac OSX"))); 1346 $title=substr($title, 0, strpos($title, ";")); 1347 $title=str_replace("_", ".", $title); 1347 $title=substr($useragent, strpos(strtolower($useragent), strtolower("Mac OS X"))); 1348 $title=substr($title, 0, strpos($title, ")")); 1349 if (strpos($title, ";")) 1350 $title=substr($title, 0, strpos($title, ";")); 1351 $title=str_replace("_", ".", $title); 1348 1352 $code="mac-2"; 1349 1353 }elseif(preg_match('/Darwin/i', $useragent)){ … … 1397 1401 if(preg_match('/.el([._0-9a-zA-Z]+)/i', $useragent, $regmatch)) 1398 1402 $title.=" Enterprise Linux ".str_replace("_", ".", $regmatch[1]); 1399 $code=" mandriva";1403 $code="red-hat"; 1400 1404 }elseif(preg_match('/Sabayon/i', $useragent)){ 1401 1405 $link="http://www.sabayonlinux.org/";
Note: See TracChangeset
for help on using the changeset viewer.