Changeset 1415915
- Timestamp:
- 05/12/2016 08:50:00 PM (10 years ago)
- Location:
- wp-useragent
- Files:
-
- 12 added
- 5 deleted
- 9 edited
-
assets (added)
-
assets/icon-128x128.png (added)
-
assets/icon-256x256.png (added)
-
assets/screenshot-1.png (added)
-
assets/screenshot-2.png (added)
-
trunk/assets (deleted)
-
trunk/img/16/net/opera-2-developer.png (added)
-
trunk/img/16/net/opera-2-next.png (added)
-
trunk/img/16/net/opera-3.png (added)
-
trunk/img/16/net/opera-developer.png (deleted)
-
trunk/img/16/net/opera-next.png (deleted)
-
trunk/img/24/net/opera-2-developer.png (added)
-
trunk/img/24/net/opera-2-next.png (added)
-
trunk/img/24/net/opera-3.png (added)
-
trunk/img/24/net/opera-developer.png (deleted)
-
trunk/img/24/net/opera-next.png (deleted)
-
trunk/languages (added)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/uninstall.php (modified) (2 diffs)
-
trunk/wp-useragent-detect-device.php (modified) (17 diffs)
-
trunk/wp-useragent-detect-os.php (modified) (64 diffs)
-
trunk/wp-useragent-detect-trackback.php (modified) (2 diffs)
-
trunk/wp-useragent-detect-webbrowser-version.php (modified) (1 diff)
-
trunk/wp-useragent-detect-webbrowser.php (modified) (262 diffs)
-
trunk/wp-useragent-options.php (modified) (8 diffs)
-
trunk/wp-useragent.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-useragent/trunk/readme.txt
r1415001 r1415915 84 84 85 85 == Changelog == 86 87 = v1.0.12 = 88 * Added option to adjust how version numbers are shown: Full (previous appearance, ex. 'Opera 10.52'), Simple (ex. 'Opera 10'), off (ex. 'Opera') 89 * Cleaned up web browser version parsing (simplified pretty dramatically) 90 * Cleaned up os/device version parsing and architecture parsing (x64) 91 86 92 87 93 = v1.0.11 = … … 662 668 == Upgrade Notice == 663 669 670 = v1.0.12 = 671 * Added option to adjust how version numbers are shown: Full (previous appearance, ex. 'Opera 10.52'), Simple (ex. 'Opera 10'), off (ex. 'Opera') 672 * Cleaned up web browser version parsing (simplified pretty dramatically) 673 * Cleaned up os/device version parsing and architecture parsing (x64) 674 675 664 676 = v1.0.11 = 665 677 * Added text domain to enable user contributed language translations (popular request: all options and text for this plugin should now be translatable)! … … 669 681 * Added frequently asked questions/answers to readme 670 682 * Added screenshot assets 671 672 673 = v1.0.10 =674 * Fix issue with custom output layout ([Support Forum](https://wordpress.org/support/topic/new-div-and-custom-output))675 * Updated Windows icons with higher resolution and more accurate replacements676 677 678 = v1.0.9 =679 * Fix Windows Phone 8.1 detection ([Support Forum](https://wordpress.org/support/topic/windows-phone-81-is-being-detected-as-iphone-ios-703?replies=1))680 * Fixed Compatibility for the wpDiscuz plugin - WordPress Comments ([Support Thread](https://wordpress.org/support/topic/compatibility-for-the-wpdiscuz-plugin-wordpress-comments?replies=1))681 * WP-UserAgent output is now wrapped by a div with classname "wp-useragent". This should make it much easier for those of you wishing to apply your own CSS to adjust the appearance on your site.682 * Improved settings page with cleaner layout and improved comment preview section.683 * Simplified some option descriptions.684 * Reset default options button now available.685 * Quick links at the top of the page for Plugin Homepage, Support, Changelog and Donate.686 * Removed get_currentuserinfo() call which was deprecated in Wordpress 4.5+687 * Refactored codebase to simplify maintaince of this plugin, general cleanup and reduced duplicate code.688 * DEPRECATED custom output function 'useragent_output_custom()'. Please use 'wpua_custom_output()' instead.689 * Added extra layer of security for escaping user input690 * Updated database schema and migrate settings automatically691 * Updated plugin options to disable autoloading (removes unnecessary memory usage)692 * Added database cleanup on uninstall -
wp-useragent/trunk/uninstall.php
r1414133 r1415915 31 31 delete_option('wpua_text_on'); 32 32 delete_option('wpua_text_via'); 33 delete_option('wpua_show_version'); 33 34 delete_option('wpua_text_links'); 34 35 delete_option('wpua_show_full_ua'); … … 46 47 delete_site_option('wpua_text_on'); 47 48 delete_site_option('wpua_text_via'); 49 delete_site_option('wpua_show_version'); 48 50 delete_site_option('wpua_text_links'); 49 51 delete_site_option('wpua_show_full_ua'); -
wp-useragent/trunk/wp-useragent-detect-device.php
r1414133 r1415915 23 23 function wpua_detect_device() 24 24 { 25 global $useragent; 25 global $useragent, $wpua_show_version; 26 27 $version = null; 26 28 27 29 // Apple … … 33 35 if (preg_match('/CPU\ OS\ ([._0-9a-zA-Z]+)/i', $useragent, $regmatch)) 34 36 { 35 $ title .= 'iOS '.str_replace('_', '.', $regmatch[1]);37 $version = 'iOS '.str_replace('_', '.', $regmatch[1]); 36 38 } 37 39 … … 45 47 if (preg_match('/iPhone\ OS\ ([._0-9a-zA-Z]+)/i', $useragent, $regmatch)) 46 48 { 47 $ title .= 'iOS '.str_replace('_', '.', $regmatch[1]);49 $version = 'iOS '.str_replace('_', '.', $regmatch[1]); 48 50 } 49 51 … … 57 59 if (preg_match('/iPhone\ OS\ ([._0-9a-zA-Z]+)/i', $useragent, $regmatch)) 58 60 { 59 $ title .= 'iOS '.str_replace('_', '.', $regmatch[1]);61 $version = 'iOS '.str_replace('_', '.', $regmatch[1]); 60 62 } 61 63 … … 71 73 if (preg_match('/[^M]SIE-([.0-9a-zA-Z]+)\//i', $useragent, $regmatch)) 72 74 { 73 $ title .= ' '.$regmatch[1];75 $version = $regmatch[1]; 74 76 } 75 77 … … 85 87 if (preg_match('/blackberry([.0-9a-zA-Z]+)\//i', $useragent, $regmatch)) 86 88 { 87 $ title .= ' '.$regmatch[1];89 $version = $regmatch[1]; 88 90 } 89 91 … … 187 189 elseif (preg_match('/HTC[\ |_|-]?([.0-9a-zA-Z]+)/i', $useragent, $regmatch)) 188 190 { 189 $title .= ' '.$regmatch[1]; 191 $title .= ' '.$regmatch[1]; // Matche other HTC product names (possibly versions?) 190 192 } 191 193 elseif (preg_match('/HTC([._0-9a-zA-Z]+)/i', $useragent, $regmatch)) … … 205 207 if (preg_match('/Kindle\/([.0-9a-zA-Z]+)/i', $useragent, $regmatch)) 206 208 { 207 $ title .= ' '.$regmatch[1];209 $version = $regmatch[1]; 208 210 } 209 211 … … 219 221 if (preg_match('/LG[E]?[\ |-|\/]([.0-9a-zA-Z]+)/i', $useragent, $regmatch)) 220 222 { 221 $ title .= ' '.$regmatch[1];223 $version = $regmatch[1]; 222 224 } 223 225 … … 231 233 { 232 234 $link = 'http://www.microsoft.com/windowsphone/'; 233 $title = 'Windows Phone 7'; 235 $title = 'Windows Phone'; 236 $version = '7'; 234 237 $code = 'wp7'; 235 238 } … … 239 242 { 240 243 $link = 'http://www.microsoft.com/windowsphone/'; 241 $title = 'Windows Phone 8.1'; 244 $title = 'Windows Phone'; 245 $version = '8.1'; 242 246 $code = 'wp7'; 243 247 } … … 247 251 { 248 252 $link = 'http://www.microsoft.com/windowsphone/'; 249 $title = 'Windows Phone 8'; 253 $title = 'Windows Phone'; 254 $version = '8'; 250 255 $code = 'wp7'; 251 256 } … … 254 259 { 255 260 $link = 'http://www.microsoft.com/windowsphone/'; 256 $title = 'Windows Phone 10'; 261 $title = 'Windows Phone'; 262 $version = '10'; 257 263 $code = 'wp10'; 258 264 } … … 298 304 if (preg_match('/MOTO([.0-9a-zA-Z]+)/i', $useragent, $regmatch)) 299 305 { 300 $ title .= ' '.$regmatch[1];306 $version = $regmatch[1]; 301 307 } 302 308 if (preg_match('/MOT-([.0-9a-zA-Z]+)/i', $useragent, $regmatch)) 303 309 { 304 $ title .= ' '.$regmatch[1];310 $version = $regmatch[1]; 305 311 } 306 312 … … 363 369 $title = 'Nokia'; 364 370 if (preg_match('/Nokia(E|N)?([0-9]+)/i', $useragent, $regmatch)) 365 $title .= ' '.$regmatch[1].$regmatch[2]; 371 $title .= ' '.$regmatch[1].$regmatch[2]; // Model name 366 372 $code = 'nokia'; 367 373 } … … 470 476 { 471 477 $link = 'http://en.wikipedia.org/wiki/SonyEricsson'; 472 $title = 'Sony Ericsson';478 $title = 'Sony Ericsson'; 473 479 474 480 if (preg_match('/SonyEricsson([.0-9a-zA-Z]+)/i', $useragent, $regmatch)) … … 515 521 } 516 522 523 // Append version to title (as long as show version isn't 'off') 524 if (isset($version) && $wpua_show_version !== 'false') 525 { 526 $title .= " $version"; 527 } 528 517 529 return wpua_get_icon_text($link, $title, $code, '/device/'); 518 530 } -
wp-useragent/trunk/wp-useragent-detect-os.php
r1414133 r1415915 23 23 function wpua_detect_os() 24 24 { 25 global $useragent; 25 global $useragent, $wpua_show_version; 26 27 $version = null; 26 28 27 29 if (preg_match('/AmigaOS/i', $useragent)) … … 32 34 if (preg_match('/AmigaOS\ ([.0-9a-zA-Z]+)/i', $useragent, $regmatch)) 33 35 { 34 $ title .= ' '.$regmatch[1];36 $version = $regmatch[1]; 35 37 } 36 38 37 39 $code = 'amigaos'; 38 39 if (preg_match('/x86_64/i', $useragent))40 {41 $title .= ' x64';42 }43 40 } 44 41 elseif (preg_match('/Android/i', $useragent)) … … 51 48 { 52 49 $version = $regmatch[1]; 53 $title .= ' '.$version;54 }55 56 if (preg_match('/x86_64/i', $useragent))57 {58 $title .= ' x64';59 50 } 60 51 } … … 64 55 $title = 'Arch Linux'; 65 56 $code = 'archlinux'; 66 67 if (preg_match('/x86_64/i', $useragent))68 {69 $title .= ' x64';70 }71 57 } 72 58 elseif (preg_match('/BeOS/i', $useragent)) … … 75 61 $title = 'BeOS'; 76 62 $code = 'beos'; 77 78 if (preg_match('/x86_64/i', $useragent))79 {80 $title .= ' x64';81 }82 63 } 83 64 elseif (preg_match('/CentOS/i', $useragent)) … … 88 69 if (preg_match('/.el([.0-9a-zA-Z]+).centos/i', $useragent, $regmatch)) 89 70 { 90 $ title .= ' '.$regmatch[1];71 $version = $regmatch[1]; 91 72 } 92 73 93 74 $code = 'centos'; 94 95 if (preg_match('/x86_64/i', $useragent))96 {97 $title .= ' x64';98 }99 75 } 100 76 elseif (preg_match('/Chakra/i', $useragent)) … … 103 79 $title = 'Chakra Linux'; 104 80 $code = 'chakra'; 105 106 if (preg_match('/x86_64/i', $useragent))107 {108 $title .= ' x64';109 }110 81 } 111 82 elseif (preg_match('/CrOS/i', $useragent)) … … 114 85 $title = 'Google Chrome OS'; 115 86 $code = 'chromeos'; 116 117 if (preg_match('/x86_64/i', $useragent))118 {119 $title .= ' x64';120 }121 87 } 122 88 elseif (preg_match('/Crunchbang/i', $useragent)) … … 125 91 $title = 'Crunchbang'; 126 92 $code = 'crunchbang'; 127 128 if (preg_match('/x86_64/i', $useragent))129 {130 $title .= ' x64';131 }132 93 } 133 94 elseif (preg_match('/Debian/i', $useragent)) … … 136 97 $title = 'Debian GNU/Linux'; 137 98 $code = 'debian'; 138 139 if (preg_match('/x86_64/i', $useragent))140 {141 $title .= ' x64';142 }143 99 } 144 100 elseif (preg_match('/DragonFly/i', $useragent)) … … 147 103 $title = 'DragonFly BSD'; 148 104 $code = 'dragonflybsd'; 149 150 if (preg_match('/x86_64/i', $useragent))151 {152 $title .= ' x64';153 }154 105 } 155 106 elseif (preg_match('/Edubuntu/i', $useragent)) … … 160 111 if (preg_match('/Edubuntu[\/|\ ]([.0-9a-zA-Z]+)/i', $useragent, $regmatch)) 161 112 { 162 $version .= ' '.$regmatch[1];113 $version = $regmatch[1]; 163 114 } 164 115 … … 170 121 { 171 122 $code = 'edubuntu-2'; 172 }173 174 if (strlen($version) > 1)175 {176 $title .= $version;177 }178 179 if (preg_match('/x86_64/i', $useragent))180 {181 $title .= ' x64';182 123 } 183 124 } … … 189 130 if (preg_match('/.fc([.0-9a-zA-Z]+)/i', $useragent, $regmatch)) 190 131 { 191 $ title .= ' '.$regmatch[1];132 $version = $regmatch[1]; 192 133 } 193 134 194 135 $code = 'fedora'; 195 196 if (preg_match('/x86_64/i', $useragent))197 {198 $title .= ' x64';199 }200 136 } 201 137 elseif (preg_match('/Foresight\ Linux/i', $useragent)) … … 206 142 if (preg_match('/Foresight\ Linux\/([.0-9a-zA-Z]+)/i', $useragent, $regmatch)) 207 143 { 208 $ title .= ' '.$regmatch[1];144 $version = $regmatch[1]; 209 145 } 210 146 211 147 $code = 'foresight'; 212 213 if (preg_match('/x86_64/i', $useragent))214 {215 $title .= ' x64';216 }217 148 } 218 149 elseif (preg_match('/FreeBSD/i', $useragent)) … … 221 152 $title = 'FreeBSD'; 222 153 $code = 'freebsd'; 223 224 if (preg_match('/x86_64/i', $useragent))225 {226 $title .= ' x64';227 }228 154 } 229 155 elseif (preg_match('/Gentoo/i', $useragent)) … … 232 158 $title = 'Gentoo'; 233 159 $code = 'gentoo'; 234 235 if (preg_match('/x86_64/i', $useragent))236 {237 $title .= ' x64';238 }239 160 } 240 161 elseif (preg_match('/Inferno/i', $useragent)) … … 243 164 $title = 'Inferno'; 244 165 $code = 'inferno'; 245 246 if (preg_match('/x86_64/i', $useragent))247 {248 $title .= ' x64';249 }250 166 } 251 167 elseif (preg_match('/IRIX/i', $useragent)) … … 256 172 if (preg_match('/IRIX(64)?\ ([.0-9a-zA-Z]+)/i', $useragent, $regmatch)) 257 173 { 258 if ($regmatch[1])259 {260 $title .= ' x'.$regmatch[1];261 }262 174 if ($regmatch[2]) 263 175 { 264 $ title .= ' '.$regmatch[2];176 $version = $regmatch[2]; 265 177 } 178 if ($regmatch[1] && $wpua_show_version === 'full') 179 { 180 // Non-standard 64-bit detection 181 // If version isn't null append 64 bit, otherwise set it to x64 182 $version = (is_null($version)) ? 'x64' : "$version x64"; 183 } 266 184 } 267 185 268 186 $code = 'irix'; 269 270 if (preg_match('/x86_64/i', $useragent))271 {272 $title .= ' x64';273 }274 187 } 275 188 elseif (preg_match('/Kanotix/i', $useragent)) … … 278 191 $title = 'Kanotix'; 279 192 $code = 'kanotix'; 280 281 if (preg_match('/x86_64/i', $useragent))282 {283 $title .= ' x64';284 }285 193 } 286 194 elseif (preg_match('/Knoppix/i', $useragent)) … … 289 197 $title = 'Knoppix'; 290 198 $code = 'knoppix'; 291 292 if (preg_match('/x86_64/i', $useragent))293 {294 $title .= ' x64';295 }296 199 } 297 200 elseif (preg_match('/Kubuntu/i', $useragent)) … … 302 205 if (preg_match('/Kubuntu[\/|\ ]([.0-9a-zA-Z]+)/i', $useragent, $regmatch)) 303 206 { 304 $version .= ' '.$regmatch[1];207 $version = $regmatch[1]; 305 208 } 306 209 … … 312 215 { 313 216 $code = 'kubuntu-2'; 314 }315 316 if (strlen($version) > 1)317 {318 $title .= $version;319 }320 321 if (preg_match('/x86_64/i', $useragent))322 {323 $title .= ' x64';324 217 } 325 218 } … … 329 222 $title = 'LindowsOS'; 330 223 $code = 'lindowsos'; 331 332 if (preg_match('/x86_64/i', $useragent))333 {334 $title .= ' x64';335 }336 224 } 337 225 elseif (preg_match('/Linspire/i', $useragent)) … … 340 228 $title = 'Linspire'; 341 229 $code = 'lindowsos'; 342 343 if (preg_match('/x86_64/i', $useragent))344 {345 $title .= ' x64';346 }347 230 } 348 231 elseif (preg_match('/Linux\ Mint/i', $useragent)) … … 353 236 if (preg_match('/Linux\ Mint\/([.0-9a-zA-Z]+)/i', $useragent, $regmatch)) 354 237 { 355 $ title .= ' '.$regmatch[1];238 $version = $regmatch[1]; 356 239 } 357 240 358 241 $code = 'linuxmint'; 359 360 if (preg_match('/x86_64/i', $useragent))361 {362 $title .= ' x64';363 }364 242 } 365 243 elseif (preg_match('/Lubuntu/i', $useragent)) … … 370 248 if (preg_match('/Lubuntu[\/|\ ]([.0-9a-zA-Z]+)/i', $useragent, $regmatch)) 371 249 { 372 $version .= ' '.$regmatch[1];250 $version = $regmatch[1]; 373 251 } 374 252 … … 380 258 { 381 259 $code = 'lubuntu-2'; 382 }383 384 if (strlen($version) > 1)385 {386 $title .= $version;387 }388 389 if (preg_match('/x86_64/i', $useragent))390 {391 $title .= ' x64';392 260 } 393 261 } … … 395 263 || preg_match('/Darwin/i', $useragent)) 396 264 { 265 $title = 'Mac'; 397 266 $link = 'http://www.apple.com/macosx/'; 398 267 399 if (preg_match('/Mac OS X/i', $useragent)) 400 { 401 $title = substr($useragent, strpos(strtolower($useragent), strtolower('Mac OS X'))); 402 $title = substr($title, 0, strpos($title, ')')); 403 404 if (strpos($title, ';')) 268 if (preg_match('/Mac OS X/i', $useragent) 269 || preg_match('/Mac OSX/i', $useragent)) 270 { 271 if (preg_match('/Mac OS X/i', $useragent)) 405 272 { 406 $title = substr($title, 0, strpos($title, ';')); 273 $version = substr($useragent, strpos(strtolower($useragent), strtolower('OS X'))+4); 274 $code = 'mac-3'; 407 275 } 408 409 $title = str_replace('_', '.', $title); 410 $code = 'mac-3'; 411 } 412 elseif (preg_match('/Mac OSX/i', $useragent)) 413 { 414 $title = substr($useragent, strpos(strtolower($useragent), strtolower('Mac OS X'))); 415 $title = substr($title, 0, strpos($title, ')')); 416 417 if (strpos($title, ';')) 276 else 418 277 { 419 $title = substr($title, 0, strpos($title, ';')); 278 $version = substr($useragent, strpos(strtolower($useragent), strtolower('OSX'))+3); 279 $code = 'mac-2'; 420 280 } 421 281 422 $title = str_replace('_', '.', $title); 423 $code = 'mac-2'; 282 // Parse OS X version number 283 $version = substr($version, 0, strpos($version, ')')); 284 if (strpos($version, ';') > -1) 285 { 286 $version = substr($version, 0, strpos($version, ';')); 287 } 288 $version = str_replace('_', '.', $version); 289 290 // Build version string: full, simple (ignore off) 291 if ($wpua_show_version === 'simple' && preg_match('/([0-9]+\.[0-9]+)/i', $version, $regmatch)) 292 { 293 // Return only the major.minor, ex. 10.11.4 -> 10.11 294 $version = $regmatch[1]; 295 } 296 $version = (empty($version)) ? 'OS X' : "OS X $version"; 424 297 } 425 298 elseif (preg_match('/Darwin/i', $useragent)) 426 299 { 427 $ title = 'MacOS Darwin';300 $version = 'OS Darwin'; 428 301 $code = 'mac-1'; 429 302 } … … 447 320 if (preg_match('/mdv([.0-9a-zA-Z]+)/i', $useragent, $regmatch)) 448 321 { 449 $ title .= ' '.$regmatch[1];322 $version = $regmatch[1]; 450 323 } 451 324 452 325 $code = 'mandriva'; 453 454 if (preg_match('/x86_64/i', $useragent))455 {456 $title .= ' x64';457 }458 326 } 459 327 elseif (preg_match('/moonOS/i', $useragent)) … … 464 332 if (preg_match('/moonOS\/([.0-9a-zA-Z]+)/i', $useragent, $regmatch)) 465 333 { 466 $ title .= ' '.$regmatch[1];334 $version = $regmatch[1]; 467 335 } 468 336 469 337 $code = 'moonos'; 470 471 if (preg_match('/x86_64/i', $useragent))472 {473 $title .= ' x64';474 }475 338 } 476 339 elseif (preg_match('/MorphOS/i', $useragent)) … … 479 342 $title = 'MorphOS'; 480 343 $code = 'morphos'; 481 482 if (preg_match('/x86_64/i', $useragent))483 {484 $title .= ' x64';485 }486 344 } 487 345 elseif (preg_match('/NetBSD/i', $useragent)) … … 490 348 $title = 'NetBSD'; 491 349 $code = 'netbsd'; 492 493 if (preg_match('/x86_64/i', $useragent))494 {495 $title .= ' x64';496 }497 350 } 498 351 elseif (preg_match('/Nova/i', $useragent)) … … 503 356 if (preg_match('/Nova[\/|\ ]([.0-9a-zA-Z]+)/i', $useragent, $regmatch)) 504 357 { 505 $version .= ' '.$regmatch[1]; 506 } 507 508 if (strlen($version) > 1) 509 { 510 $title .= $version; 358 $version = $regmatch[1]; 511 359 } 512 360 513 361 $code = 'nova'; 514 515 if (preg_match('/x86_64/i', $useragent))516 {517 $title .= ' x64';518 }519 362 } 520 363 elseif (preg_match('/OpenBSD/i', $useragent)) … … 523 366 $title = 'OpenBSD'; 524 367 $code = 'openbsd'; 525 526 if (preg_match('/x86_64/i', $useragent))527 {528 $title .= ' x64';529 }530 368 } 531 369 elseif (preg_match('/Oracle/i', $useragent)) … … 536 374 if (preg_match('/.el([._0-9a-zA-Z]+)/i', $useragent, $regmatch)) 537 375 { 538 $title .= ' Enterprise Linux '.str_replace('_', '.', $regmatch[1]); 376 $title .= ' Enterprise Linux'; 377 $version = str_replace('_', '.', $regmatch[1]); 539 378 } 540 379 else … … 544 383 545 384 $code = 'oracle'; 546 547 if (preg_match('/x86_64/i', $useragent))548 {549 $title .= ' x64';550 }551 385 } 552 386 elseif (preg_match('/Pardus/i', $useragent)) … … 555 389 $title = 'Pardus'; 556 390 $code = 'pardus'; 557 558 if (preg_match('/x86_64/i', $useragent))559 {560 $title .= ' x64';561 }562 391 } 563 392 elseif (preg_match('/PCLinuxOS/i', $useragent)) … … 568 397 if (preg_match('/PCLinuxOS\/[.\-0-9a-zA-Z]+pclos([.\-0-9a-zA-Z]+)/i', $useragent, $regmatch)) 569 398 { 570 $ title .= ' '.str_replace('_', '.', $regmatch[1]);399 $version = str_replace('_', '.', $regmatch[1]); 571 400 } 572 401 573 402 $code = 'pclinuxos'; 574 575 if (preg_match('/x86_64/i', $useragent))576 {577 $title .= ' x64';578 }579 403 } 580 404 elseif (preg_match('/Red\ Hat/i', $useragent) … … 586 410 if (preg_match('/.el([._0-9a-zA-Z]+)/i', $useragent, $regmatch)) 587 411 { 588 $title .= ' Enterprise Linux '.str_replace('_', '.', $regmatch[1]); 412 $title .= ' Enterprise Linux'; 413 $version = str_replace('_', '.', $regmatch[1]); 589 414 } 590 415 591 416 $code = 'red-hat'; 592 593 if (preg_match('/x86_64/i', $useragent))594 {595 $title .= ' x64';596 }597 417 } 598 418 elseif (preg_match('/Rosa/i', $useragent)) … … 601 421 $title = 'Rosa Linux'; 602 422 $code = 'rosa'; 603 604 if (preg_match('/x86_64/i', $useragent))605 {606 $title .= ' x64';607 }608 423 } 609 424 elseif (preg_match('/Sabayon/i', $useragent)) … … 612 427 $title = 'Sabayon Linux'; 613 428 $code = 'sabayon'; 614 615 if (preg_match('/x86_64/i', $useragent))616 {617 $title .= ' x64';618 }619 429 } 620 430 elseif (preg_match('/Slackware/i', $useragent)) … … 623 433 $title = 'Slackware'; 624 434 $code = 'slackware'; 625 626 if (preg_match('/x86_64/i', $useragent))627 {628 $title .= ' x64';629 }630 435 } 631 436 elseif (preg_match('/Solaris/i', $useragent)) … … 646 451 $title = 'openSUSE'; 647 452 $code = 'suse'; 648 649 if (preg_match('/x86_64/i', $useragent))650 {651 $title .= ' x64';652 }653 453 } 654 454 elseif (preg_match('/Symb[ian]?[OS]?/i', $useragent)) … … 659 459 if (preg_match('/Symb[ian]?[OS]?\/([.0-9a-zA-Z]+)/i', $useragent, $regmatch)) 660 460 { 661 $ title .= ' '.$regmatch[1];461 $version = $regmatch[1]; 662 462 } 663 463 664 464 $code = 'symbianos'; 665 666 if (preg_match('/x86_64/i', $useragent))667 {668 $title .= ' x64';669 }670 465 } 671 466 elseif (preg_match('/Unix/i', $useragent)) … … 674 469 $title = 'Unix'; 675 470 $code = 'unix'; 676 677 if (preg_match('/x86_64/i', $useragent))678 {679 $title .= ' x64';680 }681 471 } 682 472 elseif (preg_match('/VectorLinux/i', $useragent)) … … 685 475 $title = 'VectorLinux'; 686 476 $code = 'vectorlinux'; 687 688 if (preg_match('/x86_64/i', $useragent))689 {690 $title .= ' x64';691 }692 477 } 693 478 elseif (preg_match('/Venenux/i', $useragent)) … … 696 481 $title = 'Venenux GNU Linux'; 697 482 $code = 'venenux'; 698 699 if (preg_match('/x86_64/i', $useragent))700 {701 $title .= ' x64';702 }703 483 } 704 484 elseif (preg_match('/webOS/i', $useragent)) … … 712 492 || preg_match('/Win32/i', $useragent)) 713 493 { 494 $title = 'Windows'; 714 495 $link = 'http://www.microsoft.com/windows/'; 715 496 716 if (preg_match('/Windows NT 10.0; Win64; x64/i', $useragent) 717 || preg_match('/Windows NT 10.0; WOW64/i', $useragent) 718 || preg_match('/Windows NT 6.4; Win64; x64/i', $useragent) 719 || preg_match('/Windows NT 6.4; WOW64/i', $useragent)) 720 { 721 $title = 'Windows 10 x64 Edition'; 497 if (preg_match('/Windows NT 10.0/i', $useragent) 498 || preg_match('/Windows NT 6.4/i', $useragent)) 499 { 500 $version = '10'; 722 501 $code = 'win-6'; 723 502 } 724 elseif (preg_match('/Windows NT 10.0/i', $useragent) 725 || preg_match('/Windows NT 6.4/i', $useragent)) 726 { 727 $title = 'Windows 10'; 728 $code = 'win-6'; 729 } 730 elseif (preg_match('/Windows NT 6.3; Win64; x64/i', $useragent) 731 || preg_match('/Windows NT 6.3; WOW64/i', $useragent)) 732 { 733 $title = 'Windows 8.1 x64 Edition'; 503 elseif (preg_match('/Windows NT 6.3/i', $useragent)) 504 { 505 $version = '8.1'; 734 506 $code = 'win-5'; 735 507 } 736 elseif (preg_match('/Windows NT 6. 3/i', $useragent))737 { 738 $ title = 'Windows 8.1';508 elseif (preg_match('/Windows NT 6.2/i', $useragent)) 509 { 510 $version = '8'; 739 511 $code = 'win-5'; 740 512 } 741 elseif (preg_match('/Windows NT 6.2; Win64; x64/i', $useragent) 742 || preg_match('/Windows NT 6.2; WOW64/i', $useragent)) 743 { 744 $title = 'Windows 8 x64 Edition'; 745 $code = 'win-5'; 746 } 747 elseif (preg_match('/Windows NT 6.2/i', $useragent)) 748 { 749 $title = 'Windows 8'; 750 $code = 'win-5'; 751 } 752 elseif (preg_match('/Windows NT 6.1; Win64; x64/i', $useragent) 753 || preg_match('/Windows NT 6.1; WOW64/i', $useragent)) 754 { 755 $title = 'Windows 7 x64 Edition'; 513 elseif (preg_match('/Windows NT 6.1/i', $useragent)) 514 { 515 $version = '7'; 756 516 $code = 'win-4'; 757 517 } 758 elseif (preg_match('/Windows NT 6.1/i', $useragent))759 {760 $title = 'Windows 7';761 $code = 'win-4';762 }763 518 elseif (preg_match('/Windows NT 6.0/i', $useragent)) 764 519 { 765 $ title = 'WindowsVista';520 $version = 'Vista'; 766 521 $code = 'win-3'; 767 522 } 768 523 elseif (preg_match('/Windows NT 5.2 x64/i', $useragent)) 769 524 { 770 $ title = 'Windows XP x64 Edition';525 $version = 'XP'; //x64 Edition very similar to Win 2003 771 526 $code = 'win-2'; 772 527 } 773 elseif (preg_match('/Windows NT 5.2; Win64; x64/i', $useragent))774 {775 $title = 'Windows Server 2003 x64 Edition';776 $code = 'win-2';777 }778 528 elseif (preg_match('/Windows NT 5.2/i', $useragent)) 779 529 { 780 $ title = 'WindowsServer 2003';530 $version = 'Server 2003'; 781 531 $code = 'win-2'; 782 532 } … … 784 534 || preg_match('/Windows XP/i', $useragent)) 785 535 { 786 $ title = 'WindowsXP';536 $version = 'XP'; 787 537 $code = 'win-2'; 788 538 } 789 539 elseif (preg_match('/Windows NT 5.01/i', $useragent)) 790 540 { 791 $ title = 'Windows2000, Service Pack 1 (SP1)';541 $version = '2000, Service Pack 1 (SP1)'; 792 542 $code = 'win-1'; 793 543 } 794 544 elseif (preg_match('/Windows NT 5.0/i', $useragent) 545 || preg_match('/Windows NT5/i', $useragent) 795 546 || preg_match('/Windows 2000/i', $useragent)) 796 547 { 797 $ title = 'Windows2000';548 $version = '2000'; 798 549 $code = 'win-1'; 799 550 } … … 801 552 || preg_match('/WinNT4.0/i', $useragent)) 802 553 { 803 $ title = 'Microsoft WindowsNT 4.0';554 $version = 'NT 4.0'; 804 555 $code = 'win-1'; 805 556 } … … 807 558 || preg_match('/WinNT3.51/i', $useragent)) 808 559 { 809 $title = 'Microsoft Windows NT 3.11'; 560 $version = 'NT 3.11'; 561 $code = 'win-1'; 562 } 563 elseif (preg_match('/Windows NT/i', $useragent) 564 || preg_match('/WinNT/i', $useragent)) 565 { 566 $version = 'NT'; 810 567 $code = 'win-1'; 811 568 } … … 814 571 || preg_match('/Win16/i', $useragent)) 815 572 { 816 $ title = 'Microsoft Windows3.11';573 $version = '3.11'; 817 574 $code = 'win-1'; 818 575 } 819 576 elseif (preg_match('/Windows 3.1/i', $useragent)) 820 577 { 821 $ title = 'Microsoft Windows3.1';578 $version = '3.1'; 822 579 $code = 'win-1'; 823 580 } … … 826 583 || preg_match('/Windows ME/i', $useragent)) 827 584 { 828 $ title = 'WindowsMillennium Edition (Windows Me)';585 $version = 'Millennium Edition (Windows Me)'; 829 586 $code = 'win-1'; 830 587 } 831 588 elseif (preg_match('/Win98/i', $useragent)) 832 589 { 833 $ title = 'Windows98 SE';590 $version = '98 SE'; 834 591 $code = 'win-1'; 835 592 } … … 837 594 || preg_match('/Windows\ 4.10/i', $useragent)) 838 595 { 839 $ title = 'Windows98';596 $version = '98'; 840 597 $code = 'win-1'; 841 598 } … … 843 600 || preg_match('/Win95/i', $useragent)) 844 601 { 845 $ title = 'Windows95';602 $version = '95'; 846 603 $code = 'win-1'; 847 604 } 848 605 elseif (preg_match('/Windows CE/i', $useragent)) 849 606 { 850 $ title = 'WindowsCE';607 $version = 'CE'; 851 608 $code = 'win-2'; 852 609 } 853 610 elseif (preg_match('/WM5/i', $useragent)) 854 611 { 855 $ title = 'WindowsMobile 5';612 $version = 'Mobile 5'; 856 613 $code = 'win-phone'; 857 614 } 858 615 elseif (preg_match('/WindowsMobile/i', $useragent)) 859 616 { 860 $ title = 'WindowsMobile';617 $version = 'Mobile'; 861 618 $code = 'win-phone'; 862 619 } 863 620 else 864 621 { 865 $title = 'Windows';866 622 $code = 'win-2'; 867 623 } … … 872 628 $title = 'Xandros'; 873 629 $code = 'xandros'; 874 875 if (preg_match('/x86_64/i', $useragent))876 {877 $title .= ' x64';878 }879 630 } 880 631 elseif (preg_match('/Xubuntu/i', $useragent)) … … 885 636 if (preg_match('/Xubuntu[\/|\ ]([.0-9a-zA-Z]+)/i', $useragent, $regmatch)) 886 637 { 887 $version .= ' '.$regmatch[1];638 $version = $regmatch[1]; 888 639 } 889 640 … … 895 646 { 896 647 $code = 'xubuntu-2'; 897 }898 899 if (strlen($version) > 1)900 {901 $title .= $version;902 }903 904 if (preg_match('/x86_64/i', $useragent))905 {906 $title .= ' x64';907 648 } 908 649 } … … 912 653 $title = 'Zenwalk GNU Linux'; 913 654 $code = 'zenwalk'; 914 915 if (preg_match('/x86_64/i', $useragent))916 {917 $title .= ' x64';918 }919 655 } 920 656 … … 927 663 if (preg_match('/Ubuntu[\/|\ ]([.0-9]+[.0-9a-zA-Z]+)/i', $useragent, $regmatch)) 928 664 { 929 $version .= ' '.$regmatch[1];665 $version = $regmatch[1]; 930 666 } 931 667 … … 937 673 { 938 674 $code = 'ubuntu-2'; 939 }940 941 if (strlen($version) > 1)942 {943 $title .= $version;944 }945 946 if (preg_match('/x86_64/i', $useragent))947 {948 $title .= ' x64';949 675 } 950 676 } … … 954 680 $title = 'GNU/Linux'; 955 681 $code = 'linux'; 956 957 if (preg_match('/x86_64/i', $useragent))958 {959 $title .= ' x64';960 }961 682 } 962 683 elseif (preg_match('/J2ME\/MIDP/i', $useragent)) … … 973 694 } 974 695 696 // Check x64 architecture 697 if (preg_match('/x86_64/i', $useragent) && $wpua_show_version === 'full') 698 { 699 // If version isn't null append 64 bit, otherwise set it to x64 700 $version = (is_null($version)) ? 'x64' : "$version x64"; 701 } 702 elseif ( $wpua_show_version === 'full' 703 && (preg_match('/Windows/i', $useragent) // is Windows? 704 || preg_match('/WinNT/i', $useragent) 705 || preg_match('/Win32/i', $useragent)) 706 && (preg_match('/Win64/i', $useragent) // is x64? 707 || preg_match('/x64/i', $useragent) 708 || preg_match('/WOW64/i', $useragent)) ) 709 { 710 $version .= ' x64 Edition'; 711 } 712 713 // Append version to title (as long as show version isn't 'off') 714 if (isset($version) && $wpua_show_version !== 'false') 715 { 716 $title .= " $version"; 717 } 718 975 719 return wpua_get_icon_text($link, $title, $code, '/os/'); 976 720 } -
wp-useragent/trunk/wp-useragent-detect-trackback.php
r1414133 r1415915 23 23 function wpua_detect_trackback() 24 24 { 25 global $useragent ;25 global $useragent, $wpua_show_version; 26 26 27 $version = '';27 $version = null; 28 28 29 29 if (preg_match('/Drupal/i', $useragent)) … … 130 130 } 131 131 132 // Append version to title string before processing 133 $title .= " $version"; 132 // Append version to title (as long as show version isn't 'off') 133 if (isset($version) && $wpua_show_version === 'full') 134 { 135 $title .= " $version"; 136 } 134 137 135 138 return wpua_get_icon_text($link, $title, $code, '/trackback/'); -
wp-useragent/trunk/wp-useragent-detect-webbrowser-version.php
r1414133 r1415915 21 21 22 22 // Detect Web Browser versions 23 function wpua_detect_browser_version($ title)23 function wpua_detect_browser_version($version_ptr) 24 24 { 25 global $useragent ;25 global $useragent, $wpua_show_version; 26 26 27 // Fix for Opera's UA string changes in v10.00+ (and others) 28 $start = $title; 29 if ( (strtolower($title) === strtolower('Opera') 30 || strtolower($title) === strtolower('Opera Next') 31 || strtolower($title) === strtolower('Opera Labs')) 32 && preg_match('/Version/i', $useragent)) 27 // If show versions option is disabled, return immediately. 28 if ($wpua_show_version === 'false') return ''; 29 30 // Grab the browser version if its present 31 preg_match('/'.$version_ptr.'[\ |\/|\:]?([.0-9a-zA-Z]+)/i', $useragent, $regmatch); 32 $version = (is_null($regmatch[1])) ? '' : $regmatch[1] ; 33 34 // Only show simple version? If so, only return the major (ex. 10.52 -> 10) 35 if ($wpua_show_version === 'simple' && preg_match('/^([0-9]+)/i', $version, $regmatch)) 33 36 { 34 $start = 'Version'; 35 } 36 elseif ( (strtolower($title) === strtolower('Opera') 37 || strtolower($title) === strtolower('Opera Next') 38 || strtolower($title) === strtolower('Opera Developer')) 39 && preg_match('/OPR/i', $useragent)) 40 { 41 $start = 'OPR'; 42 } 43 elseif (strtolower($title) === strtolower('Opera Mobi') 44 && preg_match('/Version/i', $useragent)) 45 { 46 $start = 'Version'; 47 } 48 elseif (strtolower($title) === strtolower('Safari') 49 && preg_match('/Version/i', $useragent)) 50 { 51 $start = 'Version'; 52 } 53 elseif (strtolower($title) === strtolower('Pre') 54 && preg_match('/Version/i', $useragent)) 55 { 56 $start = 'Version'; 57 } 58 elseif (strtolower($title) === strtolower('Android Webkit')) 59 { 60 $start = 'Version'; 61 } 62 elseif (strtolower($title) === strtolower('Links')) 63 { 64 $start = 'Links \\('; 65 } 66 elseif (strtolower($title) === strtolower('UC Browser')) 67 { 68 $start = 'UC Browse'; 69 } 70 elseif (strtolower($title) === strtolower('TenFourFox')) 71 { 72 $start = ' rv'; 73 } 74 elseif (strtolower($title) === strtolower('Classilla')) 75 { 76 $start = ' rv'; 77 } 78 elseif (strtolower($title) === strtolower('SmartTV')) 79 { 80 $start = 'WebBrowser'; 81 } 82 elseif (strtolower($title) === strtolower('MSIE') && preg_match('/\ rv:([.0-9a-zA-Z]+)/i', $useragent)) 83 { 84 // We have IE11 or newer 85 $start = ' rv'; 37 $version = $regmatch[1]; 86 38 } 87 39 88 // Grab the browser version if its present 89 preg_match('/'.$start.'[\ |\/|\:]?([.0-9a-zA-Z]+)/i', $useragent, $regmatch); 90 $version = $regmatch[1]; 91 92 // Return browser Title and Version, but first..some titles need to be changed 93 if (strtolower($title) === 'msie' 94 && strtolower($version) === '7.0' 95 && preg_match('/Trident\/4.0/i', $useragent)) 96 { 97 return ' 8.0 (Compatibility Mode)'; // Fix for IE8 quirky UA string with Compatibility Mode enabled 98 } 99 elseif (strtolower($title) === 'msie') 100 { 101 return " $version"; 102 } 103 elseif (strtolower($title) === 'NetFrontLifeBrowser') 104 { 105 return "NetFront Life $version"; 106 } 107 elseif (strtolower($title) === 'ninesky-android-mobile') 108 { 109 return "Ninesky $version"; 110 } 111 elseif (strtolower($title) === 'coc_coc_browser') 112 { 113 return "Coc Coc $version"; 114 } 115 elseif (strtolower($title) === 'gsa') 116 { 117 return "Google Search App $version"; 118 } 119 elseif (strtolower($title) === 'multi-browser') 120 { 121 return "Multi-Browser XP $version"; 122 } 123 elseif (strtolower($title) === 'nf-browser') 124 { 125 return "NetFront $version"; 126 } 127 elseif (strtolower($title) === 'semc-browser') 128 { 129 return "SEMC Browser $version"; 130 } 131 elseif (strtolower($title) === 'ucweb') 132 { 133 return "UC Browser $version"; 134 } 135 elseif (strtolower($title) === 'up.browser' 136 || strtolower($title) === 'up.link') 137 { 138 return "Openwave Mobile Browser $version"; 139 } 140 elseif (strtolower($title) === 'chromeframe') 141 { 142 return "Google Chrome Frame $version"; 143 } 144 elseif (strtolower($title) === 'mozilladeveloperpreview') 145 { 146 return "Mozilla Developer Preview $version"; 147 } 148 elseif (strtolower($title) === 'multi-browser') 149 { 150 return "Multi-Browser XP $version"; 151 } 152 elseif (strtolower($title) === 'opera mobi') 153 { 154 return "Opera Mobile $version"; 155 } 156 elseif (strtolower($title) === 'osb-browser') 157 { 158 return "Gtk+ WebCore $version"; 159 } 160 elseif (strtolower($title) === 'tablet browser') 161 { 162 return "MicroB $version"; 163 } 164 elseif (strtolower($title) === 'tencenttraveler') 165 { 166 return "TT Explorer $version"; 167 } 168 elseif (strtolower($title) === 'crmo') 169 { 170 return "Chrome Mobile $version"; 171 } 172 elseif (strtolower($title) === 'smarttv') 173 { 174 return "Maple Browser $version"; 175 } 176 elseif (strtolower($title) === 'wp-android' 177 || strtolower($title) === 'wp-iphone') 178 { 179 //TODO check into Android version being returned 180 return "Wordpress App $version"; 181 } 182 elseif (strtolower($title) === 'atomicbrowser') 183 { 184 return "Atomic Web Browser $version"; 185 } 186 elseif (strtolower($title) === 'barcapro') 187 { 188 return "Barca Pro $version"; 189 } 190 elseif (strtolower($title) === 'dplus') 191 { 192 return "D+ $version"; 193 } 194 elseif (strtolower($title) === 'nichrome\/self') 195 { 196 return "Rambler browser $version"; 197 } 198 elseif (strtolower($title) === 'opera labs') 199 { 200 preg_match('/Edition\ Labs([\ ._0-9a-zA-Z]+);/i', $useragent, $regmatch); 201 return $title.$regmatch[1]." $version"; 202 } 203 elseif (strtolower($title) === 'escape' 204 || strtolower($title) === 'espial') 205 { 206 return $version; 207 } 208 else 209 { 210 return "$title $version"; 211 } 40 // Return simple browser version 41 return $version; 212 42 } 213 43 -
wp-useragent/trunk/wp-useragent-detect-webbrowser.php
r1414133 r1415915 23 23 function wpua_detect_webbrowser() 24 24 { 25 global $useragent; 25 global $useragent, $wpua_show_version; 26 27 $version = null; 26 28 27 29 if (preg_match('/360se/i', $useragent)) … … 29 31 $link = 'http://se.360.cn/'; 30 32 $title = '360Safe Explorer'; 33 $version = ''; 31 34 $code = '360se'; 32 35 } … … 35 38 $link = 'http://www.aborange.de/products/freeware/abolimba-multibrowser.php'; 36 39 $title = 'Abolimba'; 40 $version = ''; 37 41 $code = 'abolimba'; 38 42 } … … 40 44 { 41 45 $link = 'http://www.acoobrowser.com/'; 42 $title = 'Acoo '.wpua_detect_browser_version('Browser'); 46 $title = 'Acoo Browser'; 47 $version = wpua_detect_browser_version('Browser'); 43 48 $code = 'acoobrowser'; 44 49 } … … 46 51 { 47 52 $link = 'http://sourceforge.net/projects/alienforce/'; 48 $title = wpua_detect_browser_version('Alienforce');53 $title = 'Alienforce'; 49 54 $code = 'alienforce'; 50 55 } … … 52 57 { 53 58 $link = 'http://www.w3.org/Amaya/'; 54 $title = wpua_detect_browser_version('Amaya');59 $title = 'Amaya'; 55 60 $code = 'amaya'; 56 61 } … … 58 63 { 59 64 $link = 'http://aweb.sunsite.dk/'; 60 $title = 'Amiga '.wpua_detect_browser_version('AWeb'); 65 $title = 'Amiga AWeb'; 66 $version = wpua_detect_browser_version('AWeb'); 61 67 $code = 'amiga-aweb'; 62 68 } … … 65 71 $link = 'http://amigo.mail.ru/'; 66 72 $title = 'Amigo'; 73 $version = ''; 67 74 $code = 'amigo'; 68 75 } … … 70 77 { 71 78 $link = 'http://downloads.channel.aol.com/browser'; 72 $title = 'America Online '.wpua_detect_browser_version('Browser'); 79 $title = 'America Online Browser'; 80 $version = wpua_detect_browser_version('Browser'); 73 81 $code = 'aol'; 74 82 } … … 76 84 { 77 85 $link = 'http://v3.vapor.com/voyager/'; 78 $title = 'Amiga '.wpua_detect_browser_version('Voyager'); 86 $title = 'Amiga Voyager'; 87 $version = wpua_detect_browser_version('Voyager'); 79 88 $code = 'amigavoyager'; 80 89 } … … 82 91 { 83 92 $link = 'http://en.wikipedia.org/wiki/Fresco_(web_browser)'; 84 $title = 'ANT '.wpua_detect_browser_version('Fresco'); 93 $title = 'ANT Fresco'; 94 $version = wpua_detect_browser_version('Fresco'); 85 95 $code = 'antfresco'; 86 96 } … … 88 98 { 89 99 $link = 'http://downloads.channel.aol.com/browser'; 90 $title = wpua_detect_browser_version('AOL');100 $title = 'AOL'; 91 101 $code = 'aol'; 92 102 } … … 94 104 { 95 105 $link = 'http://code.google.com/p/arora/'; 96 $title = wpua_detect_browser_version('Arora');106 $title = 'Arora'; 97 107 $code = 'arora'; 98 108 } … … 100 110 { 101 111 $link = 'http://www.atomicwebbrowser.com/'; 102 $title = wpua_detect_browser_version('AtomicBrowser'); 112 $title = 'Atomic Web Browser'; 113 $version = wpua_detect_browser_version('AtomicBrowser'); 103 114 $code = 'atomicwebbrowser'; 104 115 } … … 106 117 { 107 118 $link = 'http://www.avantbrowser.com/'; 108 $title = 'Avant '.wpua_detect_browser_version('Browser'); 119 $title = 'Avant Browser'; 120 $version = wpua_detect_browser_version('Browser'); 109 121 $code = 'avantbrowser'; 110 122 } … … 112 124 { 113 125 $link = 'http://www.whitehatsec.com/aviator/'; 114 $title = wpua_detect_browser_version('Aviator');126 $title = 'Aviator'; 115 127 $code = 'aviator'; 116 128 } … … 118 130 { 119 131 $link = 'http://liulanqi.baidu.com/'; 120 $title = 'Baidu '.wpua_detect_browser_version('Browser'); 132 $title = 'Baidu Browser'; 133 $version = wpua_detect_browser_version('Browser'); 121 134 $code = 'baidubrowser'; 122 135 } … … 124 137 { 125 138 $link = 'http://en.browser.baidu.com/'; 126 $title = 'Baidu '.wpua_detect_browser_version('Spark'); 139 $title = 'Baidu Spark'; 140 $version = wpua_detect_browser_version('Spark'); 127 141 $code = 'baiduspark'; 128 142 } … … 130 144 { 131 145 $link = 'http://www.pocosystems.com/home/index.php?option=content&task=category§ionid=2&id=9&Itemid=27'; 132 $title = wpua_detect_browser_version('BarcaPro'); 146 $title = 'Barca Pro'; 147 $version = wpua_detect_browser_version('BarcaPro'); 133 148 $code = 'barca'; 134 149 } … … 136 151 { 137 152 $link = 'http://www.pocosystems.com/home/index.php?option=content&task=category§ionid=2&id=9&Itemid=27'; 138 $title = wpua_detect_browser_version('Barca');153 $title = 'Barca'; 139 154 $code = 'barca'; 140 155 } … … 142 157 { 143 158 $link = 'http://www.beamrise.com/'; 144 $title = wpua_detect_browser_version('Beamrise');159 $title = 'Beamrise'; 145 160 $code = 'beamrise'; 146 161 } … … 148 163 { 149 164 $link = 'http://www.beonex.com/'; 150 $title = wpua_detect_browser_version('Beonex');165 $title = 'Beonex'; 151 166 $code = 'beonex'; 152 167 } … … 154 169 { 155 170 $link = 'http://www.blackberry.com/'; 156 $title = wpua_detect_browser_version('BlackBerry');171 $title = 'BlackBerry'; 157 172 $code = 'blackberry'; 158 173 } … … 160 175 { 161 176 $link = 'http://www.blackbirdbrowser.com/'; 162 $title = wpua_detect_browser_version('Blackbird');177 $title = 'Blackbird'; 163 178 $code = 'blackbird'; 164 179 } … … 166 181 { 167 182 $link = 'http://www.netgate.sk/blackhawk/help/welcome-to-blackhawk-web-browser.html'; 168 $title = wpua_detect_browser_version('BlackHawk');183 $title = 'BlackHawk'; 169 184 $code = 'blackhawk'; 170 185 } … … 172 187 { 173 188 $link = 'http://en.wikipedia.org/wiki/Blazer_(web_browser)'; 174 $title = wpua_detect_browser_version('Blazer');189 $title = 'Blazer'; 175 190 $code = 'blazer'; 176 191 } … … 178 193 { 179 194 $link = 'http://www.boltbrowser.com/'; 180 $title = wpua_detect_browser_version('Bolt');195 $title = 'Bolt'; 181 196 $code = 'bolt'; 182 197 } … … 184 199 { 185 200 $link = 'http://www.mozilla.org/projects/minefield/'; 186 $title = wpua_detect_browser_version('BonEcho');201 $title = 'BonEcho'; 187 202 $code = 'firefoxdevpre'; 188 203 } … … 191 206 $link = 'http://pdqi.com/browsex/'; 192 207 $title = 'BrowseX'; 208 $version = ''; 193 209 $code = 'browsex'; 194 210 } … … 196 212 { 197 213 $link = 'http://www.browzar.com/'; 198 $title = wpua_detect_browser_version('Browzar');214 $title = 'Browzar'; 199 215 $code = 'browzar'; 200 216 } … … 202 218 { 203 219 $link = 'http://code.google.com/p/quirkysoft/'; 204 $title = wpua_detect_browser_version('Bunjalloo');220 $title = 'Bunjalloo'; 205 221 $code = 'bunjalloo'; 206 222 } … … 208 224 { 209 225 $link = 'http://www.caminobrowser.org/'; 210 $title = wpua_detect_browser_version('Camino');226 $title = 'Camino'; 211 227 $code = 'camino'; 212 228 } … … 214 230 { 215 231 $link = 'http://www.caymanbrowser.com/'; 216 $title = 'Cayman '.wpua_detect_browser_version('Browser'); 232 $title = 'Cayman Browser'; 233 $version = wpua_detect_browser_version('Browser'); 217 234 $code = 'caymanbrowser'; 218 235 } … … 220 237 { 221 238 $link = 'http://en.wikipedia.org/wiki/Charon_(web_browser)'; 222 $title = wpua_detect_browser_version('Charon');239 $title = 'Charon'; 223 240 $code = 'null'; 224 241 } … … 226 243 { 227 244 $link = 'http://downloads.channel.aol.com/browser'; 228 $title = wpua_detect_browser_version('Cheshire');245 $title = 'Cheshire'; 229 246 $code = 'aol'; 230 247 } … … 232 249 { 233 250 $link = 'http://www.chimera.org/'; 234 $title = wpua_detect_browser_version('Chimera');251 $title = 'Chimera'; 235 252 $code = 'null'; 236 253 } … … 238 255 { 239 256 $link = 'http://code.google.com/chrome/chromeframe/'; 240 $title = wpua_detect_browser_version('chromeframe'); 257 $title = 'Google Chrome Frame'; 258 $version = wpua_detect_browser_version('chromeframe'); 241 259 $code = 'google'; 242 260 } … … 244 262 { 245 263 $link = 'http://www.chromeplus.org/'; 246 $title = wpua_detect_browser_version('ChromePlus');264 $title = 'ChromePlus'; 247 265 $code = 'chromeplus'; 248 266 } … … 250 268 { 251 269 $link = 'http://www.srware.net/'; 252 $title = 'SRWare '.wpua_detect_browser_version('Iron'); 270 $title = 'SRWare Iron'; 271 $version = wpua_detect_browser_version('Iron'); 253 272 $code = 'srwareiron'; 254 273 } … … 256 275 { 257 276 $link = 'http://www.chromium.org/'; 258 $title = wpua_detect_browser_version('Chromium');277 $title = 'Chromium'; 259 278 $code = 'chromium'; 260 279 } … … 262 281 { 263 282 $link = 'http://en.wikipedia.org/wiki/Classilla'; 264 $title = wpua_detect_browser_version('Classilla'); 283 $title = 'Classilla'; 284 $version = wpua_detect_browser_version(' rv'); 265 285 $code = 'classilla'; 266 286 } … … 268 288 { 269 289 $link = 'http://coastbyopera.com/'; 270 $title = wpua_detect_browser_version('Coast');290 $title = 'Coast'; 271 291 $code = 'coast'; 272 292 } … … 274 294 { 275 295 $link = 'http://coccoc.vn/'; 276 $title = wpua_detect_browser_version('coc_coc_browser'); 296 $title = 'Coc Coc'; 297 $version = wpua_detect_browser_version('coc_coc_browser'); 277 298 $code = 'coccoc'; 278 299 } … … 280 301 { 281 302 $link = 'http://www.columbus-browser.com/'; 282 $title = wpua_detect_browser_version('Columbus');303 $title = 'Columbus'; 283 304 $code = 'columbus'; 284 305 } … … 286 307 { 287 308 $link = 'http://www.cometbird.com/'; 288 $title = wpua_detect_browser_version('CometBird');309 $title = 'CometBird'; 289 310 $code = 'cometbird'; 290 311 } … … 292 313 { 293 314 $link = 'http://www.comodo.com/home/internet-security/browser.php'; 294 $title = 'Comodo '.wpua_detect_browser_version('Dragon'); 315 $title = 'Comodo Dragon'; 316 $version = wpua_detect_browser_version('Dragon'); 295 317 $code = 'comodo-dragon'; 296 318 } … … 298 320 { 299 321 $link = 'http://www.conkeror.org/'; 300 $title = wpua_detect_browser_version('Conkeror');322 $title = 'Conkeror'; 301 323 $code = 'conkeror'; 302 324 } … … 304 326 { 305 327 $link = 'http://www.coolnovo.com/'; 306 $title = wpua_detect_browser_version('CoolNovo');328 $title = 'CoolNovo'; 307 329 $code = 'coolnovo'; 308 330 } … … 310 332 { 311 333 $link = 'http://en.wikipedia.org/wiki/C%E1%BB%9D_R%C3%B4m%2B_(browser)'; 312 $title = wpua_detect_browser_version('CoRom');334 $title = 'CoRom'; 313 335 $code = 'corom'; 314 336 } … … 316 338 { 317 339 $link = 'http://www.crazybrowser.com/'; 318 $title = 'Crazy '.wpua_detect_browser_version('Browser'); 340 $title = 'Crazy Browser'; 341 $version = wpua_detect_browser_version('Browser'); 319 342 $code = 'crazybrowser'; 320 343 } … … 322 345 { 323 346 $link = 'http://www.google.com/chrome'; 324 $title = wpua_detect_browser_version('CrMo'); 347 $title = 'Chrome Mobile'; 348 $version = wpua_detect_browser_version('CrMo'); 325 349 $code = 'chrome'; 326 350 } … … 328 352 { 329 353 $link = 'http://www.cruzapp.com/'; 330 $title = wpua_detect_browser_version('Cruz');354 $title = 'Cruz'; 331 355 $code = 'cruz'; 332 356 } … … 334 358 { 335 359 $link = 'http://www.cyberdog.org/about/cyberdog/cyberbrowse.html'; 336 $title = wpua_detect_browser_version('Cyberdog');360 $title = 'Cyberdog'; 337 361 $code = 'cyberdog'; 338 362 } 363 elseif (preg_match('/Deepnet\ Explorer/i', $useragent)) 364 { 365 $link = 'http://www.deepnetexplorer.com/'; 366 $title = 'Deepnet Explorer'; 367 $code = 'deepnetexplorer'; 368 } 369 elseif (preg_match('/Demeter/i', $useragent)) 370 { 371 $link = 'http://www.hurrikenux.com/Demeter/'; 372 $title = 'Demeter'; 373 $code = 'demeter'; 374 } 375 elseif (preg_match('/DeskBrowse/i', $useragent)) 376 { 377 $link = 'http://www.deskbrowse.org/'; 378 $title = 'DeskBrowse'; 379 $code = 'deskbrowse'; 380 } 381 elseif (preg_match('/Dillo/i', $useragent)) 382 { 383 $link = 'http://www.dillo.org/'; 384 $title = 'Dillo'; 385 $code = 'dillo'; 386 } 387 elseif (preg_match('/DoCoMo/i', $useragent)) 388 { 389 $link = 'http://www.nttdocomo.com/'; 390 $title = 'DoCoMo'; 391 $code = 'null'; 392 } 393 elseif (preg_match('/DocZilla/i', $useragent)) 394 { 395 $link = 'http://www.doczilla.com/'; 396 $title = 'DocZilla'; 397 $code = 'doczilla'; 398 } 399 elseif (preg_match('/Dolfin/i', $useragent)) 400 { 401 $link = 'http://www.samsungmobile.com/'; 402 $title = 'Dolfin'; 403 $code = 'samsung'; 404 } 405 elseif (preg_match('/Dooble/i', $useragent)) 406 { 407 $link = 'http://dooble.sourceforge.net/'; 408 $title = 'Dooble'; 409 $code = 'dooble'; 410 } 411 elseif (preg_match('/Doris/i', $useragent)) 412 { 413 $link = 'http://www.anygraaf.fi/browser/indexe.htm'; 414 $title = 'Doris'; 415 $code = 'doris'; 416 } 417 elseif (preg_match('/Dorothy/i', $useragent)) 418 { 419 $link = 'http://www.dorothybrowser.com/'; 420 $title = 'Dorothy'; 421 $code = 'dorothybrowser'; 422 } 339 423 elseif (preg_match('/DPlus/i', $useragent)) 340 424 { 341 425 $link = 'http://dplus-browser.sourceforge.net/'; 342 $title = wpua_detect_browser_version('DPlus'); 426 $version = wpua_detect_browser_version('DPlus'); 427 $title = 'D+'; 343 428 $code = 'dillo'; 344 429 } 345 elseif (preg_match('/Deepnet\ Explorer/i', $useragent)) 346 { 347 $link = 'http://www.deepnetexplorer.com/'; 348 $title = wpua_detect_browser_version('Deepnet Explorer'); 349 $code = 'deepnetexplorer'; 350 } 351 elseif (preg_match('/Demeter/i', $useragent)) 352 { 353 $link = 'http://www.hurrikenux.com/Demeter/'; 354 $title = wpua_detect_browser_version('Demeter'); 355 $code = 'demeter'; 356 } 357 elseif (preg_match('/DeskBrowse/i', $useragent)) 358 { 359 $link = 'http://www.deskbrowse.org/'; 360 $title = wpua_detect_browser_version('DeskBrowse'); 361 $code = 'deskbrowse'; 362 } 363 elseif (preg_match('/Dillo/i', $useragent)) 364 { 365 $link = 'http://www.dillo.org/'; 366 $title = wpua_detect_browser_version('Dillo'); 367 $code = 'dillo'; 368 } 369 elseif (preg_match('/DoCoMo/i', $useragent)) 370 { 371 $link = 'http://www.nttdocomo.com/'; 372 $title = wpua_detect_browser_version('DoCoMo'); 430 elseif (preg_match('/Edbrowse/i', $useragent)) 431 { 432 $link = 'http://edbrowse.sourceforge.net/'; 433 $title = 'Edbrowse'; 434 $code = 'edbrowse'; 435 } 436 elseif (preg_match('/Element\ Browser/i', $useragent)) 437 { 438 $link = 'http://www.elementsoftware.co.uk/software/elementbrowser/'; 439 $title = 'Element Browser'; 440 $version = wpua_detect_browser_version('Browser'); 441 $code = 'elementbrowser'; 442 } 443 elseif (preg_match('/Elinks/i', $useragent)) 444 { 445 $link = 'http://elinks.or.cz/'; 446 $title = 'Elinks'; 447 $code = 'elinks'; 448 } 449 elseif (preg_match('/Enigma\ Browser/i', $useragent)) 450 { 451 $link = 'http://en.wikipedia.org/wiki/Enigma_Browser'; 452 $title = 'Enigma Browser'; 453 $version = wpua_detect_browser_version('Browser'); 454 $code = 'enigmabrowser'; 455 } 456 elseif (preg_match('/EnigmaFox/i', $useragent)) 457 { 458 $link = '#'; 459 $title = 'EnigmaFox'; 373 460 $code = 'null'; 374 461 } 375 elseif (preg_match('/DocZilla/i', $useragent))376 {377 $link = 'http://www.doczilla.com/';378 $title = wpua_detect_browser_version('DocZilla');379 $code = 'doczilla';380 }381 elseif (preg_match('/Dolfin/i', $useragent))382 {383 $link = 'http://www.samsungmobile.com/';384 $title = wpua_detect_browser_version('Dolfin');385 $code = 'samsung';386 }387 elseif (preg_match('/Dooble/i', $useragent))388 {389 $link = 'http://dooble.sourceforge.net/';390 $title = wpua_detect_browser_version('Dooble');391 $code = 'dooble';392 }393 elseif (preg_match('/Doris/i', $useragent))394 {395 $link = 'http://www.anygraaf.fi/browser/indexe.htm';396 $title = wpua_detect_browser_version('Doris');397 $code = 'doris';398 }399 elseif (preg_match('/Dorothy/i', $useragent))400 {401 $link = 'http://www.dorothybrowser.com/';402 $title = wpua_detect_browser_version('Dorothy');403 $code = 'dorothybrowser';404 }405 elseif (preg_match('/DPlus/i', $useragent))406 {407 $link = 'http://dplus-browser.sourceforge.net/';408 $title = wpua_detect_browser_version('DPlus');409 $code = 'dillo';410 }411 elseif (preg_match('/Edbrowse/i', $useragent))412 {413 $link = 'http://edbrowse.sourceforge.net/';414 $title = wpua_detect_browser_version('Edbrowse');415 $code = 'edbrowse';416 }417 elseif (preg_match('/Element\ Browser/i', $useragent))418 {419 $link = 'http://www.elementsoftware.co.uk/software/elementbrowser/';420 $title = 'Element '.wpua_detect_browser_version('Browser');421 $code = 'elementbrowser';422 }423 elseif (preg_match('/Elinks/i', $useragent))424 {425 $link = 'http://elinks.or.cz/';426 $title = wpua_detect_browser_version('Elinks');427 $code = 'elinks';428 }429 elseif (preg_match('/Enigma\ Browser/i', $useragent))430 {431 $link = 'http://en.wikipedia.org/wiki/Enigma_Browser';432 $title = 'Enigma '.wpua_detect_browser_version('Browser');433 $code = 'enigmabrowser';434 }435 elseif (preg_match('/EnigmaFox/i', $useragent))436 {437 $link = '#';438 $title = wpua_detect_browser_version('EnigmaFox');439 $code = 'null';440 }441 462 elseif (preg_match('/Epic/i', $useragent)) 442 463 { 443 464 $link = 'http://www.epicbrowser.com/'; 444 $title = wpua_detect_browser_version('Epic');465 $title = 'Epic'; 445 466 $code = 'epicbrowser'; 446 467 } … … 448 469 { 449 470 $link = 'http://gnome.org/projects/epiphany/'; 450 $title = wpua_detect_browser_version('Epiphany');471 $title = 'Epiphany'; 451 472 $code = 'epiphany'; 452 473 } … … 454 475 { 455 476 $link = 'http://www.espial.com/products/evo_browser/'; 456 $title = 'Espial TV Browser '.wpua_detect_browser_version('Escape');477 $title = 'Espial TV Browser'; 457 478 $code = 'espialtvbrowser'; 458 479 } … … 460 481 { 461 482 $link = 'http://www.espial.com/products/evo_browser/'; 462 $title = 'Espial TV Browser '.wpua_detect_browser_version('Espial');483 $title = 'Espial TV Browser'; 463 484 $code = 'espialtvbrowser'; 464 485 } … … 466 487 { 467 488 $link = 'https://wiki.mozilla.org/Fennec'; 468 $title = wpua_detect_browser_version('Fennec');489 $title = 'Fennec'; 469 490 $code = 'fennec'; 470 491 } … … 472 493 { 473 494 $link = 'http://seb.mozdev.org/firebird/'; 474 $title = wpua_detect_browser_version('Firebird');495 $title = 'Firebird'; 475 496 $code = 'firebird'; 476 497 } … … 478 499 { 479 500 $link = 'http://www.arsslensoft.tk/?q=node/7'; 480 $title = wpua_detect_browser_version('Fireweb Navigator');501 $title = 'Fireweb Navigator'; 481 502 $code = 'firewebnavigator'; 482 503 } … … 484 505 { 485 506 $link = 'http://www.flock.com/'; 486 $title = wpua_detect_browser_version('Flock');507 $title = 'Flock'; 487 508 $code = 'flock'; 488 509 } … … 490 511 { 491 512 $link = 'http://www.fluidapp.com/'; 492 $title = wpua_detect_browser_version('Fluid');513 $title = 'Fluid'; 493 514 $code = 'fluid'; 494 515 } … … 497 518 { 498 519 $link = 'http://www.traos.org/'; 499 $title = wpua_detect_browser_version('Galaxy');520 $title = 'Galaxy'; 500 521 $code = 'galaxy'; 501 522 } … … 503 524 { 504 525 $link = 'http://galeon.sourceforge.net/'; 505 $title = wpua_detect_browser_version('Galeon');526 $title = 'Galeon'; 506 527 $code = 'galeon'; 507 528 } … … 509 530 { 510 531 $link = 'http://www.globalmojo.com/'; 511 $title = wpua_detect_browser_version('GlobalMojo');532 $title = 'GlobalMojo'; 512 533 $code = 'globalmojo'; 513 534 } … … 515 536 { 516 537 $link = 'http://www.gobrowser.cn/'; 517 $title = 'GO '.wpua_detect_browser_version('Browser'); 538 $title = 'GO Browser'; 539 $version = wpua_detect_browser_version('Browser'); 518 540 $code = 'gobrowser'; 519 541 } … … 522 544 $link = 'http://google.com/gwt/n'; 523 545 $title = 'Google Wireless Transcoder'; 546 $version = ''; 524 547 $code = 'google'; 525 548 } … … 527 550 { 528 551 $link = 'http://gosurfbrowser.com/?ln=en'; 529 $title = wpua_detect_browser_version('GoSurf');552 $title = 'GoSurf'; 530 553 $code = 'gosurf'; 531 554 } … … 533 556 { 534 557 $link = 'http://www.mozilla.org/'; 535 $title = wpua_detect_browser_version('GranParadiso');558 $title = 'GranParadiso'; 536 559 $code = 'firefoxdevpre'; 537 560 } … … 539 562 { 540 563 $link = 'http://www.morequick.com/'; 541 $title = wpua_detect_browser_version('GreenBrowser');564 $title = 'GreenBrowser'; 542 565 $code = 'greenbrowser'; 543 566 } … … 546 569 { 547 570 $link = 'http://en.wikipedia.org/wiki/Google_Search#Mobile_app'; 548 $title = wpua_detect_browser_version('GSA'); 571 $title = 'Google Search App'; 572 $version = wpua_detect_browser_version('GSA'); 549 573 $code = 'google'; 550 574 } … … 552 576 { 553 577 $link = 'http://www.alloutsoftware.com/'; 554 $title = wpua_detect_browser_version('Hana');578 $title = 'Hana'; 555 579 $code = 'hana'; 556 580 } … … 558 582 { 559 583 $link = 'http://java.sun.com/products/archive/hotjava/'; 560 $title = wpua_detect_browser_version('HotJava');584 $title = 'HotJava'; 561 585 $code = 'hotjava'; 562 586 } … … 564 588 { 565 589 $link = 'http://tkhtml.tcl.tk/hv3.html'; 566 $title = wpua_detect_browser_version('Hv3');590 $title = 'Hv3'; 567 591 $code = 'hv3'; 568 592 } … … 571 595 $link = 'http://www.hydrabrowser.com/'; 572 596 $title = 'Hydra Browser'; 597 $version = ''; 573 598 $code = 'hydrabrowser'; 574 599 } … … 576 601 { 577 602 $link = 'http://www.torchmobile.com/'; 578 $title = wpua_detect_browser_version('Iris');603 $title = 'Iris'; 579 604 $code = 'iris'; 580 605 } … … 582 607 { 583 608 $link = 'http://www.networking.ibm.com/WebExplorer/'; 584 $title = 'IBM '.wpua_detect_browser_version('WebExplorer'); 609 $title = 'IBM WebExplorer'; 610 $version = wpua_detect_browser_version('WebExplorer'); 585 611 $code = 'ibmwebexplorer'; 586 612 } … … 588 614 { 589 615 $link = 'http://www.ibrowse-dev.net/'; 590 $title = wpua_detect_browser_version('IBrowse');616 $title = 'IBrowse'; 591 617 $code = 'ibrowse'; 592 618 } … … 594 620 { 595 621 $link = 'http://www.icab.de/'; 596 $title = wpua_detect_browser_version('iCab');622 $title = 'iCab'; 597 623 $code = 'icab'; 598 624 } … … 600 626 { 601 627 $link = 'http://www.icesoft.com/products/icebrowser.html'; 602 $title = wpua_detect_browser_version('Ice Browser');628 $title = 'Ice Browser'; 603 629 $code = 'icebrowser'; 604 630 } … … 606 632 { 607 633 $link = 'http://packages.debian.org/iceape'; 608 $title = wpua_detect_browser_version('Iceape');634 $title = 'Iceape'; 609 635 $code = 'iceape'; 610 636 } … … 612 638 { 613 639 $link = 'http://gnuzilla.gnu.org/'; 614 $title = 'GNU '.wpua_detect_browser_version('IceCat'); 640 $title = 'GNU IceCat'; 641 $version = wpua_detect_browser_version('IceCat'); 615 642 $code = 'icecat'; 616 643 } … … 618 645 { 619 646 $link = 'http://www.comodo.com/home/browsers-toolbars/icedragon-browser.php'; 620 $title = wpua_detect_browser_version('IceDragon');647 $title = 'IceDragon'; 621 648 $code = 'icedragon'; 622 649 } … … 624 651 { 625 652 $link = 'http://www.geticeweasel.org/'; 626 $title = wpua_detect_browser_version('IceWeasel');653 $title = 'IceWeasel'; 627 654 $code = 'iceweasel'; 628 655 } … … 630 657 { 631 658 $link = 'http://www.microsoft.com/windowsmobile/en-us/downloads/microsoft/internet-explorer-mobile.mspx'; 632 $title = wpua_detect_browser_version('IEMobile');659 $title = 'IEMobile'; 633 660 $code = 'msie-mobile'; 634 661 } … … 636 663 { 637 664 $link = 'http://alexanderjbeston.wordpress.com/'; 638 $title = 'iNet '.wpua_detect_browser_version('Browser'); 665 $title = 'iNet Browser'; 666 $version = wpua_detect_browser_version('Browser'); 639 667 $code = 'null'; 640 668 } … … 642 670 { 643 671 $link = 'http://en.wikipedia.org/wiki/IRider'; 644 $title = wpua_detect_browser_version('iRider');672 $title = 'iRider'; 645 673 $code = 'irider'; 646 674 } … … 648 676 { 649 677 $link = 'http://www.srware.net/en/software_srware_iron.php'; 650 $title = wpua_detect_browser_version('Iron');678 $title = 'Iron'; 651 679 $code = 'iron'; 652 680 } … … 654 682 { 655 683 $link = 'http://inetsurfboard.sourceforge.net/'; 656 $title = wpua_detect_browser_version('InternetSurfboard');684 $title = 'InternetSurfboard'; 657 685 $code = 'internetsurfboard'; 658 686 } … … 660 688 { 661 689 $link = 'http://www.samsungmobile.com/'; 662 $title = wpua_detect_browser_version('Jasmine');690 $title = 'Jasmine'; 663 691 $code = 'samsung'; 664 692 } … … 666 694 { 667 695 $link = 'http://kmeleon.sourceforge.net/'; 668 $title = wpua_detect_browser_version('K-Meleon');696 $title = 'K-Meleon'; 669 697 $code = 'kmeleon'; 670 698 } … … 672 700 { 673 701 $link = 'http://k-ninja-samurai.en.softonic.com/'; 674 $title = wpua_detect_browser_version('K-Ninja');702 $title = 'K-Ninja'; 675 703 $code = 'kninja'; 676 704 } … … 678 706 { 679 707 $link = 'http://ufoxlab.googlepages.com/cooperation'; 680 $title = wpua_detect_browser_version('Kapiko');708 $title = 'Kapiko'; 681 709 $code = 'kapiko'; 682 710 } … … 684 712 { 685 713 $link = 'http://kazehakase.sourceforge.jp/'; 686 $title = wpua_detect_browser_version('Kazehakase');714 $title = 'Kazehakase'; 687 715 $code = 'kazehakase'; 688 716 } … … 690 718 { 691 719 $link = 'http://www.kinza.jp/'; 692 $title = wpua_detect_browser_version('Kinza');720 $title = 'Kinza'; 693 721 $code = 'kinza'; 694 722 } … … 696 724 { 697 725 $link = 'http://www.kirix.com/'; 698 $title = 'Kirix '.wpua_detect_browser_version('Strata'); 726 $title = 'Kirix Strata'; 727 $version = wpua_detect_browser_version('Strata'); 699 728 $code = 'kirix-strata'; 700 729 } … … 702 731 { 703 732 $link = 'http://www.kkman.com.tw/'; 704 $title = wpua_detect_browser_version('KKman');733 $title = 'KKman'; 705 734 $code = 'kkman'; 706 735 } … … 708 737 { 709 738 $link = 'http://kontact.kde.org/kmail/'; 710 $title = wpua_detect_browser_version('KMail');739 $title = 'KMail'; 711 740 $code = 'kmail'; 712 741 } … … 714 743 { 715 744 $link = 'http://en.wikipedia.org/wiki/K-Meleon'; 716 $title = wpua_detect_browser_version('KMLite');745 $title = 'KMLite'; 717 746 $code = 'kmeleon'; 718 747 } … … 720 749 { 721 750 $link = 'http://konqueror.kde.org/'; 722 $title = wpua_detect_browser_version('Konqueror');751 $title = 'Konqueror'; 723 752 $code = 'konqueror'; 724 753 } … … 726 755 { 727 756 $link = 'http://kylo.tv/'; 728 $title = wpua_detect_browser_version('Kylo');757 $title = 'Kylo'; 729 758 $code = 'kylo'; 730 759 } … … 732 761 { 733 762 $link = 'http://wiki.freespire.org/index.php/Web_Browser'; 734 $title = wpua_detect_browser_version('LBrowser');763 $title = 'LBrowser'; 735 764 $code = 'lbrowser'; 736 765 } … … 738 767 { 739 768 $link = 'http://developer.lgappstv.com/TV_HELP/index.jsp?topic=%2Flge.tvsdk.developing.book%2Fhtml%2FDeveloping+Web+App%2FDeveloping+Web+App%2FWeb+Engine.htm'; 740 $title = 'LG Web '.wpua_detect_browser_version('Browser'); 769 $title = 'LG Web Browser'; 770 $version = wpua_detect_browser_version('Browser'); 741 771 $code = 'lgbrowser'; 742 772 } … … 745 775 $link = 'http://leechcraft.org/'; 746 776 $title = 'LeechCraft'; 777 $version = ''; 747 778 $code = 'null'; 748 779 } … … 751 782 { 752 783 $link = 'http://links.sourceforge.net/'; 753 $title = wpua_detect_browser_version('Links'); 784 $version = wpua_detect_browser_version('Links \\('); 785 $title = 'Links'; 754 786 $code = 'links'; 755 787 } … … 757 789 { 758 790 $link = 'http://www.lobobrowser.org/'; 759 $title = wpua_detect_browser_version('Lobo');791 $title = 'Lobo'; 760 792 $code = 'lobo'; 761 793 } … … 763 795 { 764 796 $link = 'http://www.lolifox.com/'; 765 $title = wpua_detect_browser_version('lolifox');797 $title = 'lolifox'; 766 798 $code = 'lolifox'; 767 799 } … … 769 801 { 770 802 $link = 'http://news.softpedia.com/news/Firefox-Codenamed-Lorentz-Drops-in-March-2010-130855.shtml'; 771 $title = wpua_detect_browser_version('Lorentz');803 $title = 'Lorentz'; 772 804 $code = 'firefoxdevpre'; 773 805 } … … 776 808 $link = 'http://luakit.org/'; 777 809 $title = 'luakit'; 810 $version = ''; 778 811 $code = 'luakit'; 779 812 } … … 781 814 { 782 815 $link = 'http://www.lunascape.tv'; 783 $title = wpua_detect_browser_version('Lunascape');816 $title = 'Lunascape'; 784 817 $code = 'lunascape'; 785 818 } … … 787 820 { 788 821 $link = 'http://lynx.browser.org/'; 789 $title = wpua_detect_browser_version('Lynx');822 $title = 'Lynx'; 790 823 $code = 'lynx'; 791 824 } … … 793 826 { 794 827 $link = 'http://en.wikipedia.org/wiki/Madfox'; 795 $title = wpua_detect_browser_version('Madfox');828 $title = 'Madfox'; 796 829 $code = 'madfox'; 797 830 } … … 799 832 { 800 833 $link = 'http://maemo.nokia.com/features/maemo-browser/'; 801 $title = wpua_detect_browser_version('Maemo Browser');834 $title = 'Maemo Browser'; 802 835 $code = 'maemo'; 803 836 } … … 805 838 { 806 839 $link = 'http://www.maxthon.com/'; 807 $title = wpua_detect_browser_version('Maxthon');840 $title = 'Maxthon'; 808 841 $code = 'maxthon'; 809 842 } … … 811 844 { 812 845 $link = 'http://www.motorola.com/content.jsp?globalObjectId=1827-4343'; 813 $title = wpua_detect_browser_version('MIB');846 $title = 'MIB'; 814 847 $code = 'mib'; 815 848 } … … 817 850 { 818 851 $link = 'http://browser.garage.maemo.org/'; 819 $title = wpua_detect_browser_version('Tablet browser'); 852 $title = 'MicroB'; 853 $version = wpua_detect_browser_version('Tablet browser'); 820 854 $code = 'microb'; 821 855 } … … 823 857 { 824 858 $link = 'http://www.twotoasts.de/index.php?/pages/midori_summary.html'; 825 $title = wpua_detect_browser_version('Midori');859 $title = 'Midori'; 826 860 $code = 'midori'; 827 861 } … … 829 863 { 830 864 $link = 'http://www.mozilla.org/projects/minefield/'; 831 $title = wpua_detect_browser_version('Minefield');865 $title = 'Minefield'; 832 866 $code = 'minefield'; 833 867 } … … 835 869 { 836 870 $link = 'http://dmkho.tripod.com/'; 837 $title = wpua_detect_browser_version('MiniBrowser');871 $title = 'MiniBrowser'; 838 872 $code = 'minibrowser'; 839 873 } … … 841 875 { 842 876 $link = 'http://www-archive.mozilla.org/projects/minimo/'; 843 $title = wpua_detect_browser_version('Minimo');877 $title = 'Minimo'; 844 878 $code = 'minimo'; 845 879 } … … 847 881 { 848 882 $link = 'http://en.wikipedia.org/wiki/Mosaic_(web_browser)'; 849 $title = wpua_detect_browser_version('Mosaic');883 $title = 'Mosaic'; 850 884 $code = 'mosaic'; 851 885 } … … 853 887 { 854 888 $link = 'http://www.mozilla.org/projects/devpreview/releasenotes/'; 855 $title = wpua_detect_browser_version('MozillaDeveloperPreview'); 889 $title = 'Mozilla Developer Preview'; 890 $version = wpua_detect_browser_version('MozillaDeveloperPreview'); 856 891 $code = 'firefoxdevpre'; 857 892 } … … 860 895 $link = 'http://browser.qq.com/'; 861 896 $title = 'QQbrowser'; 897 $version = ''; 862 898 $code = 'qqbrowser'; 863 899 } … … 865 901 { 866 902 $link = 'http://www.multibrowser.de/'; 867 $title = wpua_detect_browser_version('Multi-Browser'); 903 $title = 'Multi-Browser XP'; 904 $version = wpua_detect_browser_version('Multi-Browser'); 868 905 $code = 'multi-browserxp'; 869 906 } … … 871 908 { 872 909 $link = 'http://multizilla.mozdev.org/'; 873 $title = wpua_detect_browser_version('MultiZilla');910 $title = 'MultiZilla'; 874 911 $code = 'mozilla'; 875 912 } … … 877 914 { 878 915 $link = 'http://usa.maxthon.com/mxnitro/'; 879 $title = wpua_detect_browser_version('MxNitro');916 $title = 'MxNitro'; 880 917 $code = 'mxnitro'; 881 918 } … … 884 921 { 885 922 $link = 'http://myinternetbrowser.webove-stranky.org/'; 886 $title = wpua_detect_browser_version('myibrow');923 $title = 'myibrow'; 887 924 $code = 'my-internet-browser'; 888 925 } … … 890 927 { 891 928 $link = 'http://www.myie2.com/'; 892 $title = wpua_detect_browser_version('MyIE2');929 $title = 'MyIE2'; 893 930 $code = 'myie2'; 894 931 } … … 896 933 { 897 934 $link = 'https://wiki.mozilla.org/Firefox/Namoroka'; 898 $title = wpua_detect_browser_version('Namoroka');935 $title = 'Namoroka'; 899 936 $code = 'firefoxdevpre'; 900 937 } … … 902 939 { 903 940 $link = 'http://netscape.aol.com/'; 904 $title = 'Netscape '.wpua_detect_browser_version('Navigator'); 941 $title = 'Netscape Navigator'; 942 $version = wpua_detect_browser_version('Navigator'); 905 943 $code = 'netscape'; 906 944 } … … 908 946 { 909 947 $link = 'http://www.netgem.com/'; 910 $title = wpua_detect_browser_version('NetBox');948 $title = 'NetBox'; 911 949 $code = 'netbox'; 912 950 } … … 914 952 { 915 953 $link = 'http://www.netcaptor.com/'; 916 $title = wpua_detect_browser_version('NetCaptor');954 $title = 'NetCaptor'; 917 955 $code = 'netcaptor'; 918 956 } … … 920 958 { 921 959 $link = 'http://gl.access-company.com/files/legacy/products/nflife/app_browser2.html'; 922 $title = wpua_detect_browser_version('NetFrontLifeBrowser'); 960 $title = 'NetFront Life'; 961 $version = wpua_detect_browser_version('NetFrontLifeBrowser'); 923 962 $code = 'netfrontlife'; 924 963 } … … 926 965 { 927 966 $link = 'http://www.access-company.com/'; 928 $title = wpua_detect_browser_version('NetFront');967 $title = 'NetFront'; 929 968 $code = 'netfront'; 930 969 } … … 932 971 { 933 972 $link = 'http://www.newsgator.com/individuals/netnewswire/'; 934 $title = wpua_detect_browser_version('NetNewsWire');973 $title = 'NetNewsWire'; 935 974 $code = 'netnewswire'; 936 975 } … … 938 977 { 939 978 $link = 'http://en.wikipedia.org/wiki/NetPositive'; 940 $title = wpua_detect_browser_version('NetPositive');979 $title = 'NetPositive'; 941 980 $code = 'netpositive'; 942 981 } … … 944 983 { 945 984 $link = 'http://netscape.aol.com/'; 946 $title = wpua_detect_browser_version('Netscape');985 $title = 'Netscape'; 947 986 $code = 'netscape'; 948 987 } … … 950 989 { 951 990 $link = 'http://www.netsurf-browser.org/'; 952 $title = wpua_detect_browser_version('NetSurf');991 $title = 'NetSurf'; 953 992 $code = 'netsurf'; 954 993 } … … 956 995 { 957 996 $link = 'http://www.access-company.com/'; 958 $title = wpua_detect_browser_version('NF-Browser'); 997 $title = 'NetFront'; 998 $version = wpua_detect_browser_version('NF-Browser'); 959 999 $code = 'netfront'; 960 1000 } … … 962 1002 { 963 1003 $link = 'http://ninesky.com/'; 964 $title = wpua_detect_browser_version('Ninesky-android-mobile'); 1004 $title = 'Ninesky'; 1005 $version = wpua_detect_browser_version('Ninesky-android-mobile'); 965 1006 $code = 'ninesky'; 966 1007 } … … 969 1010 $link = 'http://en.wikipedia.org/wiki/Internet_Browser_(Nintendo_3DS)'; 970 1011 $title = 'Nintendo 3DS'; 1012 $version = ''; 971 1013 $code = 'nintendo3dsbrowser'; 972 1014 } … … 974 1016 { 975 1017 $link = 'http://www.netsurf-browser.org/'; 976 $title = 'Nintendo '.wpua_detect_browser_version('Browser'); 1018 $title = 'Nintendo Browser'; 1019 $version = wpua_detect_browser_version('Browser'); 977 1020 $code = 'nintendobrowser'; 978 1021 } … … 980 1023 { 981 1024 $link = 'http://browser.nokia.com/'; 982 $title = 'Nokia '.wpua_detect_browser_version('Browser'); 1025 $title = 'Nokia Browser'; 1026 $version = wpua_detect_browser_version('Browser'); 983 1027 $code = 'nokia'; 984 1028 } … … 986 1030 { 987 1031 $link = 'http://www.novarra.com/'; 988 $title = 'Novarra '.wpua_detect_browser_version('Vision'); 1032 $title = 'Novarra Vision'; 1033 $version = wpua_detect_browser_version('Vision'); 989 1034 $code = 'novarra'; 990 1035 } … … 992 1037 { 993 1038 $link = 'http://en.wikipedia.org/wiki/Obigo_Browser'; 994 $title = wpua_detect_browser_version('Obigo');1039 $title = 'Obigo'; 995 1040 $code = 'obigo'; 996 1041 } … … 999 1044 $link = 'http://www.offbyone.com/'; 1000 1045 $title = 'Off By One'; 1046 $version = ''; 1001 1047 $code = 'offbyone'; 1002 1048 } … … 1004 1050 { 1005 1051 $link = 'http://www.omnigroup.com/applications/omniweb/'; 1006 $title = wpua_detect_browser_version('OmniWeb');1052 $title = 'OmniWeb'; 1007 1053 $code = 'omniweb'; 1008 1054 } … … 1010 1056 { 1011 1057 $link = 'http://one-browser.com/'; 1012 $title = wpua_detect_browser_version('OneBrowser');1058 $title = 'OneBrowser'; 1013 1059 $code = 'onebrowser'; 1014 1060 } … … 1016 1062 { 1017 1063 $link = 'http://www.opera.com/mini/'; 1018 $title = wpua_detect_browser_version('Opera Mini');1064 $title = 'Opera Mini'; 1019 1065 $code = 'opera-2'; 1020 1066 } … … 1022 1068 { 1023 1069 $link = 'http://www.opera.com/mobile/'; 1024 $title = wpua_detect_browser_version('Opera Mobi'); 1070 if (preg_match('/Version/i', $useragent)) 1071 { 1072 $version = wpua_detect_browser_version('Version'); 1073 } 1074 else 1075 { 1076 $version = wpua_detect_browser_version('Opera Mobi'); 1077 } 1078 $title = 'Opera Mobile'; 1025 1079 $code = 'opera-2'; 1026 1080 } 1027 elseif (preg_match('/Opera Labs/i', $useragent) 1028 || (preg_match('/Opera/i', $useragent) 1029 && preg_match('/Edition Labs/i', $useragent))) 1030 { 1031 $link = 'http://labs.opera.com/'; 1032 $title = wpua_detect_browser_version('Opera Labs'); 1033 $code = 'opera-next'; 1034 } 1035 elseif (preg_match('/Opera Next/i', $useragent) 1036 || (preg_match('/Opera/i', $useragent) 1037 && preg_match('/Edition Next/i', $useragent))) 1038 { 1039 $link = 'http://www.opera.com/support/kb/view/991/'; 1040 $title = wpua_detect_browser_version('Opera Next'); 1041 $code = 'opera-next'; 1042 } 1043 elseif (preg_match('/Opera/i', $useragent)) 1081 elseif (preg_match('/Opera/i', $useragent) 1082 || preg_match('/OPR/i', $useragent)) 1044 1083 { 1045 1084 $link = 'http://www.opera.com/'; 1046 $title = wpua_detect_browser_version('Opera');1085 $title = 'Opera'; 1047 1086 $code = 'opera-1'; 1087 1088 // How is version stored on this Opera ua? 1048 1089 if (preg_match('/Version/i', $useragent)) 1090 { 1049 1091 $code = 'opera-2'; 1050 } 1051 elseif (preg_match('/OPR/i', $useragent)) 1052 { 1053 $link = 'http://www.opera.com/'; 1054 if (preg_match('/(Edition Next)/i', $useragent)) 1055 { 1056 $title = wpua_detect_browser_version('Opera Next'); 1057 $code = 'opera-next'; 1058 } 1059 elseif (preg_match('/(Edition Developer)/i', $useragent)) 1060 { 1061 $title = wpua_detect_browser_version('Opera Developer'); 1062 $code = 'opera-developer'; 1092 $version = wpua_detect_browser_version('Version'); 1093 } 1094 elseif (preg_match('/OPR/i', $useragent)) 1095 { 1096 $code = 'opera-2'; 1097 $version = wpua_detect_browser_version('OPR'); 1063 1098 } 1064 1099 else 1065 1100 { 1066 $title = wpua_detect_browser_version('Opera'); 1067 $code = 'opera-1'; 1101 // Use Opera as fallback since full title may change (Next, Developer, etc.) 1102 $version = wpua_detect_browser_version('Opera'); 1103 } 1104 1105 // Is this one with a known alternate icon? 1106 if (preg_match('/Opera Labs/i', $useragent) 1107 || preg_match('/Edition Labs/i', $useragent)) 1108 { 1109 $code = 'opera-2-next'; 1110 } 1111 elseif (preg_match('/Opera Next/i', $useragent) 1112 || preg_match('/Edition Next/i', $useragent)) 1113 { 1114 $code = 'opera-2-next'; 1115 } 1116 elseif (preg_match('/Opera Developer/i', $useragent) 1117 || preg_match('/Edition Developer/i', $useragent)) 1118 { 1119 $code = 'opera-2-developer'; 1120 } 1121 1122 // Parse full edition name, ex: Opera/9.80 (X11; Linux x86_64; U; Edition Labs Camera and Pages; Ubuntu/11.10; en) Presto/2.9.220 Version/12.00 1123 if (preg_match('/Edition ([\ ._0-9a-zA-Z]+)/i', $useragent, $regmatch)) 1124 { 1125 $title .= ' '.$regmatch[1]; 1126 } 1127 elseif (preg_match('/Opera ([\ ._0-9a-zA-Z]+)/i', $useragent, $regmatch)) 1128 { 1129 $title .= ' '.$regmatch[1]; 1130 } 1131 1132 // Use the newest icon? 1133 if (isset($version) && intval($version) > 13) 1134 { 1135 $code = 'opera-3'; 1068 1136 } 1069 1137 } … … 1071 1139 { 1072 1140 $link = 'http://www.orcabrowser.com/'; 1073 $title = wpua_detect_browser_version('Orca');1141 $title = 'Orca'; 1074 1142 $code = 'orca'; 1075 1143 } … … 1077 1145 { 1078 1146 $link = 'http://en.wikipedia.org/wiki/Oregano_(web_browser)'; 1079 $title = wpua_detect_browser_version('Oregano');1147 $title = 'Oregano'; 1080 1148 $code = 'oregano'; 1081 1149 } … … 1084 1152 $link = 'http://www.sand-labs.org/owb'; 1085 1153 $title = 'Oregano Web Browser'; 1154 $version = ''; 1086 1155 $code = 'owb'; 1087 1156 } … … 1089 1158 { 1090 1159 $link = 'http://gtk-webcore.sourceforge.net/'; 1091 $title = wpua_detect_browser_version('osb-browser'); 1160 $version = wpua_detect_browser_version('osb-browser'); 1161 $title = 'Gtk+ WebCore'; 1092 1162 $code = 'null'; 1093 1163 } … … 1095 1165 { 1096 1166 $link = 'http://otter-browser.org/'; 1097 $title = wpua_detect_browser_version('Otter');1167 $title = 'Otter'; 1098 1168 $code = 'otter'; 1099 1169 } … … 1101 1171 { 1102 1172 $link = 'http://www.palm.com/us/products/phones/pre/index.html'; 1103 $title = 'Palm '.wpua_detect_browser_version('Pre'); 1173 if (preg_match('/Version/i', $useragent)) 1174 { 1175 $version = wpua_detect_browser_version('Version'); 1176 } 1177 else 1178 { 1179 $version = wpua_detect_browser_version('Pre'); 1180 } 1181 $title = 'Palm'; 1104 1182 $code = 'palmpre'; 1105 1183 } … … 1107 1185 { 1108 1186 $link = 'http://www.hpwebos.com/us/support/handbooks/tungstent/webbrowser_hb.pdf'; 1109 $title = 'Palm '.wpua_detect_browser_version('WebPro'); 1187 $title = 'Palm WebPro'; 1188 $version = wpua_detect_browser_version('WebPro'); 1110 1189 $code = 'palmwebpro'; 1111 1190 } … … 1113 1192 { 1114 1193 $link = 'http://www.palemoon.org/'; 1115 $title = 'Pale '.wpua_detect_browser_version('Moon'); 1194 $title = 'Pale Moon'; 1195 $version = wpua_detect_browser_version('Moon'); 1116 1196 $code = 'palemoon'; 1117 1197 } … … 1119 1199 { 1120 1200 $link = 'http://madgroup.x10.mx/patriott1.php'; 1121 $title = 'Patriott '.wpua_detect_browser_version('Browser'); 1201 $title = 'Patriott Browser'; 1202 $version = wpua_detect_browser_version('Browser'); 1122 1203 $code = 'patriott'; 1123 1204 } … … 1125 1206 { 1126 1207 $link = 'http://www.perk.com/'; 1127 $title = wpua_detect_browser_version('Perk');1208 $title = 'Perk'; 1128 1209 $code = 'perk'; 1129 1210 } … … 1132 1213 $link = 'http://www.phaseout.net/'; 1133 1214 $title = 'Phaseout'; 1215 $version = ''; 1134 1216 $code = 'phaseout'; 1135 1217 } … … 1137 1219 { 1138 1220 $link = 'http://www.mozilla.org/projects/phoenix/phoenix-release-notes.html'; 1139 $title = wpua_detect_browser_version('Phoenix');1221 $title = 'Phoenix'; 1140 1222 $code = 'phoenix'; 1141 1223 } … … 1144 1226 $link = 'http://us.playstation.com/'; 1145 1227 $title = 'PS4 Web Browser'; 1228 $version = ''; 1146 1229 $code = 'webkit'; 1147 1230 } … … 1149 1232 { 1150 1233 $link = 'http://www.podkicker.com/'; 1151 $title = wpua_detect_browser_version('Podkicker');1234 $title = 'Podkicker'; 1152 1235 $code = 'podkicker'; 1153 1236 } … … 1155 1238 { 1156 1239 $link = 'http://www.podkicker.com/'; 1157 $title = wpua_detect_browser_version('Podkicker Pro');1240 $title = 'Podkicker Pro'; 1158 1241 $code = 'podkicker'; 1159 1242 } … … 1161 1244 { 1162 1245 $link = 'http://en.wikipedia.org/wiki/AT%26T_Pogo'; 1163 $title = wpua_detect_browser_version('Pogo');1246 $title = 'Pogo'; 1164 1247 $code = 'pogo'; 1165 1248 } … … 1167 1250 { 1168 1251 $link = 'http://www.infraware.co.kr/eng/01_product/product02.asp'; 1169 $title = wpua_detect_browser_version('Polaris');1252 $title = 'Polaris'; 1170 1253 $code = 'polaris'; 1171 1254 } … … 1173 1256 { 1174 1257 $link = 'http://polarityweb.webs.com/'; 1175 $title = wpua_detect_browser_version('Polarity');1258 $title = 'Polarity'; 1176 1259 $code = 'polarity'; 1177 1260 } … … 1179 1262 { 1180 1263 $link = 'http://prism.mozillalabs.com/'; 1181 $title = wpua_detect_browser_version('Prism');1264 $title = 'Prism'; 1182 1265 $code = 'prism'; 1183 1266 } … … 1185 1268 { 1186 1269 $link = 'http://www.puffinbrowser.com/'; 1187 $title = wpua_detect_browser_version('Puffin');1270 $title = 'Puffin'; 1188 1271 $code = 'puffin'; 1189 1272 } … … 1191 1274 { 1192 1275 $link = 'http://www.qtweb.net/'; 1193 $title = 'QtWeb Internet '.wpua_detect_browser_version('Browser'); 1276 $title = 'QtWeb Internet Browser'; 1277 $version = wpua_detect_browser_version('Browser'); 1194 1278 $code = 'qtwebinternetbrowser'; 1195 1279 } … … 1197 1281 { 1198 1282 $link = 'http://www.qupzilla.com/'; 1199 $title = wpua_detect_browser_version('QupZilla');1283 $title = 'QupZilla'; 1200 1284 $code = 'qupzilla'; 1201 1285 } … … 1203 1287 { 1204 1288 $link = 'http://soft.rambler.ru/browser/'; 1205 $title = wpua_detect_browser_version('Nichrome\/self'); 1289 $version = wpua_detect_browser_version('Nichrome\/self'); 1290 $title = 'Rambler browser'; 1206 1291 $code = 'ramblerbrowser'; 1207 1292 } … … 1210 1295 $link = 'http://rekonq.sourceforge.net/'; 1211 1296 $title = 'rekonq'; 1297 $version = ''; 1212 1298 $code = 'rekonq'; 1213 1299 } … … 1215 1301 { 1216 1302 $link = 'http://retawq.sourceforge.net/'; 1217 $title = wpua_detect_browser_version('retawq');1303 $title = 'retawq'; 1218 1304 $code = 'terminal'; 1219 1305 } … … 1221 1307 { 1222 1308 $link = 'http://www.runecats.com/roccat.html'; 1223 $title = wpua_detect_browser_version('Roccat');1309 $title = 'Roccat'; 1224 1310 $code = 'roccatbrowser'; 1225 1311 } … … 1227 1313 { 1228 1314 $link = 'http://www.rockmelt.com/'; 1229 $title = wpua_detect_browser_version('RockMelt');1315 $title = 'RockMelt'; 1230 1316 $code = 'rockmelt'; 1231 1317 } … … 1233 1319 { 1234 1320 $link = 'http://sourceforge.net/projects/ryouko/'; 1235 $title = wpua_detect_browser_version('Ryouko');1321 $title = 'Ryouko'; 1236 1322 $code = 'ryouko'; 1237 1323 } … … 1240 1326 $link = 'http://www.saayaa.com/'; 1241 1327 $title = 'SaaYaa Explorer'; 1328 $version = ''; 1242 1329 $code = 'saayaa'; 1243 1330 } … … 1245 1332 { 1246 1333 $link = 'http://www.seamonkey-project.org/'; 1247 $title = wpua_detect_browser_version('SeaMonkey');1334 $title = 'SeaMonkey'; 1248 1335 $code = 'seamonkey'; 1249 1336 } … … 1251 1338 { 1252 1339 $link = 'http://www.sonyericsson.com/'; 1253 $title = wpua_detect_browser_version('SEMC-Browser'); 1340 $title = 'SEMC Browser'; 1341 $version = wpua_detect_browser_version('SEMC-Browser'); 1254 1342 $code = 'semcbrowser'; 1255 1343 } … … 1257 1345 { 1258 1346 $link = 'http://www.sonyericsson.com/'; 1259 $title = wpua_detect_browser_version('SEMC-java');1347 $title = 'SEMC-java'; 1260 1348 $code = 'semcbrowser'; 1261 1349 } … … 1264 1352 { 1265 1353 $link = 'http://en.wikipedia.org/wiki/Web_Browser_for_S60'; 1266 $title = 'Nokia '.wpua_detect_browser_version('Series60'); 1354 $title = 'Nokia Series60'; 1355 $version = wpua_detect_browser_version('Series60'); 1267 1356 $code = 's60'; 1268 1357 } … … 1271 1360 { 1272 1361 $link = 'http://en.wikipedia.org/wiki/Web_Browser_for_S60'; 1273 $title = 'Nokia '.wpua_detect_browser_version('S60'); 1362 $title = 'Nokia S60'; 1363 $version = wpua_detect_browser_version('S60'); 1274 1364 $code = 's60'; 1275 1365 } … … 1279 1369 $link = 'http://ie.sogou.com/'; 1280 1370 $title = 'Sogou Explorer'; 1371 $version = ''; 1281 1372 $code = 'sogou'; 1282 1373 } … … 1284 1375 { 1285 1376 $link = 'http://www.seznam.cz/prohlizec'; 1286 $title = 'Seznam.'.wpua_detect_browser_version('cz'); 1377 $title = 'Seznam.cz'; 1378 $version = wpua_detect_browser_version('cz'); 1287 1379 $code = 'seznam-cz'; 1288 1380 } … … 1290 1382 { 1291 1383 $link = 'http://www.shiira.jp/en.php'; 1292 $title = wpua_detect_browser_version('Shiira');1384 $title = 'Shiira'; 1293 1385 $code = 'shiira'; 1294 1386 } … … 1296 1388 { 1297 1389 $link = 'http://www.mozilla.org/'; 1298 $title = wpua_detect_browser_version('Shiretoko');1390 $title = 'Shiretoko'; 1299 1391 $code = 'firefoxdevpre'; 1300 1392 } … … 1303 1395 { 1304 1396 $link = 'http://en.wikipedia.org/wiki/Amazon_Silk'; 1305 $title = 'Amazon '.wpua_detect_browser_version('Silk'); 1397 $title = 'Amazon Silk'; 1398 $version = wpua_detect_browser_version('Silk'); 1306 1399 $code = 'silk'; 1307 1400 } … … 1309 1402 { 1310 1403 $link = 'http://www.sitekiosk.com/SiteKiosk/Default.aspx'; 1311 $title = wpua_detect_browser_version('SiteKiosk');1404 $title = 'SiteKiosk'; 1312 1405 $code = 'sitekiosk'; 1313 1406 } … … 1315 1408 { 1316 1409 $link = 'http://www.muhri.net/skipstone/'; 1317 $title = wpua_detect_browser_version('SkipStone');1410 $title = 'SkipStone'; 1318 1411 $code = 'skipstone'; 1319 1412 } … … 1321 1414 { 1322 1415 $link = 'http://www.skyfire.com/'; 1323 $title = wpua_detect_browser_version('Skyfire');1416 $title = 'Skyfire'; 1324 1417 $code = 'skyfire'; 1325 1418 } … … 1327 1420 { 1328 1421 $link = 'http://www.fenrir-inc.com/other/sleipnir/'; 1329 $title = wpua_detect_browser_version('Sleipnir');1422 $title = 'Sleipnir'; 1330 1423 $code = 'sleipnir'; 1331 1424 } … … 1333 1426 { 1334 1427 $link = 'http://slimboat.com/'; 1335 $title = wpua_detect_browser_version('SlimBoat');1428 $title = 'SlimBoat'; 1336 1429 $code = 'slimboat'; 1337 1430 } … … 1339 1432 { 1340 1433 $link = 'http://www.flashpeak.com/sbrowser/'; 1341 $title = wpua_detect_browser_version('SlimBrowser');1434 $title = 'SlimBrowser'; 1342 1435 $code = 'slimbrowser'; 1343 1436 } … … 1345 1438 { 1346 1439 $link = 'http://www.freethetvchallenge.com/details/faq'; 1347 $title = wpua_detect_browser_version('SmartTV'); 1440 $title = 'Maple Browser'; 1441 $version = wpua_detect_browser_version('WebBrowser'); 1348 1442 $code = 'maplebrowser'; 1349 1443 } … … 1351 1445 { 1352 1446 $link = 'http://www.getsongbird.com/'; 1353 $title = wpua_detect_browser_version('Songbird');1447 $title = 'Songbird'; 1354 1448 $code = 'songbird'; 1355 1449 } … … 1357 1451 { 1358 1452 $link = 'http://www.stainlessapp.com/'; 1359 $title = wpua_detect_browser_version('Stainless');1453 $title = 'Stainless'; 1360 1454 $code = 'stainless'; 1361 1455 } … … 1363 1457 { 1364 1458 $link = 'http://itunes.apple.com/us/app/substream/id389906706?mt=8'; 1365 $title = wpua_detect_browser_version('SubStream');1459 $title = 'SubStream'; 1366 1460 $code = 'substream'; 1367 1461 } … … 1369 1463 { 1370 1464 $link = 'http://www.flock.com/'; 1371 $title = 'Flock '.wpua_detect_browser_version('Sulfur'); 1465 $title = 'Flock Sulfur'; 1466 $version = wpua_detect_browser_version('Sulfur'); 1372 1467 $code = 'flock'; 1373 1468 } … … 1375 1470 { 1376 1471 $link = 'http://digola.com/sundance.html'; 1377 $title = wpua_detect_browser_version('Sundance');1472 $title = 'Sundance'; 1378 1473 $code = 'sundance'; 1379 1474 } … … 1381 1476 { 1382 1477 $link = 'http://www.sundialbrowser.com/'; 1383 $title = wpua_detect_browser_version('Sundial');1478 $title = 'Sundial'; 1384 1479 $code = 'sundial'; 1385 1480 } … … 1387 1482 { 1388 1483 $link = 'http://www.sunrisebrowser.com/'; 1389 $title = wpua_detect_browser_version('Sunrise');1484 $title = 'Sunrise'; 1390 1485 $code = 'sunrise'; 1391 1486 } … … 1393 1488 { 1394 1489 $link = 'http://superbird.me/'; 1395 $title = wpua_detect_browser_version('Superbird');1490 $title = 'Superbird'; 1396 1491 $code = 'superbird'; 1397 1492 } … … 1399 1494 { 1400 1495 $link = 'http://surf.suckless.org/'; 1401 $title = wpua_detect_browser_version('Surf');1496 $title = 'Surf'; 1402 1497 $code = 'surf'; 1403 1498 } … … 1405 1500 { 1406 1501 $link = 'http://www.getswiftfox.com/'; 1407 $title = wpua_detect_browser_version('Swiftfox');1502 $title = 'Swiftfox'; 1408 1503 $code = 'swiftfox'; 1409 1504 } … … 1411 1506 { 1412 1507 $link = 'http://swiftweasel.tuxfamily.org/'; 1413 $title = wpua_detect_browser_version('Swiftweasel');1508 $title = 'Swiftweasel'; 1414 1509 $code = 'swiftweasel'; 1415 1510 } … … 1417 1512 { 1418 1513 $link = 'http://dombla.net/sylera/'; 1419 $title = wpua_detect_browser_version('Sylera');1514 $title = 'Sylera'; 1420 1515 $code = 'null'; 1421 1516 } … … 1424 1519 $link = 'http://wiki.maemo.org/Tear'; 1425 1520 $title = 'Tear'; 1521 $version = ''; 1426 1522 $code = 'tear'; 1427 1523 } … … 1429 1525 { 1430 1526 $link = 'http://www.teashark.com/'; 1431 $title = wpua_detect_browser_version('TeaShark');1527 $title = 'TeaShark'; 1432 1528 $code = 'teashark'; 1433 1529 } … … 1435 1531 { 1436 1532 $link = 'http://en.wikipedia.org/wiki/Obigo_Browser/'; 1437 $title = wpua_detect_browser_version(' Teleca');1533 $title = ' Teleca'; 1438 1534 $code = 'obigo'; 1439 1535 } 1440 elseif (preg_match('/TencentTraveler/i', $useragent))1441 {1442 $link = 'http://www.tencent.com/en-us/index.shtml';1443 $title = 'Tencent '.wpua_detect_browser_version('Traveler');1444 $code = 'tencenttraveler';1445 }1446 1536 elseif (preg_match('/TenFourFox/i', $useragent)) 1447 1537 { 1448 1538 $link = 'http://en.wikipedia.org/wiki/TenFourFox'; 1449 $title = wpua_detect_browser_version('TenFourFox'); 1539 $title = 'TenFourFox'; 1540 $version = wpua_detect_browser_version(' rv'); 1450 1541 $code = 'tenfourfox'; 1451 1542 } … … 1454 1545 $link = 'http://www.teslamotors.com/'; 1455 1546 $title = 'Tesla Car Browser'; 1547 $version = ''; 1456 1548 $code = 'teslacarbrowser'; 1457 1549 } … … 1460 1552 $link = 'http://www.ioage.com/'; 1461 1553 $title = 'TheWorld Browser'; 1554 $version = ''; 1462 1555 $code = 'theworld'; 1463 1556 } … … 1465 1558 { 1466 1559 $link = 'http://www.mozilla.com/thunderbird/'; 1467 $title = wpua_detect_browser_version('Thunderbird');1560 $title = 'Thunderbird'; 1468 1561 $code = 'thunderbird'; 1469 1562 } … … 1471 1564 { 1472 1565 $link = 'https://www.tizen.org/'; 1473 $title = wpua_detect_browser_version('Tizen');1566 $title = 'Tizen'; 1474 1567 $code = 'tizen'; 1475 1568 } … … 1477 1570 { 1478 1571 $link = 'http://www.tjusig.cz/'; 1479 $title = wpua_detect_browser_version('Tjusig');1572 $title = 'Tjusig'; 1480 1573 $code = 'tjusig'; 1481 1574 } … … 1483 1576 { 1484 1577 $link = 'http://tt.qq.com/'; 1485 $title = wpua_detect_browser_version('TencentTraveler'); 1578 $title = 'TT Explorer'; 1579 $version = wpua_detect_browser_version('TencentTraveler'); 1486 1580 $code = 'tt-explorer'; 1487 1581 } … … 1489 1583 { 1490 1584 $link = 'http://www.ubrowser.com/'; 1491 $title = wpua_detect_browser_version('uBrowser');1585 $title = 'uBrowser'; 1492 1586 $code = 'ubrowser'; 1493 1587 } … … 1497 1591 $link = 'https://launchpad.net/webbrowser-app'; 1498 1592 $title = 'Ubuntu Web Browser'; 1593 $version = ''; 1499 1594 $code = 'ubuntuwebbrowser'; 1500 1595 } … … 1502 1597 { 1503 1598 $link = 'http://www.uc.cn/English/index.shtml'; 1504 $title = wpua_detect_browser_version('UC Browser'); 1599 $title = 'UC Browser'; 1600 $version = wpua_detect_browser_version('UC Browse'); 1505 1601 $code = 'ucbrowser'; 1506 1602 } … … 1508 1604 { 1509 1605 $link = 'http://www.ucweb.com/English/product.shtml'; 1510 $title = wpua_detect_browser_version('UCWEB'); 1606 $title = 'UC Browser'; 1607 $version = wpua_detect_browser_version('UCWEB'); 1511 1608 $code = 'ucweb'; 1512 1609 } … … 1514 1611 { 1515 1612 $link = 'http://www.ultrabrowser.com/'; 1516 $title = wpua_detect_browser_version('UltraBrowser');1613 $title = 'UltraBrowser'; 1517 1614 $code = 'ultrabrowser'; 1518 1615 } … … 1520 1617 { 1521 1618 $link = 'http://www.openwave.com/'; 1522 $title = wpua_detect_browser_version('UP.Browser'); 1619 $title = 'Openwave Mobile Browser'; 1620 $version = wpua_detect_browser_version('UP.Browser'); 1523 1621 $code = 'openwave'; 1524 1622 } … … 1526 1624 { 1527 1625 $link = 'http://www.openwave.com/'; 1528 $title = wpua_detect_browser_version('UP.Link'); 1626 $title = 'Openwave Mobile Browser'; 1627 $version = wpua_detect_browser_version('UP.Link'); 1529 1628 $code = 'openwave'; 1530 1629 } … … 1532 1631 { 1533 1632 $link = 'http://www.usejump.com/'; 1534 $title = wpua_detect_browser_version('Usejump');1633 $title = 'Usejump'; 1535 1634 $code = 'usejump'; 1536 1635 } … … 1538 1637 { 1539 1638 $link = 'http://en.wikipedia.org/wiki/UZard_Web'; 1540 $title = wpua_detect_browser_version('uZardWeb');1639 $title = 'uZardWeb'; 1541 1640 $code = 'uzardweb'; 1542 1641 } … … 1544 1643 { 1545 1644 $link = 'http://en.wikipedia.org/wiki/UZard_Web'; 1546 $title = wpua_detect_browser_version('uZard');1645 $title = 'uZard'; 1547 1646 $code = 'uzardweb'; 1548 1647 } … … 1556 1655 { 1557 1656 $link = 'http://vivaldi.com/'; 1558 $title = wpua_detect_browser_version('Vivaldi');1657 $title = 'Vivaldi'; 1559 1658 $code = 'vivaldi'; 1560 1659 } … … 1562 1661 { 1563 1662 $link = 'http://www.vimprobable.org/'; 1564 $title = wpua_detect_browser_version('Vimprobable');1663 $title = 'Vimprobable'; 1565 1664 $code = 'null'; 1566 1665 } … … 1568 1667 { 1569 1668 $link = 'http://zzo38computer.cjb.net/vonkeror/'; 1570 $title = wpua_detect_browser_version('Vonkeror');1669 $title = 'Vonkeror'; 1571 1670 $code = 'null'; 1572 1671 } … … 1574 1673 { 1575 1674 $link = 'http://w3m.sourceforge.net/'; 1576 $title = wpua_detect_browser_version('W3M');1675 $title = 'W3M'; 1577 1676 $code = 'w3m'; 1578 1677 } … … 1581 1680 { 1582 1681 $link = 'http://en.wikipedia.org/wiki/WebPositive'; 1583 $title = wpua_detect_browser_version('WebPositive');1682 $title = 'WebPositive'; 1584 1683 $code = 'webpositive'; 1585 1684 } … … 1589 1688 { 1590 1689 $link = 'http://developer.android.com/reference/android/webkit/package-summary.html'; 1591 $title = wpua_detect_browser_version('Android Webkit'); 1690 $title = 'Android Webkit'; 1691 $version = wpua_detect_browser_version('Version'); 1592 1692 $code = 'android-webkit'; 1593 1693 } … … 1595 1695 { 1596 1696 $link = 'http://www.waterfoxproject.org/'; 1597 $title = wpua_detect_browser_version('Waterfox');1697 $title = 'Waterfox'; 1598 1698 $code = 'waterfox'; 1599 1699 } … … 1601 1701 { 1602 1702 $link = 'http://webexplorerbrasil.com/'; 1603 $title = 'Web '.wpua_detect_browser_version('Explorer'); 1703 $title = 'Web Explorer'; 1704 $version = wpua_detect_browser_version('Explorer'); 1604 1705 $code = 'webexplorer'; 1605 1706 } … … 1607 1708 { 1608 1709 $link = 'http://webian.org/shell/'; 1609 $title = 'Webian '.wpua_detect_browser_version('Shell'); 1710 $title = 'Webian Shell'; 1711 $version = wpua_detect_browser_version('Shell'); 1610 1712 $code = 'webianshell'; 1611 1713 } … … 1614 1716 $link = 'http://webrender.99k.org/'; 1615 1717 $title = 'Webrender'; 1718 $version = ''; 1616 1719 $code = 'webrender'; 1617 1720 } … … 1619 1722 { 1620 1723 $link = 'http://weltweitimnetz.de/software/Browser.en.page'; 1621 $title = 'Weltweitimnetz '.wpua_detect_browser_version('Browser'); 1724 $title = 'Weltweitimnetz Browser'; 1725 $version = wpua_detect_browser_version('Browser'); 1622 1726 $code = 'weltweitimnetzbrowser'; 1623 1727 } … … 1626 1730 $link = 'http://www.app4mac.com/store/index.php?target=products&product_id=9'; 1627 1731 $title = 'wKiosk'; 1732 $version = ''; 1628 1733 $code = 'wkiosk'; 1629 1734 } … … 1631 1736 { 1632 1737 $link = 'http://www.w3.org/People/Berners-Lee/WorldWideWeb.html'; 1633 $title = wpua_detect_browser_version('WorldWideWeb');1738 $title = 'WorldWideWeb'; 1634 1739 $code = 'worldwideweb'; 1635 1740 } … … 1638 1743 { 1639 1744 $link = 'http://www.hp.com/'; 1640 $title = 'w'.wpua_detect_browser_version('OSBrowser'); 1745 $title = 'wOSBrowser'; 1746 $version = wpua_detect_browser_version('OSBrowser'); 1641 1747 $code = 'webos'; 1642 1748 } … … 1644 1750 { 1645 1751 $link = 'http://android.wordpress.org/'; 1646 $title = wpua_detect_browser_version('wp-android'); 1752 $version = wpua_detect_browser_version('wp-android'); //TODO check into Android version being returned 1753 $title = 'Wordpress App'; 1647 1754 $code = 'wordpress'; 1648 1755 } … … 1650 1757 { 1651 1758 $link = 'http://blackberry.wordpress.org/'; 1652 $title = wpua_detect_browser_version('wp-blackberry');1759 $title = 'wp-blackberry'; 1653 1760 $code = 'wordpress'; 1654 1761 } … … 1656 1763 { 1657 1764 $link = 'http://ios.wordpress.org/'; 1658 $title = wpua_detect_browser_version('wp-iphone'); 1765 $title = 'Wordpress App'; 1766 $version = wpua_detect_browser_version('wp-iphone'); 1659 1767 $code = 'wordpress'; 1660 1768 } … … 1662 1770 { 1663 1771 $link = 'http://nokia.wordpress.org/'; 1664 $title = wpua_detect_browser_version('wp-nokia');1772 $title = 'wp-nokia'; 1665 1773 $code = 'wordpress'; 1666 1774 } … … 1668 1776 { 1669 1777 $link = 'http://webos.wordpress.org/'; 1670 $title = wpua_detect_browser_version('wp-webos');1778 $title = 'wp-webos'; 1671 1779 $code = 'wordpress'; 1672 1780 } … … 1674 1782 { 1675 1783 $link = 'http://windowsphone.wordpress.org/'; 1676 $title = wpua_detect_browser_version('wp-windowsphone');1784 $title = 'wp-windowsphone'; 1677 1785 $code = 'wordpress'; 1678 1786 } … … 1680 1788 { 1681 1789 $link = 'http://www.wyzo.com/'; 1682 $title = wpua_detect_browser_version('Wyzo');1790 $title = 'Wyzo'; 1683 1791 $code = 'Wyzo'; 1684 1792 } … … 1686 1794 { 1687 1795 $link = 'http://www.xsmiles.org/'; 1688 $title = wpua_detect_browser_version('X-Smiles');1796 $title = 'X-Smiles'; 1689 1797 $code = 'x-smiles'; 1690 1798 } … … 1692 1800 { 1693 1801 $link = '#'; 1694 $title = wpua_detect_browser_version('Xiino');1802 $title = 'Xiino'; 1695 1803 $code = 'null'; 1696 1804 } … … 1698 1806 { 1699 1807 $link = 'http://browser.yandex.com/'; 1700 $title = 'Yandex '.wpua_detect_browser_version('Browser'); 1808 $title = 'Yandex Browser'; 1809 $version = wpua_detect_browser_version('Browser'); 1701 1810 $code = 'yandex'; 1702 1811 } … … 1704 1813 { 1705 1814 $link = 'http://weblink.justyrc.com/'; 1706 $title = 'YRC '.wpua_detect_browser_version('Weblink'); 1815 $title = 'YRC Weblink'; 1816 $version = wpua_detect_browser_version('Weblink'); 1707 1817 $code = 'yrcweblink'; 1708 1818 } … … 1710 1820 { 1711 1821 $link = 'http://sites.google.com/site/zeromusparadoxe01/zbrowser'; 1712 $title = wpua_detect_browser_version('zBrowser');1822 $title = 'zBrowser'; 1713 1823 $code = 'zbrowser'; 1714 1824 } … … 1716 1826 { 1717 1827 $link = 'http://www.zipzaphome.com/'; 1718 $title = wpua_detect_browser_version('ZipZap');1828 $title = 'ZipZap'; 1719 1829 $code = 'zipzap'; 1720 1830 } … … 1724 1834 { 1725 1835 $link = 'http://abrowse.sourceforge.net/'; 1726 $title = wpua_detect_browser_version('ABrowse');1836 $title = 'ABrowse'; 1727 1837 $code = 'abrowse'; 1728 1838 } … … 1732 1842 { 1733 1843 $link = 'http://en.wikipedia.org/wiki/Microsoft_Edge'; 1734 $title = 'Microsoft '.wpua_detect_browser_version('Edge'); 1844 $title = 'Microsoft Edge'; 1845 $version = wpua_detect_browser_version('Edge'); 1735 1846 $code = 'msedge12'; 1736 1847 } … … 1738 1849 { 1739 1850 $link = 'http://google.com/chrome/'; 1740 $title = 'Google '.wpua_detect_browser_version('Chrome'); 1851 $title = 'Google Chrome'; 1852 $version = wpua_detect_browser_version('Chrome'); 1741 1853 $code = 'chrome'; 1742 1854 } … … 1749 1861 if (preg_match('/Version/i', $useragent)) 1750 1862 { 1751 $ title = wpua_detect_browser_version('Safari');1863 $version = wpua_detect_browser_version('Version'); 1752 1864 } 1753 1865 … … 1763 1875 $link = 'http://www.nokia.com/browser'; 1764 1876 $title = 'Nokia Web Browser'; 1877 $version = ''; 1765 1878 $code = 'maemo'; 1766 1879 } … … 1768 1881 { 1769 1882 $link = 'http://www.mozilla.org/'; 1770 $title = wpua_detect_browser_version('Firefox');1883 $title = 'Firefox'; 1771 1884 $code = 'firefox'; 1772 1885 } … … 1774 1887 { 1775 1888 $link = 'http://www.microsoft.com/windows/products/winfamily/ie/default.mspx'; 1776 $title = 'Internet Explorer'.wpua_detect_browser_version('MSIE'); 1777 1778 if (preg_match('/MSIE[\ |\/]?([.0-9a-zA-Z]+)/i', $useragent, $regmatch)) 1779 { 1780 // We have IE10 or older 1781 } 1782 elseif (preg_match('/\ rv:([.0-9a-zA-Z]+)/i', $useragent, $regmatch)) 1783 { 1784 // We have IE11 or newer 1785 } 1786 1787 1788 if ($regmatch[1] >= 10) 1889 $title = 'Internet Explorer'; 1890 1891 if (preg_match('/\ rv:([.0-9a-zA-Z]+)/i', $useragent)) 1892 { 1893 // IE11 or newer 1894 $version = wpua_detect_browser_version(' rv'); 1895 } 1896 else 1897 { 1898 // IE10 or older, regex: '/MSIE[\ |\/]?([.0-9a-zA-Z]+)/i' 1899 $version = wpua_detect_browser_version('MSIE'); 1900 } 1901 1902 if (intval($version) >= 10) 1789 1903 { 1790 1904 $code = 'msie10'; 1791 1905 } 1792 elseif ( $regmatch[1]>= 9)1906 elseif (intval($version) >= 9) 1793 1907 { 1794 1908 $code = 'msie9'; 1795 1909 } 1796 elseif ( $regmatch[1]>= 7)1910 elseif (intval($version) >= 7) 1797 1911 { 1798 1912 // also ie8 1799 1913 $code = 'msie7'; 1800 } 1801 elseif ($regmatch[1] >= 6) 1914 1915 // Detect compatibility mode for IE 1916 if ($version === '7.0' && preg_match('/Trident\/4.0/i', $useragent)) 1917 { 1918 $version = '8.0 (Compatibility Mode)'; // Fix for IE8 quirky UA string with Compatibility Mode enabled 1919 } 1920 } 1921 elseif (intval($version) >= 6) 1802 1922 { 1803 1923 $code = 'msie6'; 1804 1924 } 1805 elseif ( $regmatch[1]>= 4)1925 elseif (intval($version) >= 4) 1806 1926 { 1807 1927 // also ie5 1808 1928 $code = 'msie4'; 1809 1929 } 1810 elseif ( $regmatch[1]>= 3)1930 elseif (intval($version) >= 3) 1811 1931 { 1812 1932 $code = 'msie3'; 1813 1933 } 1814 elseif ( $regmatch[1]>= 2)1934 elseif (intval($version) >= 2) 1815 1935 { 1816 1936 $code = 'msie2'; 1817 1937 } 1818 elseif ( $regmatch[1]>= 1)1938 elseif (intval($version) >= 1) 1819 1939 { 1820 1940 $code = 'msie1'; … … 1828 1948 { 1829 1949 $link = 'http://www.mozilla.org/'; 1830 $title = 'Mozilla Compatible'; 1831 1832 if (preg_match('/rv:([.0-9a-zA-Z]+)/i', $useragent, $regmatch)) 1833 { 1834 $title = 'Mozilla '.$regmatch[1]; 1950 $title = 'Mozilla'; 1951 $version = wpua_detect_browser_version(' rv'); 1952 1953 if (empty($version)) 1954 { 1955 $title .= ' Compatible'; 1835 1956 } 1836 1957 … … 1843 1964 $link = '#'; 1844 1965 $title = 'Unknown'; 1966 $version = ''; 1845 1967 $code = 'null'; 1968 } 1969 1970 // Set version if it hasn't been parsed yet (generic structure)... 1971 if (is_null($version)) 1972 { 1973 $version = wpua_detect_browser_version($title); 1974 } 1975 1976 // Append version to title (as long as show version isn't 'off') 1977 if ($wpua_show_version !== 'false') 1978 { 1979 $title .= " $version"; 1846 1980 } 1847 1981 -
wp-useragent/trunk/wp-useragent-options.php
r1415001 r1415915 99 99 $wpua_text_on = get_option('wpua_text_on'); 100 100 $wpua_text_via = get_option('wpua_text_via'); 101 $wpua_show_version = get_option('wpua_show_version'); 101 102 $wpua_text_links = get_option('wpua_text_links'); 102 103 $wpua_show_full_ua = get_option('wpua_show_full_ua'); … … 155 156 delete_option('ua_output_location'); 156 157 } 158 // Add new feature option for showing version to db if it didn't previously exist 159 if (empty($wpua_show_version)) 160 { 161 $wpua_show_version = 'full'; 162 if ( ! add_option( 'wpua_show_version', $wpua_show_version, '', 'no' ) ) update_option( 'wpua_show_version', $wpua_show_version ); 163 } 157 164 158 165 // Set defaults … … 165 172 if (empty($wpua_text_on) && is_null($wpua_text_on)) $wpua_text_on = ''; 166 173 if (empty($wpua_text_via) && is_null($wpua_text_via)) $wpua_text_via = ''; 174 if (empty($wpua_show_version)) $wpua_show_version = 'full'; 167 175 if (empty($wpua_text_links)) $wpua_text_links = 'false'; 168 176 if (empty($wpua_show_full_ua)) $wpua_show_full_ua = 'true'; … … 295 303 <input type="text" id="wpua_text_via" name="wpua_text_via" value="<?php echo $wpua_text_via; ?>" /> 296 304 <p class="description"><?php _e('Displayed for Trackbacks and Pingbacks. Default value is empty.', 'wp-useragent'); ?></p> 305 </td> 306 </tr> 307 <tr> 308 <th><?php _e('Show version numbers', 'wp-useragent'); ?>:</th> 309 <td> 310 <select id="wpua_show_version" name="wpua_show_version"> 311 <option value="full" <?php if ($wpua_show_version === 'full') echo 'selected="selected"'; ?>><?php _e('Full', 'wp-useragent'); ?></option> 312 <option value="simple" <?php if ($wpua_show_version === 'simple') echo 'selected="selected"'; ?>><?php _e('Simple', 'wp-useragent'); ?></option> 313 <option value="false" <?php if ($wpua_show_version === 'false') echo 'selected="selected"'; ?>><?php _e('No', 'wp-useragent'); ?></option> 314 </select> 297 315 </td> 298 316 </tr> … … 466 484 467 485 <input type="hidden" name="action" value="update" /> 468 <input type="hidden" name="page_options" value="wpua_doctype, wpua_icon_size, wpua_show_text_icons, wpua_icon_style, wpua_icon_style_input, wpua_text_using, wpua_text_on, wpua_text_via, wpua_ text_links, wpua_show_full_ua, wpua_hide_unknown_ua, wpua_admin_only, wpua_output_location" />486 <input type="hidden" name="page_options" value="wpua_doctype, wpua_icon_size, wpua_show_text_icons, wpua_icon_style, wpua_icon_style_input, wpua_text_using, wpua_text_on, wpua_text_via, wpua_show_version, wpua_text_links, wpua_show_full_ua, wpua_hide_unknown_ua, wpua_admin_only, wpua_output_location" /> 469 487 470 488 <input type="button" name="Reset" class="button-primary reset" value="<?php _e('Reset Defaults', 'wp-useragent'); ?>" /> … … 501 519 $wpua_text_on = $wpua_useragent.find('#wpua_text_on'), 502 520 $wpua_text_via = $wpua_useragent.find('#wpua_text_via'), 521 $wpua_show_version = $wpua_useragent.find('#wpua_show_version'), 503 522 $wpua_text_links = $wpua_useragent.find('#wpua_text_links'), 504 523 $wpua_show_full_ua = $wpua_useragent.find('#wpua_show_full_ua'), … … 516 535 517 536 // Element event groups 518 $change = $wpua_useragent.find('#wpua_icon_size,#wpua_show_text_icons,#wpua_ text_links,#wpua_show_full_ua,#wpua_hide_unknown_ua,#wpua_output_location'),537 $change = $wpua_useragent.find('#wpua_icon_size,#wpua_show_text_icons,#wpua_show_version,#wpua_text_links,#wpua_show_full_ua,#wpua_hide_unknown_ua,#wpua_output_location'), 519 538 $keyup = $wpua_useragent.find('#wpua_icon_style_input,#wpua_text_using,#wpua_text_on,#wpua_text_via'); 520 539 … … 525 544 wpua_text_using = ($wpua_show_text_icons.val() !== 'icons') ? $wpua_text_using.val()+' ' : '', 526 545 wpua_text_on = ($wpua_show_text_icons.val() !== 'icons') ? $wpua_text_on.val()+' ' : '', 527 wpua_browser = ($wpua_show_text_icons.val() !== 'icons' && $wpua_text_links.val() !== 'false') ? ' <a href="http://www.opera.com/" style="text-decoration:none">Opera 10.00</a> ' : ' Opera 10.00 ', 528 wpua_system = ($wpua_show_text_icons.val() !== 'icons' && $wpua_text_links.val() !== 'false') ? ' <a href="http://www.ubuntu.com/" style="text-decoration:none">Ubuntu 9.10</a>' : ' Ubuntu 9.10', 546 wpua_browser_text = ($wpua_show_version.val() === 'false') ? 'Opera' : (($wpua_show_version.val() === 'simple') ? 'Opera 10' : 'Opera 10.52'), 547 wpua_system_text = ($wpua_show_version.val() === 'false') ? 'Ubuntu' : (($wpua_show_version.val() === 'simple') ? 'Ubuntu 9' : 'Ubuntu 9.10'), 548 wpua_browser = ($wpua_show_text_icons.val() !== 'icons' && $wpua_text_links.val() !== 'false') ? ' <a href="http://www.opera.com/" style="text-decoration:none">'+wpua_browser_text+'</a> ' : ' '+wpua_browser_text+' ', 549 wpua_system = ($wpua_show_text_icons.val() !== 'icons' && $wpua_text_links.val() !== 'false') ? ' <a href="http://www.ubuntu.com/" style="text-decoration:none">'+wpua_system_text+'</a>' : ' '+wpua_system_text, 529 550 wpua_content = ''; 530 551 -
wp-useragent/trunk/wp-useragent.php
r1415001 r1415915 8 8 * Author URI: https://www.kyleabaker.com/ 9 9 * Text Domain: wp-useragent 10 * Domain Path: /languages/ 10 11 * //Author: Fernando Briano 11 12 * //Author URI: http://picandocodigo.net … … 62 63 $wpua_text_on = get_option('wpua_text_on'); 63 64 $wpua_text_via = get_option('wpua_text_via'); 65 $wpua_show_version = get_option('wpua_show_version'); 64 66 $wpua_text_links = get_option('wpua_text_links'); 65 67 $wpua_show_full_ua = get_option('wpua_show_full_ua'); … … 118 120 delete_option('ua_output_location'); 119 121 } 122 // Add new feature option for showing version to db if it didn't previously exist 123 if (empty($wpua_show_version)) 124 { 125 $wpua_show_version = 'full'; 126 if ( ! add_option( 'wpua_show_version', $wpua_show_version, '', 'no' ) ) update_option( 'wpua_show_version', $wpua_show_version ); 127 } 120 128 121 129 // Set defaults … … 128 136 if (empty($wpua_text_on) && is_null($wpua_text_on)) $wpua_text_on = ''; 129 137 if (empty($wpua_text_via) && is_null($wpua_text_via)) $wpua_text_via = ''; 138 if (empty($wpua_show_version)) $wpua_show_version = 'full'; 130 139 if (empty($wpua_text_links)) $wpua_text_links = 'false'; 131 140 if (empty($wpua_show_full_ua)) $wpua_show_full_ua = 'true'; … … 391 400 if ( ! add_option( 'wpua_text_on', '', '', 'no' ) ) update_option( 'wpua_text_on', '' ); 392 401 if ( ! add_option( 'wpua_text_via', '', '', 'no' ) ) update_option( 'wpua_text_via', '' ); 402 if ( ! add_option( 'wpua_show_version', '', '', 'no' ) ) update_option( 'wpua_show_version', '' ); 393 403 if ( ! add_option( 'wpua_text_links', '', '', 'no' ) ) update_option( 'wpua_text_links', '' ); 394 404 if ( ! add_option( 'wpua_show_full_ua', '', '', 'no' ) ) update_option( 'wpua_show_full_ua', '' );
Note: See TracChangeset
for help on using the changeset viewer.