blob: 899e96a94a3eebdf50bd766323c290cec018c447 [file] [log] [blame]
Andrey Andreeve734b382012-03-26 13:42:36 +03001<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
Derek Jonesf4a4bd82011-10-20 12:18:42 -05002/**
3 * CodeIgniter
4 *
Phil Sturgeon07c1ac82012-03-09 17:03:37 +00005 * An open source application development framework for PHP 5.2.4 or newer
Derek Jonesf4a4bd82011-10-20 12:18:42 -05006 *
7 * NOTICE OF LICENSE
Eric Barnes46fcf0b2011-11-12 12:42:14 -05008 *
Derek Jonesf4a4bd82011-10-20 12:18:42 -05009 * Licensed under the Academic Free License version 3.0
Eric Barnes46fcf0b2011-11-12 12:42:14 -050010 *
Derek Jones61df9062011-10-21 09:55:40 -050011 * This source file is subject to the Academic Free License (AFL 3.0) that is
Derek Jonesf4a4bd82011-10-20 12:18:42 -050012 * 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
Andrey Andreev80500af2013-01-01 08:16:53 +020021 * @copyright Copyright (c) 2008 - 2013, EllisLab, Inc. (http://ellislab.com/)
Derek Jonesf4a4bd82011-10-20 12:18:42 -050022 * @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 Allard2067d1a2008-11-13 22:59:24 +000028/*
29| -------------------------------------------------------------------
30| USER AGENT TYPES
31| -------------------------------------------------------------------
Andrey Andreevd4901392012-06-06 14:54:15 +030032| This file contains four arrays of user agent data. It is used by the
Derek Allard2067d1a2008-11-13 22:59:24 +000033| User Agent Class to help identify browser, platform, robot, and
Andrey Andreevd4901392012-06-06 14:54:15 +030034| mobile device data. The array keys are used to identify the device
Derek Allard2067d1a2008-11-13 22:59:24 +000035| and the array values are used to set the actual name of the item.
Derek Allard2067d1a2008-11-13 22:59:24 +000036*/
37
Andrey Andreevca7d8222012-05-11 10:59:09 +030038$platforms = array(
Debeet9defe902012-07-25 17:32:11 +030039 'windows nt 6.2' => 'Windows 8',
Eric Barnes46fcf0b2011-11-12 12:42:14 -050040 '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',
msegers335fed92013-08-14 10:46:25 +020053 'windows phone' => 'Windows Phone',
Eric Barnes46fcf0b2011-11-12 12:42:14 -050054 'windows' => 'Unknown Windows OS',
Andrey Andreevca7d8222012-05-11 10:59:09 +030055 'android' => 'Android',
56 'blackberry' => 'BlackBerry',
57 'iphone' => 'iOS',
58 'ipad' => 'iOS',
59 'ipod' => 'iOS',
Eric Barnes46fcf0b2011-11-12 12:42:14 -050060 'os x' => 'Mac OS X',
61 'ppc mac' => 'Power PC Mac',
62 'freebsd' => 'FreeBSD',
63 'ppc' => 'Macintosh',
64 'linux' => 'Linux',
65 'debian' => 'Debian',
66 'sunos' => 'Sun Solaris',
67 'beos' => 'BeOS',
68 'apachebench' => 'ApacheBench',
69 'aix' => 'AIX',
70 'irix' => 'Irix',
71 'osf' => 'DEC OSF',
72 'hp-ux' => 'HP-UX',
73 'netbsd' => 'NetBSD',
74 'bsdi' => 'BSDi',
75 'openbsd' => 'OpenBSD',
76 'gnu' => 'GNU/Linux',
77 'unix' => 'Unknown Unix OS'
78);
Derek Allard2067d1a2008-11-13 22:59:24 +000079
80
81// The order of this array should NOT be changed. Many browsers return
82// multiple browser types so we want to identify the sub-type first.
83$browsers = array(
Jcchemin02410502013-10-08 18:18:54 +020084 'OPR' => 'Opera',
Eric Barnes46fcf0b2011-11-12 12:42:14 -050085 'Flock' => 'Flock',
86 'Chrome' => 'Chrome',
87 'Opera' => 'Opera',
88 'MSIE' => 'Internet Explorer',
89 'Internet Explorer' => 'Internet Explorer',
90 'Shiira' => 'Shiira',
91 'Firefox' => 'Firefox',
92 'Chimera' => 'Chimera',
93 'Phoenix' => 'Phoenix',
94 'Firebird' => 'Firebird',
95 'Camino' => 'Camino',
96 'Netscape' => 'Netscape',
97 'OmniWeb' => 'OmniWeb',
98 'Safari' => 'Safari',
99 'Mozilla' => 'Mozilla',
100 'Konqueror' => 'Konqueror',
101 'icab' => 'iCab',
102 'Lynx' => 'Lynx',
103 'Links' => 'Links',
104 'hotjava' => 'HotJava',
105 'amaya' => 'Amaya',
Andrey Andreev3ffce982013-01-21 15:24:09 +0200106 'IBrowse' => 'IBrowse',
107 'Maxthon' => 'Maxthon'
Eric Barnes46fcf0b2011-11-12 12:42:14 -0500108);
Derek Allard2067d1a2008-11-13 22:59:24 +0000109
110$mobiles = array(
Eric Barnes46fcf0b2011-11-12 12:42:14 -0500111 // legacy array, old values commented out
112 'mobileexplorer' => 'Mobile Explorer',
113// 'openwave' => 'Open Wave',
114// 'opera mini' => 'Opera Mini',
115// 'operamini' => 'Opera Mini',
116// 'elaine' => 'Palm',
117 'palmsource' => 'Palm',
118// 'digital paths' => 'Palm',
119// 'avantgo' => 'Avantgo',
120// 'xiino' => 'Xiino',
121 'palmscape' => 'Palmscape',
122// 'nokia' => 'Nokia',
123// 'ericsson' => 'Ericsson',
124// 'blackberry' => 'BlackBerry',
125// 'motorola' => 'Motorola'
Derek Allard2067d1a2008-11-13 22:59:24 +0000126
Eric Barnes46fcf0b2011-11-12 12:42:14 -0500127 // Phones and Manufacturers
Andrey Andreevca7d8222012-05-11 10:59:09 +0300128 'motorola' => 'Motorola',
129 'nokia' => 'Nokia',
130 'palm' => 'Palm',
131 'iphone' => 'Apple iPhone',
132 'ipad' => 'iPad',
133 'ipod' => 'Apple iPod Touch',
134 'sony' => 'Sony Ericsson',
135 'ericsson' => 'Sony Ericsson',
136 'blackberry' => 'BlackBerry',
137 'cocoon' => 'O2 Cocoon',
138 'blazer' => 'Treo',
139 'lg' => 'LG',
140 'amoi' => 'Amoi',
141 'xda' => 'XDA',
142 'mda' => 'MDA',
143 'vario' => 'Vario',
144 'htc' => 'HTC',
145 'samsung' => 'Samsung',
146 'sharp' => 'Sharp',
147 'sie-' => 'Siemens',
148 'alcatel' => 'Alcatel',
149 'benq' => 'BenQ',
150 'ipaq' => 'HP iPaq',
151 'mot-' => 'Motorola',
152 'playstation portable' => 'PlayStation Portable',
Debeet9defe902012-07-25 17:32:11 +0300153 'playstation 3' => 'PlayStation 3',
TheDragonSlayer2e746812013-03-30 09:50:27 -0300154 'playstation vita' => 'PlayStation Vita',
Andrey Andreevca7d8222012-05-11 10:59:09 +0300155 'hiptop' => 'Danger Hiptop',
156 'nec-' => 'NEC',
157 'panasonic' => 'Panasonic',
158 'philips' => 'Philips',
159 'sagem' => 'Sagem',
160 'sanyo' => 'Sanyo',
161 'spv' => 'SPV',
162 'zte' => 'ZTE',
163 'sendo' => 'Sendo',
Eric Roberts19d0f562012-08-11 19:53:59 -0500164 'nintendo dsi' => 'Nintendo DSi',
165 'nintendo ds' => 'Nintendo DS',
166 'nintendo 3ds' => 'Nintendo 3DS',
Andrey Andreevca7d8222012-05-11 10:59:09 +0300167 'wii' => 'Nintendo Wii',
Andrey Andreevca7d8222012-05-11 10:59:09 +0300168 'open web' => 'Open Web',
169 'openweb' => 'OpenWeb',
Bo-Yi Wuf22f8522011-11-12 15:23:04 +0800170
Eric Barnes46fcf0b2011-11-12 12:42:14 -0500171 // Operating Systems
Andrey Andreevca7d8222012-05-11 10:59:09 +0300172 'android' => 'Android',
173 'symbian' => 'Symbian',
174 'SymbianOS' => 'SymbianOS',
175 'elaine' => 'Palm',
Andrey Andreevca7d8222012-05-11 10:59:09 +0300176 'series60' => 'Symbian S60',
177 'windows ce' => 'Windows CE',
Derek Allard2067d1a2008-11-13 22:59:24 +0000178
Eric Barnes46fcf0b2011-11-12 12:42:14 -0500179 // Browsers
Andrey Andreevca7d8222012-05-11 10:59:09 +0300180 'obigo' => 'Obigo',
181 'netfront' => 'Netfront Browser',
182 'openwave' => 'Openwave Browser',
183 'mobilexplorer' => 'Mobile Explorer',
184 'operamini' => 'Opera Mini',
185 'opera mini' => 'Opera Mini',
186 'opera mobi' => 'Opera Mobile',
vlakoffc941d852013-08-06 14:44:40 +0200187 'fennec' => 'Firefox Mobile',
Derek Allard2067d1a2008-11-13 22:59:24 +0000188
Eric Barnes46fcf0b2011-11-12 12:42:14 -0500189 // Other
Andrey Andreevca7d8222012-05-11 10:59:09 +0300190 'digital paths' => 'Digital Paths',
191 'avantgo' => 'AvantGo',
192 'xiino' => 'Xiino',
193 'novarra' => 'Novarra Transcoder',
194 'vodafone' => 'Vodafone',
195 'docomo' => 'NTT DoCoMo',
196 'o2' => 'O2',
Derek Allard2067d1a2008-11-13 22:59:24 +0000197
Eric Barnes46fcf0b2011-11-12 12:42:14 -0500198 // Fallback
Andrey Andreevca7d8222012-05-11 10:59:09 +0300199 'mobile' => 'Generic Mobile',
200 'wireless' => 'Generic Mobile',
201 'j2me' => 'Generic Mobile',
202 'midp' => 'Generic Mobile',
203 'cldc' => 'Generic Mobile',
204 'up.link' => 'Generic Mobile',
205 'up.browser' => 'Generic Mobile',
206 'smartphone' => 'Generic Mobile',
207 'cellphone' => 'Generic Mobile'
Eric Barnes46fcf0b2011-11-12 12:42:14 -0500208);
Derek Allard2067d1a2008-11-13 22:59:24 +0000209
210// There are hundreds of bots but these are the most common.
211$robots = array(
Eric Barnes46fcf0b2011-11-12 12:42:14 -0500212 'googlebot' => 'Googlebot',
213 'msnbot' => 'MSNBot',
Garth Kerr1bfc1152013-04-03 13:02:21 -0400214 'baiduspider' => 'Baiduspider',
Andrew Seymour00cfbd22011-11-12 21:18:07 +0000215 'bingbot' => 'Bing',
Eric Barnes46fcf0b2011-11-12 12:42:14 -0500216 'slurp' => 'Inktomi Slurp',
217 'yahoo' => 'Yahoo',
218 'askjeeves' => 'AskJeeves',
219 'fastcrawler' => 'FastCrawler',
220 'infoseek' => 'InfoSeek Robot 1.0',
Garth Kerr1bfc1152013-04-03 13:02:21 -0400221 'lycos' => 'Lycos',
222 'yandex' => 'YandexBot'
Eric Barnes46fcf0b2011-11-12 12:42:14 -0500223);
Derek Allard2067d1a2008-11-13 22:59:24 +0000224
225/* End of file user_agents.php */
Andrey Andreev9f417d02013-10-14 12:24:36 +0300226/* Location: ./application/config/user_agents.php */