Derek Jones | 0b59f27 | 2008-05-13 04:22:33 +0000 | [diff] [blame^] | 1 | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
Derek Allard | 0a64f44 | 2007-12-21 05:27:44 +0000 | [diff] [blame] | 2 | /*
|
| 3 | | -------------------------------------------------------------------
|
| 4 | | USER AGENT TYPES
|
| 5 | | -------------------------------------------------------------------
|
| 6 | | This file contains four arrays of user agent data. It is used by the
|
| 7 | | User Agent Class to help identify browser, platform, robot, and
|
| 8 | | mobile device data. The array keys are used to identify the device
|
| 9 | | and the array values are used to set the actual name of the item.
|
| 10 | |
|
| 11 | */
|
| 12 |
|
| 13 | $platforms = array (
|
| 14 | 'windows nt 6.0' => 'Windows Longhorn',
|
| 15 | 'windows nt 5.2' => 'Windows 2003',
|
| 16 | 'windows nt 5.0' => 'Windows 2000',
|
| 17 | 'windows nt 5.1' => 'Windows XP',
|
| 18 | 'windows nt 4.0' => 'Windows NT 4.0',
|
| 19 | 'winnt4.0' => 'Windows NT 4.0',
|
| 20 | 'winnt 4.0' => 'Windows NT',
|
| 21 | 'winnt' => 'Windows NT',
|
| 22 | 'windows 98' => 'Windows 98',
|
| 23 | 'win98' => 'Windows 98',
|
| 24 | 'windows 95' => 'Windows 95',
|
| 25 | 'win95' => 'Windows 95',
|
| 26 | 'windows' => 'Unknown Windows OS',
|
| 27 | 'os x' => 'Mac OS X',
|
| 28 | 'ppc mac' => 'Power PC Mac',
|
| 29 | 'freebsd' => 'FreeBSD',
|
| 30 | 'ppc' => 'Macintosh',
|
| 31 | 'linux' => 'Linux',
|
| 32 | 'debian' => 'Debian',
|
| 33 | 'sunos' => 'Sun Solaris',
|
| 34 | 'beos' => 'BeOS',
|
| 35 | 'apachebench' => 'ApacheBench',
|
| 36 | 'aix' => 'AIX',
|
| 37 | 'irix' => 'Irix',
|
| 38 | 'osf' => 'DEC OSF',
|
| 39 | 'hp-ux' => 'HP-UX',
|
| 40 | 'netbsd' => 'NetBSD',
|
| 41 | 'bsdi' => 'BSDi',
|
| 42 | 'openbsd' => 'OpenBSD',
|
| 43 | 'gnu' => 'GNU/Linux',
|
| 44 | 'unix' => 'Unknown Unix OS'
|
| 45 | );
|
| 46 |
|
| 47 |
|
| 48 | // The order of this array should NOT be changed. Many browsers return
|
| 49 | // multiple browser types so we want to identify the sub-type first.
|
| 50 | $browsers = array(
|
| 51 | 'Opera' => 'Opera',
|
| 52 | 'MSIE' => 'Internet Explorer',
|
| 53 | 'Internet Explorer' => 'Internet Explorer',
|
| 54 | 'Shiira' => 'Shiira',
|
| 55 | 'Firefox' => 'Firefox',
|
| 56 | 'Chimera' => 'Chimera',
|
| 57 | 'Phoenix' => 'Phoenix',
|
| 58 | 'Firebird' => 'Firebird',
|
| 59 | 'Camino' => 'Camino',
|
| 60 | 'Netscape' => 'Netscape',
|
| 61 | 'OmniWeb' => 'OmniWeb',
|
| 62 | 'Mozilla' => 'Mozilla',
|
| 63 | 'Safari' => 'Safari',
|
| 64 | 'Konqueror' => 'Konqueror',
|
| 65 | 'icab' => 'iCab',
|
| 66 | 'Lynx' => 'Lynx',
|
| 67 | 'Links' => 'Links',
|
| 68 | 'hotjava' => 'HotJava',
|
| 69 | 'amaya' => 'Amaya',
|
| 70 | 'IBrowse' => 'IBrowse'
|
| 71 | );
|
| 72 |
|
| 73 | $mobiles = array(
|
| 74 | 'mobileexplorer' => 'Mobile Explorer',
|
| 75 | 'openwave' => 'Open Wave',
|
| 76 | 'opera mini' => 'Opera Mini',
|
| 77 | 'operamini' => 'Opera Mini',
|
| 78 | 'elaine' => 'Palm',
|
| 79 | 'palmsource' => 'Palm',
|
| 80 | 'digital paths' => 'Palm',
|
| 81 | 'avantgo' => 'Avantgo',
|
| 82 | 'xiino' => 'Xiino',
|
| 83 | 'palmscape' => 'Palmscape',
|
| 84 | 'nokia' => 'Nokia',
|
| 85 | 'ericsson' => 'Ericsson',
|
| 86 | 'blackberry' => 'BlackBerry',
|
| 87 | 'motorola' => 'Motorola'
|
| 88 | );
|
| 89 |
|
| 90 | // There are hundreds of bots but these are the most common.
|
| 91 | $robots = array(
|
| 92 | 'googlebot' => 'Googlebot',
|
| 93 | 'msnbot' => 'MSNBot',
|
| 94 | 'slurp' => 'Inktomi Slurp',
|
| 95 | 'yahoo' => 'Yahoo',
|
| 96 | 'askjeeves' => 'AskJeeves',
|
| 97 | 'fastcrawler' => 'FastCrawler',
|
| 98 | 'infoseek' => 'InfoSeek Robot 1.0',
|
| 99 | 'lycos' => 'Lycos'
|
| 100 | );
|
| 101 |
|
| 102 |
|
Derek Jones | 0b59f27 | 2008-05-13 04:22:33 +0000 | [diff] [blame^] | 103 |
|
| 104 | /* End of file user_agents.php */
|
Derek Jones | a3ffbbb | 2008-05-11 18:18:29 +0000 | [diff] [blame] | 105 | /* Location: ./system/application/config/user_agents.php */ |