Andrey Andreev | e734b38 | 2012-03-26 13:42:36 +0300 | [diff] [blame] | 1 | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); |
Derek Jones | f4a4bd8 | 2011-10-20 12:18:42 -0500 | [diff] [blame] | 2 | /** |
| 3 | * CodeIgniter |
| 4 | * |
Phil Sturgeon | 07c1ac8 | 2012-03-09 17:03:37 +0000 | [diff] [blame] | 5 | * An open source application development framework for PHP 5.2.4 or newer |
Derek Jones | f4a4bd8 | 2011-10-20 12:18:42 -0500 | [diff] [blame] | 6 | * |
| 7 | * NOTICE OF LICENSE |
Eric Barnes | 46fcf0b | 2011-11-12 12:42:14 -0500 | [diff] [blame] | 8 | * |
Derek Jones | f4a4bd8 | 2011-10-20 12:18:42 -0500 | [diff] [blame] | 9 | * Licensed under the Academic Free License version 3.0 |
Eric Barnes | 46fcf0b | 2011-11-12 12:42:14 -0500 | [diff] [blame] | 10 | * |
Derek Jones | 61df906 | 2011-10-21 09:55:40 -0500 | [diff] [blame] | 11 | * This source file is subject to the Academic Free License (AFL 3.0) that is |
Derek Jones | f4a4bd8 | 2011-10-20 12:18:42 -0500 | [diff] [blame] | 12 | * bundled with this package in the files license_afl.txt / license_afl.rst. |
| 13 | * It is also available through the world wide web at this URL: |
| 14 | * http://opensource.org/licenses/AFL-3.0 |
| 15 | * If you did not receive a copy of the license and are unable to obtain it |
| 16 | * through the world wide web, please send an email to |
| 17 | * licensing@ellislab.com so we can send you a copy immediately. |
| 18 | * |
| 19 | * @package CodeIgniter |
| 20 | * @author EllisLab Dev Team |
Greg Aker | 0defe5d | 2012-01-01 18:46:41 -0600 | [diff] [blame] | 21 | * @copyright Copyright (c) 2008 - 2012, EllisLab, Inc. (http://ellislab.com/) |
Derek Jones | f4a4bd8 | 2011-10-20 12:18:42 -0500 | [diff] [blame] | 22 | * @license http://opensource.org/licenses/AFL-3.0 Academic Free License (AFL 3.0) |
| 23 | * @link http://codeigniter.com |
| 24 | * @since Version 1.0 |
| 25 | * @filesource |
| 26 | */ |
| 27 | |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 28 | /* |
| 29 | | ------------------------------------------------------------------- |
| 30 | | USER AGENT TYPES |
| 31 | | ------------------------------------------------------------------- |
Andrey Andreev | d490139 | 2012-06-06 14:54:15 +0300 | [diff] [blame] | 32 | | This file contains four arrays of user agent data. It is used by the |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 33 | | User Agent Class to help identify browser, platform, robot, and |
Andrey Andreev | d490139 | 2012-06-06 14:54:15 +0300 | [diff] [blame] | 34 | | mobile device data. The array keys are used to identify the device |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 35 | | and the array values are used to set the actual name of the item. |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 36 | */ |
| 37 | |
Andrey Andreev | ca7d822 | 2012-05-11 10:59:09 +0300 | [diff] [blame] | 38 | $platforms = array( |
Debeet | 9defe90 | 2012-07-25 17:32:11 +0300 | [diff] [blame] | 39 | 'windows nt 6.2' => 'Windows 8', |
Eric Barnes | 46fcf0b | 2011-11-12 12:42:14 -0500 | [diff] [blame] | 40 | 'windows nt 6.1' => 'Windows 7', |
| 41 | 'windows nt 6.0' => 'Windows Vista', |
| 42 | 'windows nt 5.2' => 'Windows 2003', |
| 43 | 'windows nt 5.1' => 'Windows XP', |
| 44 | 'windows nt 5.0' => 'Windows 2000', |
| 45 | 'windows nt 4.0' => 'Windows NT 4.0', |
| 46 | 'winnt4.0' => 'Windows NT 4.0', |
| 47 | 'winnt 4.0' => 'Windows NT', |
| 48 | 'winnt' => 'Windows NT', |
| 49 | 'windows 98' => 'Windows 98', |
| 50 | 'win98' => 'Windows 98', |
| 51 | 'windows 95' => 'Windows 95', |
| 52 | 'win95' => 'Windows 95', |
| 53 | 'windows' => 'Unknown Windows OS', |
Andrey Andreev | ca7d822 | 2012-05-11 10:59:09 +0300 | [diff] [blame] | 54 | 'android' => 'Android', |
| 55 | 'blackberry' => 'BlackBerry', |
| 56 | 'iphone' => 'iOS', |
| 57 | 'ipad' => 'iOS', |
| 58 | 'ipod' => 'iOS', |
Eric Barnes | 46fcf0b | 2011-11-12 12:42:14 -0500 | [diff] [blame] | 59 | 'os x' => 'Mac OS X', |
| 60 | 'ppc mac' => 'Power PC Mac', |
| 61 | 'freebsd' => 'FreeBSD', |
| 62 | 'ppc' => 'Macintosh', |
| 63 | 'linux' => 'Linux', |
| 64 | 'debian' => 'Debian', |
| 65 | 'sunos' => 'Sun Solaris', |
| 66 | 'beos' => 'BeOS', |
| 67 | 'apachebench' => 'ApacheBench', |
| 68 | 'aix' => 'AIX', |
| 69 | 'irix' => 'Irix', |
| 70 | 'osf' => 'DEC OSF', |
| 71 | 'hp-ux' => 'HP-UX', |
| 72 | 'netbsd' => 'NetBSD', |
| 73 | 'bsdi' => 'BSDi', |
| 74 | 'openbsd' => 'OpenBSD', |
| 75 | 'gnu' => 'GNU/Linux', |
| 76 | 'unix' => 'Unknown Unix OS' |
| 77 | ); |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 78 | |
| 79 | |
| 80 | // The order of this array should NOT be changed. Many browsers return |
| 81 | // multiple browser types so we want to identify the sub-type first. |
| 82 | $browsers = array( |
Eric Barnes | 46fcf0b | 2011-11-12 12:42:14 -0500 | [diff] [blame] | 83 | 'Flock' => 'Flock', |
| 84 | 'Chrome' => 'Chrome', |
| 85 | 'Opera' => 'Opera', |
| 86 | 'MSIE' => 'Internet Explorer', |
| 87 | 'Internet Explorer' => 'Internet Explorer', |
| 88 | 'Shiira' => 'Shiira', |
| 89 | 'Firefox' => 'Firefox', |
| 90 | 'Chimera' => 'Chimera', |
| 91 | 'Phoenix' => 'Phoenix', |
| 92 | 'Firebird' => 'Firebird', |
| 93 | 'Camino' => 'Camino', |
| 94 | 'Netscape' => 'Netscape', |
| 95 | 'OmniWeb' => 'OmniWeb', |
| 96 | 'Safari' => 'Safari', |
| 97 | 'Mozilla' => 'Mozilla', |
| 98 | 'Konqueror' => 'Konqueror', |
| 99 | 'icab' => 'iCab', |
| 100 | 'Lynx' => 'Lynx', |
| 101 | 'Links' => 'Links', |
| 102 | 'hotjava' => 'HotJava', |
| 103 | 'amaya' => 'Amaya', |
| 104 | 'IBrowse' => 'IBrowse' |
| 105 | ); |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 106 | |
| 107 | $mobiles = array( |
Eric Barnes | 46fcf0b | 2011-11-12 12:42:14 -0500 | [diff] [blame] | 108 | // legacy array, old values commented out |
| 109 | 'mobileexplorer' => 'Mobile Explorer', |
| 110 | // 'openwave' => 'Open Wave', |
| 111 | // 'opera mini' => 'Opera Mini', |
| 112 | // 'operamini' => 'Opera Mini', |
| 113 | // 'elaine' => 'Palm', |
| 114 | 'palmsource' => 'Palm', |
| 115 | // 'digital paths' => 'Palm', |
| 116 | // 'avantgo' => 'Avantgo', |
| 117 | // 'xiino' => 'Xiino', |
| 118 | 'palmscape' => 'Palmscape', |
| 119 | // 'nokia' => 'Nokia', |
| 120 | // 'ericsson' => 'Ericsson', |
| 121 | // 'blackberry' => 'BlackBerry', |
| 122 | // 'motorola' => 'Motorola' |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 123 | |
Eric Barnes | 46fcf0b | 2011-11-12 12:42:14 -0500 | [diff] [blame] | 124 | // Phones and Manufacturers |
Andrey Andreev | ca7d822 | 2012-05-11 10:59:09 +0300 | [diff] [blame] | 125 | 'motorola' => 'Motorola', |
| 126 | 'nokia' => 'Nokia', |
| 127 | 'palm' => 'Palm', |
| 128 | 'iphone' => 'Apple iPhone', |
| 129 | 'ipad' => 'iPad', |
| 130 | 'ipod' => 'Apple iPod Touch', |
| 131 | 'sony' => 'Sony Ericsson', |
| 132 | 'ericsson' => 'Sony Ericsson', |
| 133 | 'blackberry' => 'BlackBerry', |
| 134 | 'cocoon' => 'O2 Cocoon', |
| 135 | 'blazer' => 'Treo', |
| 136 | 'lg' => 'LG', |
| 137 | 'amoi' => 'Amoi', |
| 138 | 'xda' => 'XDA', |
| 139 | 'mda' => 'MDA', |
| 140 | 'vario' => 'Vario', |
| 141 | 'htc' => 'HTC', |
| 142 | 'samsung' => 'Samsung', |
| 143 | 'sharp' => 'Sharp', |
| 144 | 'sie-' => 'Siemens', |
| 145 | 'alcatel' => 'Alcatel', |
| 146 | 'benq' => 'BenQ', |
| 147 | 'ipaq' => 'HP iPaq', |
| 148 | 'mot-' => 'Motorola', |
| 149 | 'playstation portable' => 'PlayStation Portable', |
Debeet | 9defe90 | 2012-07-25 17:32:11 +0300 | [diff] [blame] | 150 | 'playstation 3' => 'PlayStation 3', |
Andrey Andreev | ca7d822 | 2012-05-11 10:59:09 +0300 | [diff] [blame] | 151 | 'hiptop' => 'Danger Hiptop', |
| 152 | 'nec-' => 'NEC', |
| 153 | 'panasonic' => 'Panasonic', |
| 154 | 'philips' => 'Philips', |
| 155 | 'sagem' => 'Sagem', |
| 156 | 'sanyo' => 'Sanyo', |
| 157 | 'spv' => 'SPV', |
| 158 | 'zte' => 'ZTE', |
| 159 | 'sendo' => 'Sendo', |
Eric Roberts | 19d0f56 | 2012-08-11 19:53:59 -0500 | [diff] [blame^] | 160 | 'nintendo dsi' => 'Nintendo DSi', |
| 161 | 'nintendo ds' => 'Nintendo DS', |
| 162 | 'nintendo 3ds' => 'Nintendo 3DS', |
Andrey Andreev | ca7d822 | 2012-05-11 10:59:09 +0300 | [diff] [blame] | 163 | 'wii' => 'Nintendo Wii', |
Andrey Andreev | ca7d822 | 2012-05-11 10:59:09 +0300 | [diff] [blame] | 164 | 'open web' => 'Open Web', |
| 165 | 'openweb' => 'OpenWeb', |
Bo-Yi Wu | f22f852 | 2011-11-12 15:23:04 +0800 | [diff] [blame] | 166 | |
Eric Barnes | 46fcf0b | 2011-11-12 12:42:14 -0500 | [diff] [blame] | 167 | // Operating Systems |
Andrey Andreev | ca7d822 | 2012-05-11 10:59:09 +0300 | [diff] [blame] | 168 | 'android' => 'Android', |
| 169 | 'symbian' => 'Symbian', |
| 170 | 'SymbianOS' => 'SymbianOS', |
| 171 | 'elaine' => 'Palm', |
Andrey Andreev | ca7d822 | 2012-05-11 10:59:09 +0300 | [diff] [blame] | 172 | 'series60' => 'Symbian S60', |
| 173 | 'windows ce' => 'Windows CE', |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 174 | |
Eric Barnes | 46fcf0b | 2011-11-12 12:42:14 -0500 | [diff] [blame] | 175 | // Browsers |
Andrey Andreev | ca7d822 | 2012-05-11 10:59:09 +0300 | [diff] [blame] | 176 | 'obigo' => 'Obigo', |
| 177 | 'netfront' => 'Netfront Browser', |
| 178 | 'openwave' => 'Openwave Browser', |
| 179 | 'mobilexplorer' => 'Mobile Explorer', |
| 180 | 'operamini' => 'Opera Mini', |
| 181 | 'opera mini' => 'Opera Mini', |
| 182 | 'opera mobi' => 'Opera Mobile', |
Andrey Andreev | d490139 | 2012-06-06 14:54:15 +0300 | [diff] [blame] | 183 | 'fennec' => 'Firefox Mobile', |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 184 | |
Eric Barnes | 46fcf0b | 2011-11-12 12:42:14 -0500 | [diff] [blame] | 185 | // Other |
Andrey Andreev | ca7d822 | 2012-05-11 10:59:09 +0300 | [diff] [blame] | 186 | 'digital paths' => 'Digital Paths', |
| 187 | 'avantgo' => 'AvantGo', |
| 188 | 'xiino' => 'Xiino', |
| 189 | 'novarra' => 'Novarra Transcoder', |
| 190 | 'vodafone' => 'Vodafone', |
| 191 | 'docomo' => 'NTT DoCoMo', |
| 192 | 'o2' => 'O2', |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 193 | |
Eric Barnes | 46fcf0b | 2011-11-12 12:42:14 -0500 | [diff] [blame] | 194 | // Fallback |
Andrey Andreev | ca7d822 | 2012-05-11 10:59:09 +0300 | [diff] [blame] | 195 | 'mobile' => 'Generic Mobile', |
| 196 | 'wireless' => 'Generic Mobile', |
| 197 | 'j2me' => 'Generic Mobile', |
| 198 | 'midp' => 'Generic Mobile', |
| 199 | 'cldc' => 'Generic Mobile', |
| 200 | 'up.link' => 'Generic Mobile', |
| 201 | 'up.browser' => 'Generic Mobile', |
| 202 | 'smartphone' => 'Generic Mobile', |
| 203 | 'cellphone' => 'Generic Mobile' |
Eric Barnes | 46fcf0b | 2011-11-12 12:42:14 -0500 | [diff] [blame] | 204 | ); |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 205 | |
| 206 | // There are hundreds of bots but these are the most common. |
| 207 | $robots = array( |
Eric Barnes | 46fcf0b | 2011-11-12 12:42:14 -0500 | [diff] [blame] | 208 | 'googlebot' => 'Googlebot', |
| 209 | 'msnbot' => 'MSNBot', |
Andrew Seymour | 00cfbd2 | 2011-11-12 21:18:07 +0000 | [diff] [blame] | 210 | 'bingbot' => 'Bing', |
Eric Barnes | 46fcf0b | 2011-11-12 12:42:14 -0500 | [diff] [blame] | 211 | 'slurp' => 'Inktomi Slurp', |
| 212 | 'yahoo' => 'Yahoo', |
| 213 | 'askjeeves' => 'AskJeeves', |
| 214 | 'fastcrawler' => 'FastCrawler', |
| 215 | 'infoseek' => 'InfoSeek Robot 1.0', |
| 216 | 'lycos' => 'Lycos' |
| 217 | ); |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 218 | |
| 219 | /* End of file user_agents.php */ |
Andrey Andreev | e734b38 | 2012-03-26 13:42:36 +0300 | [diff] [blame] | 220 | /* Location: ./application/config/user_agents.php */ |