[289] | 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 | 'Flock' => 'Flock', |
---|
| 52 | 'Chrome' => 'Chrome', |
---|
| 53 | 'Opera' => 'Opera', |
---|
| 54 | 'MSIE' => 'Internet Explorer', |
---|
| 55 | 'Internet Explorer' => 'Internet Explorer', |
---|
| 56 | 'Shiira' => 'Shiira', |
---|
| 57 | 'Firefox' => 'Firefox', |
---|
| 58 | 'Chimera' => 'Chimera', |
---|
| 59 | 'Phoenix' => 'Phoenix', |
---|
| 60 | 'Firebird' => 'Firebird', |
---|
| 61 | 'Camino' => 'Camino', |
---|
| 62 | 'Netscape' => 'Netscape', |
---|
| 63 | 'OmniWeb' => 'OmniWeb', |
---|
| 64 | 'Safari' => 'Safari', |
---|
| 65 | 'Mozilla' => 'Mozilla', |
---|
| 66 | 'Konqueror' => 'Konqueror', |
---|
| 67 | 'icab' => 'iCab', |
---|
| 68 | 'Lynx' => 'Lynx', |
---|
| 69 | 'Links' => 'Links', |
---|
| 70 | 'hotjava' => 'HotJava', |
---|
| 71 | 'amaya' => 'Amaya', |
---|
| 72 | 'IBrowse' => 'IBrowse' |
---|
| 73 | ); |
---|
| 74 | |
---|
| 75 | $mobiles = array( |
---|
| 76 | // legacy array, old values commented out |
---|
| 77 | 'mobileexplorer' => 'Mobile Explorer', |
---|
| 78 | // 'openwave' => 'Open Wave', |
---|
| 79 | // 'opera mini' => 'Opera Mini', |
---|
| 80 | // 'operamini' => 'Opera Mini', |
---|
| 81 | // 'elaine' => 'Palm', |
---|
| 82 | 'palmsource' => 'Palm', |
---|
| 83 | // 'digital paths' => 'Palm', |
---|
| 84 | // 'avantgo' => 'Avantgo', |
---|
| 85 | // 'xiino' => 'Xiino', |
---|
| 86 | 'palmscape' => 'Palmscape', |
---|
| 87 | // 'nokia' => 'Nokia', |
---|
| 88 | // 'ericsson' => 'Ericsson', |
---|
| 89 | // 'blackberry' => 'BlackBerry', |
---|
| 90 | // 'motorola' => 'Motorola' |
---|
| 91 | |
---|
| 92 | // Phones and Manufacturers |
---|
| 93 | 'motorola' => "Motorola", |
---|
| 94 | 'nokia' => "Nokia", |
---|
| 95 | 'palm' => "Palm", |
---|
| 96 | 'iphone' => "Apple iPhone", |
---|
| 97 | 'ipad' => "iPad", |
---|
| 98 | 'ipod' => "Apple iPod Touch", |
---|
| 99 | 'sony' => "Sony Ericsson", |
---|
| 100 | 'ericsson' => "Sony Ericsson", |
---|
| 101 | 'blackberry' => "BlackBerry", |
---|
| 102 | 'cocoon' => "O2 Cocoon", |
---|
| 103 | 'blazer' => "Treo", |
---|
| 104 | 'lg' => "LG", |
---|
| 105 | 'amoi' => "Amoi", |
---|
| 106 | 'xda' => "XDA", |
---|
| 107 | 'mda' => "MDA", |
---|
| 108 | 'vario' => "Vario", |
---|
| 109 | 'htc' => "HTC", |
---|
| 110 | 'samsung' => "Samsung", |
---|
| 111 | 'sharp' => "Sharp", |
---|
| 112 | 'sie-' => "Siemens", |
---|
| 113 | 'alcatel' => "Alcatel", |
---|
| 114 | 'benq' => "BenQ", |
---|
| 115 | 'ipaq' => "HP iPaq", |
---|
| 116 | 'mot-' => "Motorola", |
---|
| 117 | 'playstation portable' => "PlayStation Portable", |
---|
| 118 | 'hiptop' => "Danger Hiptop", |
---|
| 119 | 'nec-' => "NEC", |
---|
| 120 | 'panasonic' => "Panasonic", |
---|
| 121 | 'philips' => "Philips", |
---|
| 122 | 'sagem' => "Sagem", |
---|
| 123 | 'sanyo' => "Sanyo", |
---|
| 124 | 'spv' => "SPV", |
---|
| 125 | 'zte' => "ZTE", |
---|
| 126 | 'sendo' => "Sendo", |
---|
| 127 | |
---|
| 128 | // Operating Systems |
---|
| 129 | 'symbian' => "Symbian", |
---|
| 130 | 'SymbianOS' => "SymbianOS", |
---|
| 131 | 'elaine' => "Palm", |
---|
| 132 | 'palm' => "Palm", |
---|
| 133 | 'series60' => "Symbian S60", |
---|
| 134 | 'windows ce' => "Windows CE", |
---|
| 135 | |
---|
| 136 | // Browsers |
---|
| 137 | 'obigo' => "Obigo", |
---|
| 138 | 'netfront' => "Netfront Browser", |
---|
| 139 | 'openwave' => "Openwave Browser", |
---|
| 140 | 'mobilexplorer' => "Mobile Explorer", |
---|
| 141 | 'operamini' => "Opera Mini", |
---|
| 142 | 'opera mini' => "Opera Mini", |
---|
| 143 | |
---|
| 144 | // Other |
---|
| 145 | 'digital paths' => "Digital Paths", |
---|
| 146 | 'avantgo' => "AvantGo", |
---|
| 147 | 'xiino' => "Xiino", |
---|
| 148 | 'novarra' => "Novarra Transcoder", |
---|
| 149 | 'vodafone' => "Vodafone", |
---|
| 150 | 'docomo' => "NTT DoCoMo", |
---|
| 151 | 'o2' => "O2", |
---|
| 152 | |
---|
| 153 | // Fallback |
---|
| 154 | 'mobile' => "Generic Mobile", |
---|
| 155 | 'wireless' => "Generic Mobile", |
---|
| 156 | 'j2me' => "Generic Mobile", |
---|
| 157 | 'midp' => "Generic Mobile", |
---|
| 158 | 'cldc' => "Generic Mobile", |
---|
| 159 | 'up.link' => "Generic Mobile", |
---|
| 160 | 'up.browser' => "Generic Mobile", |
---|
| 161 | 'smartphone' => "Generic Mobile", |
---|
| 162 | 'cellphone' => "Generic Mobile" |
---|
| 163 | ); |
---|
| 164 | |
---|
| 165 | // There are hundreds of bots but these are the most common. |
---|
| 166 | $robots = array( |
---|
| 167 | 'googlebot' => 'Googlebot', |
---|
| 168 | 'msnbot' => 'MSNBot', |
---|
| 169 | 'slurp' => 'Inktomi Slurp', |
---|
| 170 | 'yahoo' => 'Yahoo', |
---|
| 171 | 'askjeeves' => 'AskJeeves', |
---|
| 172 | 'fastcrawler' => 'FastCrawler', |
---|
| 173 | 'infoseek' => 'InfoSeek Robot 1.0', |
---|
| 174 | 'lycos' => 'Lycos' |
---|
| 175 | ); |
---|
| 176 | |
---|
| 177 | /* End of file user_agents.php */ |
---|
| 178 | /* Location: ./application/config/user_agents.php */ |
---|