blob: 2af70bf9cd7a8c40529f17d8aace3eda0237b000 [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(
Andre Gardiner303c7b22013-12-05 22:00:32 -050039 'windows nt 6.3' => 'Windows 8.1',
Debeet9defe902012-07-25 17:32:11 +030040 'windows nt 6.2' => 'Windows 8',
Eric Barnes46fcf0b2011-11-12 12:42:14 -050041 'windows nt 6.1' => 'Windows 7',
42 'windows nt 6.0' => 'Windows Vista',
43 'windows nt 5.2' => 'Windows 2003',
44 'windows nt 5.1' => 'Windows XP',
45 'windows nt 5.0' => 'Windows 2000',
46 'windows nt 4.0' => 'Windows NT 4.0',
47 'winnt4.0' => 'Windows NT 4.0',
48 'winnt 4.0' => 'Windows NT',
49 'winnt' => 'Windows NT',
50 'windows 98' => 'Windows 98',
51 'win98' => 'Windows 98',
52 'windows 95' => 'Windows 95',
53 'win95' => 'Windows 95',
msegers335fed92013-08-14 10:46:25 +020054 'windows phone' => 'Windows Phone',
Eric Barnes46fcf0b2011-11-12 12:42:14 -050055 'windows' => 'Unknown Windows OS',
Andrey Andreevca7d8222012-05-11 10:59:09 +030056 'android' => 'Android',
57 'blackberry' => 'BlackBerry',
58 'iphone' => 'iOS',
59 'ipad' => 'iOS',
60 'ipod' => 'iOS',
Eric Barnes46fcf0b2011-11-12 12:42:14 -050061 'os x' => 'Mac OS X',
62 'ppc mac' => 'Power PC Mac',
63 'freebsd' => 'FreeBSD',
64 'ppc' => 'Macintosh',
65 'linux' => 'Linux',
66 'debian' => 'Debian',
67 'sunos' => 'Sun Solaris',
68 'beos' => 'BeOS',
69 'apachebench' => 'ApacheBench',
70 'aix' => 'AIX',
71 'irix' => 'Irix',
72 'osf' => 'DEC OSF',
73 'hp-ux' => 'HP-UX',
74 'netbsd' => 'NetBSD',
75 'bsdi' => 'BSDi',
76 'openbsd' => 'OpenBSD',
77 'gnu' => 'GNU/Linux',
78 'unix' => 'Unknown Unix OS'
79);
Derek Allard2067d1a2008-11-13 22:59:24 +000080
81
82// The order of this array should NOT be changed. Many browsers return
83// multiple browser types so we want to identify the sub-type first.
84$browsers = array(
Jcchemin02410502013-10-08 18:18:54 +020085 'OPR' => 'Opera',
Eric Barnes46fcf0b2011-11-12 12:42:14 -050086 'Flock' => 'Flock',
87 'Chrome' => 'Chrome',
Andrey Andreev10925d22014-01-09 00:16:46 +020088 // Opera 10+ always reports Opera/9.80 and appends Version/<real version> to the user agent string
89 'Opera.*?Version' => 'Opera',
Eric Barnes46fcf0b2011-11-12 12:42:14 -050090 'Opera' => 'Opera',
91 'MSIE' => 'Internet Explorer',
92 'Internet Explorer' => 'Internet Explorer',
93 'Shiira' => 'Shiira',
94 'Firefox' => 'Firefox',
95 'Chimera' => 'Chimera',
96 'Phoenix' => 'Phoenix',
97 'Firebird' => 'Firebird',
98 'Camino' => 'Camino',
99 'Netscape' => 'Netscape',
100 'OmniWeb' => 'OmniWeb',
101 'Safari' => 'Safari',
102 'Mozilla' => 'Mozilla',
103 'Konqueror' => 'Konqueror',
104 'icab' => 'iCab',
105 'Lynx' => 'Lynx',
106 'Links' => 'Links',
107 'hotjava' => 'HotJava',
108 'amaya' => 'Amaya',
Andrey Andreev3ffce982013-01-21 15:24:09 +0200109 'IBrowse' => 'IBrowse',
vkeranovfdd14612013-11-08 09:19:29 +0200110 'Maxthon' => 'Maxthon',
111 'Ubuntu' => 'Ubuntu Web Browser'
Eric Barnes46fcf0b2011-11-12 12:42:14 -0500112);
Derek Allard2067d1a2008-11-13 22:59:24 +0000113
114$mobiles = array(
Eric Barnes46fcf0b2011-11-12 12:42:14 -0500115 // legacy array, old values commented out
116 'mobileexplorer' => 'Mobile Explorer',
117// 'openwave' => 'Open Wave',
118// 'opera mini' => 'Opera Mini',
119// 'operamini' => 'Opera Mini',
120// 'elaine' => 'Palm',
121 'palmsource' => 'Palm',
122// 'digital paths' => 'Palm',
123// 'avantgo' => 'Avantgo',
124// 'xiino' => 'Xiino',
125 'palmscape' => 'Palmscape',
126// 'nokia' => 'Nokia',
127// 'ericsson' => 'Ericsson',
128// 'blackberry' => 'BlackBerry',
129// 'motorola' => 'Motorola'
Derek Allard2067d1a2008-11-13 22:59:24 +0000130
Eric Barnes46fcf0b2011-11-12 12:42:14 -0500131 // Phones and Manufacturers
Andrey Andreevca7d8222012-05-11 10:59:09 +0300132 'motorola' => 'Motorola',
133 'nokia' => 'Nokia',
134 'palm' => 'Palm',
135 'iphone' => 'Apple iPhone',
136 'ipad' => 'iPad',
137 'ipod' => 'Apple iPod Touch',
138 'sony' => 'Sony Ericsson',
139 'ericsson' => 'Sony Ericsson',
140 'blackberry' => 'BlackBerry',
141 'cocoon' => 'O2 Cocoon',
142 'blazer' => 'Treo',
143 'lg' => 'LG',
144 'amoi' => 'Amoi',
145 'xda' => 'XDA',
146 'mda' => 'MDA',
147 'vario' => 'Vario',
148 'htc' => 'HTC',
149 'samsung' => 'Samsung',
150 'sharp' => 'Sharp',
151 'sie-' => 'Siemens',
152 'alcatel' => 'Alcatel',
153 'benq' => 'BenQ',
154 'ipaq' => 'HP iPaq',
155 'mot-' => 'Motorola',
156 'playstation portable' => 'PlayStation Portable',
Debeet9defe902012-07-25 17:32:11 +0300157 'playstation 3' => 'PlayStation 3',
TheDragonSlayer2e746812013-03-30 09:50:27 -0300158 'playstation vita' => 'PlayStation Vita',
Andrey Andreevca7d8222012-05-11 10:59:09 +0300159 'hiptop' => 'Danger Hiptop',
160 'nec-' => 'NEC',
161 'panasonic' => 'Panasonic',
162 'philips' => 'Philips',
163 'sagem' => 'Sagem',
164 'sanyo' => 'Sanyo',
165 'spv' => 'SPV',
166 'zte' => 'ZTE',
167 'sendo' => 'Sendo',
Eric Roberts19d0f562012-08-11 19:53:59 -0500168 'nintendo dsi' => 'Nintendo DSi',
169 'nintendo ds' => 'Nintendo DS',
170 'nintendo 3ds' => 'Nintendo 3DS',
Andrey Andreevca7d8222012-05-11 10:59:09 +0300171 'wii' => 'Nintendo Wii',
Andrey Andreevca7d8222012-05-11 10:59:09 +0300172 'open web' => 'Open Web',
173 'openweb' => 'OpenWeb',
Bo-Yi Wuf22f8522011-11-12 15:23:04 +0800174
Eric Barnes46fcf0b2011-11-12 12:42:14 -0500175 // Operating Systems
Andrey Andreevca7d8222012-05-11 10:59:09 +0300176 'android' => 'Android',
177 'symbian' => 'Symbian',
178 'SymbianOS' => 'SymbianOS',
179 'elaine' => 'Palm',
Andrey Andreevca7d8222012-05-11 10:59:09 +0300180 'series60' => 'Symbian S60',
181 'windows ce' => 'Windows CE',
Derek Allard2067d1a2008-11-13 22:59:24 +0000182
Eric Barnes46fcf0b2011-11-12 12:42:14 -0500183 // Browsers
Andrey Andreevca7d8222012-05-11 10:59:09 +0300184 'obigo' => 'Obigo',
185 'netfront' => 'Netfront Browser',
186 'openwave' => 'Openwave Browser',
187 'mobilexplorer' => 'Mobile Explorer',
188 'operamini' => 'Opera Mini',
189 'opera mini' => 'Opera Mini',
190 'opera mobi' => 'Opera Mobile',
vlakoffc941d852013-08-06 14:44:40 +0200191 'fennec' => 'Firefox Mobile',
Derek Allard2067d1a2008-11-13 22:59:24 +0000192
Eric Barnes46fcf0b2011-11-12 12:42:14 -0500193 // Other
Andrey Andreevca7d8222012-05-11 10:59:09 +0300194 'digital paths' => 'Digital Paths',
195 'avantgo' => 'AvantGo',
196 'xiino' => 'Xiino',
197 'novarra' => 'Novarra Transcoder',
198 'vodafone' => 'Vodafone',
199 'docomo' => 'NTT DoCoMo',
200 'o2' => 'O2',
Derek Allard2067d1a2008-11-13 22:59:24 +0000201
Eric Barnes46fcf0b2011-11-12 12:42:14 -0500202 // Fallback
Andrey Andreevca7d8222012-05-11 10:59:09 +0300203 'mobile' => 'Generic Mobile',
204 'wireless' => 'Generic Mobile',
205 'j2me' => 'Generic Mobile',
206 'midp' => 'Generic Mobile',
207 'cldc' => 'Generic Mobile',
208 'up.link' => 'Generic Mobile',
209 'up.browser' => 'Generic Mobile',
210 'smartphone' => 'Generic Mobile',
211 'cellphone' => 'Generic Mobile'
Eric Barnes46fcf0b2011-11-12 12:42:14 -0500212);
Derek Allard2067d1a2008-11-13 22:59:24 +0000213
214// There are hundreds of bots but these are the most common.
215$robots = array(
Eric Barnes46fcf0b2011-11-12 12:42:14 -0500216 'googlebot' => 'Googlebot',
217 'msnbot' => 'MSNBot',
Garth Kerr1bfc1152013-04-03 13:02:21 -0400218 'baiduspider' => 'Baiduspider',
Andrew Seymour00cfbd22011-11-12 21:18:07 +0000219 'bingbot' => 'Bing',
Eric Barnes46fcf0b2011-11-12 12:42:14 -0500220 'slurp' => 'Inktomi Slurp',
221 'yahoo' => 'Yahoo',
222 'askjeeves' => 'AskJeeves',
223 'fastcrawler' => 'FastCrawler',
224 'infoseek' => 'InfoSeek Robot 1.0',
Garth Kerr1bfc1152013-04-03 13:02:21 -0400225 'lycos' => 'Lycos',
226 'yandex' => 'YandexBot'
Eric Barnes46fcf0b2011-11-12 12:42:14 -0500227);
Derek Allard2067d1a2008-11-13 22:59:24 +0000228
229/* End of file user_agents.php */
Andrey Andreeva6eae872014-01-03 18:25:20 +0200230/* Location: ./application/config/user_agents.php */