Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame^] | 1 | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); |
| 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 | // legacy array, old values commented out |
| 75 | 'mobileexplorer' => 'Mobile Explorer', |
| 76 | // 'openwave' => 'Open Wave', |
| 77 | // 'opera mini' => 'Opera Mini', |
| 78 | // 'operamini' => 'Opera Mini', |
| 79 | // 'elaine' => 'Palm', |
| 80 | 'palmsource' => 'Palm', |
| 81 | // 'digital paths' => 'Palm', |
| 82 | // 'avantgo' => 'Avantgo', |
| 83 | // 'xiino' => 'Xiino', |
| 84 | 'palmscape' => 'Palmscape', |
| 85 | // 'nokia' => 'Nokia', |
| 86 | // 'ericsson' => 'Ericsson', |
| 87 | // 'blackberry' => 'BlackBerry', |
| 88 | // 'motorola' => 'Motorola' |
| 89 | |
| 90 | // Phones and Manufacturers |
| 91 | 'motorola' => "Motorola", |
| 92 | 'nokia' => "Nokia", |
| 93 | 'palm' => "Palm", |
| 94 | 'iphone' => "Apple iPhone", |
| 95 | 'ipod' => "Apple iPod Touch", |
| 96 | 'sony' => "Sony Ericsson", |
| 97 | 'ericsson' => "Sony Ericsson", |
| 98 | 'blackberry' => "BlackBerry", |
| 99 | 'cocoon' => "O2 Cocoon", |
| 100 | 'blazer' => "Treo", |
| 101 | 'lg' => "LG", |
| 102 | 'amoi' => "Amoi", |
| 103 | 'xda' => "XDA", |
| 104 | 'mda' => "MDA", |
| 105 | 'vario' => "Vario", |
| 106 | 'htc' => "HTC", |
| 107 | 'samsung' => "Samsung", |
| 108 | 'sharp' => "Sharp", |
| 109 | 'sie-' => "Siemens", |
| 110 | 'alcatel' => "Alcatel", |
| 111 | 'benq' => "BenQ", |
| 112 | 'ipaq' => "HP iPaq", |
| 113 | 'mot-' => "Motorola", |
| 114 | 'playstation portable' => "PlayStation Portable", |
| 115 | 'hiptop' => "Danger Hiptop", |
| 116 | 'nec-' => "NEC", |
| 117 | 'panasonic' => "Panasonic", |
| 118 | 'philips' => "Philips", |
| 119 | 'sagem' => "Sagem", |
| 120 | 'sanyo' => "Sanyo", |
| 121 | 'spv' => "SPV", |
| 122 | 'zte' => "ZTE", |
| 123 | 'sendo' => "Sendo", |
| 124 | |
| 125 | // Operating Systems |
| 126 | 'symbian' => "Symbian", |
| 127 | 'SymbianOS' => "SymbianOS", |
| 128 | 'elaine' => "Palm", |
| 129 | 'palm' => "Palm", |
| 130 | 'series60' => "Symbian S60", |
| 131 | 'windows ce' => "Windows CE", |
| 132 | |
| 133 | // Browsers |
| 134 | 'obigo' => "Obigo", |
| 135 | 'netfront' => "Netfront Browser", |
| 136 | 'openwave' => "Openwave Browser", |
| 137 | 'mobilexplorer' => "Mobile Explorer", |
| 138 | 'operamini' => "Opera Mini", |
| 139 | 'opera mini' => "Opera Mini", |
| 140 | |
| 141 | // Other |
| 142 | 'digital paths' => "Digital Paths", |
| 143 | 'avantgo' => "AvantGo", |
| 144 | 'xiino' => "Xiino", |
| 145 | 'novarra' => "Novarra Transcoder", |
| 146 | 'vodafone' => "Vodafone", |
| 147 | 'docomo' => "NTT DoCoMo", |
| 148 | 'o2' => "O2", |
| 149 | |
| 150 | // Fallback |
| 151 | 'mobile' => "Generic Mobile", |
| 152 | 'wireless' => "Generic Mobile", |
| 153 | 'j2me' => "Generic Mobile", |
| 154 | 'midp' => "Generic Mobile", |
| 155 | 'cldc' => "Generic Mobile", |
| 156 | 'up.link' => "Generic Mobile", |
| 157 | 'up.browser' => "Generic Mobile", |
| 158 | 'smartphone' => "Generic Mobile", |
| 159 | 'cellphone' => "Generic Mobile" |
| 160 | ); |
| 161 | |
| 162 | // There are hundreds of bots but these are the most common. |
| 163 | $robots = array( |
| 164 | 'googlebot' => 'Googlebot', |
| 165 | 'msnbot' => 'MSNBot', |
| 166 | 'slurp' => 'Inktomi Slurp', |
| 167 | 'yahoo' => 'Yahoo', |
| 168 | 'askjeeves' => 'AskJeeves', |
| 169 | 'fastcrawler' => 'FastCrawler', |
| 170 | 'infoseek' => 'InfoSeek Robot 1.0', |
| 171 | 'lycos' => 'Lycos' |
| 172 | ); |
| 173 | |
| 174 | /* End of file user_agents.php */ |
Derek Jones | a3ffbbb | 2008-05-11 18:18:29 +0000 | [diff] [blame] | 175 | /* Location: ./system/application/config/user_agents.php */ |