blob: 3f7c04162e31c36032f70522c8a27e82c8885e10 [file] [log] [blame]
darwineld8bef8a2014-02-11 20:13:22 +01001<?php
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
darwinel871754a2014-02-11 17:34:57 +010021 * @copyright Copyright (c) 2008 - 2014, 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 */
darwineld8bef8a2014-02-11 20:13:22 +010027defined('BASEPATH') OR exit('No direct script access allowed');
Derek Jonesf4a4bd82011-10-20 12:18:42 -050028
Derek Allard2067d1a2008-11-13 22:59:24 +000029/*
30| -------------------------------------------------------------------
31| USER AGENT TYPES
32| -------------------------------------------------------------------
Andrey Andreevd4901392012-06-06 14:54:15 +030033| This file contains four arrays of user agent data. It is used by the
Derek Allard2067d1a2008-11-13 22:59:24 +000034| User Agent Class to help identify browser, platform, robot, and
Andrey Andreevd4901392012-06-06 14:54:15 +030035| mobile device data. The array keys are used to identify the device
Derek Allard2067d1a2008-11-13 22:59:24 +000036| and the array values are used to set the actual name of the item.
Derek Allard2067d1a2008-11-13 22:59:24 +000037*/
38
Andrey Andreevca7d8222012-05-11 10:59:09 +030039$platforms = array(
Andre Gardiner303c7b22013-12-05 22:00:32 -050040 'windows nt 6.3' => 'Windows 8.1',
Debeet9defe902012-07-25 17:32:11 +030041 'windows nt 6.2' => 'Windows 8',
Eric Barnes46fcf0b2011-11-12 12:42:14 -050042 'windows nt 6.1' => 'Windows 7',
43 'windows nt 6.0' => 'Windows Vista',
44 'windows nt 5.2' => 'Windows 2003',
45 'windows nt 5.1' => 'Windows XP',
46 'windows nt 5.0' => 'Windows 2000',
47 'windows nt 4.0' => 'Windows NT 4.0',
48 'winnt4.0' => 'Windows NT 4.0',
49 'winnt 4.0' => 'Windows NT',
50 'winnt' => 'Windows NT',
51 'windows 98' => 'Windows 98',
52 'win98' => 'Windows 98',
53 'windows 95' => 'Windows 95',
54 'win95' => 'Windows 95',
msegers335fed92013-08-14 10:46:25 +020055 'windows phone' => 'Windows Phone',
Eric Barnes46fcf0b2011-11-12 12:42:14 -050056 'windows' => 'Unknown Windows OS',
Andrey Andreevca7d8222012-05-11 10:59:09 +030057 'android' => 'Android',
58 'blackberry' => 'BlackBerry',
59 'iphone' => 'iOS',
60 'ipad' => 'iOS',
61 'ipod' => 'iOS',
Eric Barnes46fcf0b2011-11-12 12:42:14 -050062 'os x' => 'Mac OS X',
63 'ppc mac' => 'Power PC Mac',
64 'freebsd' => 'FreeBSD',
65 'ppc' => 'Macintosh',
66 'linux' => 'Linux',
67 'debian' => 'Debian',
68 'sunos' => 'Sun Solaris',
69 'beos' => 'BeOS',
70 'apachebench' => 'ApacheBench',
71 'aix' => 'AIX',
72 'irix' => 'Irix',
73 'osf' => 'DEC OSF',
74 'hp-ux' => 'HP-UX',
75 'netbsd' => 'NetBSD',
76 'bsdi' => 'BSDi',
77 'openbsd' => 'OpenBSD',
78 'gnu' => 'GNU/Linux',
Adriano Rosa1799cbf2014-05-07 22:37:03 -030079 'unix' => 'Unknown Unix OS',
80 'symbian' => 'Symbian OS'
Eric Barnes46fcf0b2011-11-12 12:42:14 -050081);
Derek Allard2067d1a2008-11-13 22:59:24 +000082
83
84// The order of this array should NOT be changed. Many browsers return
85// multiple browser types so we want to identify the sub-type first.
86$browsers = array(
Jcchemin02410502013-10-08 18:18:54 +020087 'OPR' => 'Opera',
Eric Barnes46fcf0b2011-11-12 12:42:14 -050088 'Flock' => 'Flock',
89 'Chrome' => 'Chrome',
Andrey Andreev10925d22014-01-09 00:16:46 +020090 // Opera 10+ always reports Opera/9.80 and appends Version/<real version> to the user agent string
91 'Opera.*?Version' => 'Opera',
Eric Barnes46fcf0b2011-11-12 12:42:14 -050092 'Opera' => 'Opera',
93 'MSIE' => 'Internet Explorer',
94 'Internet Explorer' => 'Internet Explorer',
Dionysis Arvanitis2cdd50e2014-01-15 16:24:15 +020095 'Trident.* rv' => 'Internet Explorer',
Eric Barnes46fcf0b2011-11-12 12:42:14 -050096 'Shiira' => 'Shiira',
97 'Firefox' => 'Firefox',
98 'Chimera' => 'Chimera',
99 'Phoenix' => 'Phoenix',
100 'Firebird' => 'Firebird',
101 'Camino' => 'Camino',
102 'Netscape' => 'Netscape',
103 'OmniWeb' => 'OmniWeb',
104 'Safari' => 'Safari',
105 'Mozilla' => 'Mozilla',
106 'Konqueror' => 'Konqueror',
107 'icab' => 'iCab',
108 'Lynx' => 'Lynx',
109 'Links' => 'Links',
110 'hotjava' => 'HotJava',
111 'amaya' => 'Amaya',
Andrey Andreev3ffce982013-01-21 15:24:09 +0200112 'IBrowse' => 'IBrowse',
vkeranovfdd14612013-11-08 09:19:29 +0200113 'Maxthon' => 'Maxthon',
114 'Ubuntu' => 'Ubuntu Web Browser'
Eric Barnes46fcf0b2011-11-12 12:42:14 -0500115);
Derek Allard2067d1a2008-11-13 22:59:24 +0000116
117$mobiles = array(
Eric Barnes46fcf0b2011-11-12 12:42:14 -0500118 // legacy array, old values commented out
119 'mobileexplorer' => 'Mobile Explorer',
120// 'openwave' => 'Open Wave',
121// 'opera mini' => 'Opera Mini',
122// 'operamini' => 'Opera Mini',
123// 'elaine' => 'Palm',
124 'palmsource' => 'Palm',
125// 'digital paths' => 'Palm',
126// 'avantgo' => 'Avantgo',
127// 'xiino' => 'Xiino',
128 'palmscape' => 'Palmscape',
129// 'nokia' => 'Nokia',
130// 'ericsson' => 'Ericsson',
131// 'blackberry' => 'BlackBerry',
132// 'motorola' => 'Motorola'
Derek Allard2067d1a2008-11-13 22:59:24 +0000133
Eric Barnes46fcf0b2011-11-12 12:42:14 -0500134 // Phones and Manufacturers
Andrey Andreevca7d8222012-05-11 10:59:09 +0300135 'motorola' => 'Motorola',
136 'nokia' => 'Nokia',
137 'palm' => 'Palm',
138 'iphone' => 'Apple iPhone',
139 'ipad' => 'iPad',
140 'ipod' => 'Apple iPod Touch',
141 'sony' => 'Sony Ericsson',
142 'ericsson' => 'Sony Ericsson',
143 'blackberry' => 'BlackBerry',
144 'cocoon' => 'O2 Cocoon',
145 'blazer' => 'Treo',
146 'lg' => 'LG',
147 'amoi' => 'Amoi',
148 'xda' => 'XDA',
149 'mda' => 'MDA',
150 'vario' => 'Vario',
151 'htc' => 'HTC',
152 'samsung' => 'Samsung',
153 'sharp' => 'Sharp',
154 'sie-' => 'Siemens',
155 'alcatel' => 'Alcatel',
156 'benq' => 'BenQ',
157 'ipaq' => 'HP iPaq',
158 'mot-' => 'Motorola',
159 'playstation portable' => 'PlayStation Portable',
Debeet9defe902012-07-25 17:32:11 +0300160 'playstation 3' => 'PlayStation 3',
TheDragonSlayer2e746812013-03-30 09:50:27 -0300161 'playstation vita' => 'PlayStation Vita',
Andrey Andreevca7d8222012-05-11 10:59:09 +0300162 'hiptop' => 'Danger Hiptop',
163 'nec-' => 'NEC',
164 'panasonic' => 'Panasonic',
165 'philips' => 'Philips',
166 'sagem' => 'Sagem',
167 'sanyo' => 'Sanyo',
168 'spv' => 'SPV',
169 'zte' => 'ZTE',
170 'sendo' => 'Sendo',
Eric Roberts19d0f562012-08-11 19:53:59 -0500171 'nintendo dsi' => 'Nintendo DSi',
172 'nintendo ds' => 'Nintendo DS',
173 'nintendo 3ds' => 'Nintendo 3DS',
Andrey Andreevca7d8222012-05-11 10:59:09 +0300174 'wii' => 'Nintendo Wii',
Andrey Andreevca7d8222012-05-11 10:59:09 +0300175 'open web' => 'Open Web',
176 'openweb' => 'OpenWeb',
Bo-Yi Wuf22f8522011-11-12 15:23:04 +0800177
Eric Barnes46fcf0b2011-11-12 12:42:14 -0500178 // Operating Systems
Andrey Andreevca7d8222012-05-11 10:59:09 +0300179 'android' => 'Android',
180 'symbian' => 'Symbian',
181 'SymbianOS' => 'SymbianOS',
182 'elaine' => 'Palm',
Andrey Andreevca7d8222012-05-11 10:59:09 +0300183 'series60' => 'Symbian S60',
184 'windows ce' => 'Windows CE',
Derek Allard2067d1a2008-11-13 22:59:24 +0000185
Eric Barnes46fcf0b2011-11-12 12:42:14 -0500186 // Browsers
Andrey Andreevca7d8222012-05-11 10:59:09 +0300187 'obigo' => 'Obigo',
188 'netfront' => 'Netfront Browser',
189 'openwave' => 'Openwave Browser',
190 'mobilexplorer' => 'Mobile Explorer',
191 'operamini' => 'Opera Mini',
192 'opera mini' => 'Opera Mini',
193 'opera mobi' => 'Opera Mobile',
vlakoffc941d852013-08-06 14:44:40 +0200194 'fennec' => 'Firefox Mobile',
Derek Allard2067d1a2008-11-13 22:59:24 +0000195
Eric Barnes46fcf0b2011-11-12 12:42:14 -0500196 // Other
Andrey Andreevca7d8222012-05-11 10:59:09 +0300197 'digital paths' => 'Digital Paths',
198 'avantgo' => 'AvantGo',
199 'xiino' => 'Xiino',
200 'novarra' => 'Novarra Transcoder',
201 'vodafone' => 'Vodafone',
202 'docomo' => 'NTT DoCoMo',
203 'o2' => 'O2',
Derek Allard2067d1a2008-11-13 22:59:24 +0000204
Eric Barnes46fcf0b2011-11-12 12:42:14 -0500205 // Fallback
Andrey Andreevca7d8222012-05-11 10:59:09 +0300206 'mobile' => 'Generic Mobile',
207 'wireless' => 'Generic Mobile',
208 'j2me' => 'Generic Mobile',
209 'midp' => 'Generic Mobile',
210 'cldc' => 'Generic Mobile',
211 'up.link' => 'Generic Mobile',
212 'up.browser' => 'Generic Mobile',
213 'smartphone' => 'Generic Mobile',
214 'cellphone' => 'Generic Mobile'
Eric Barnes46fcf0b2011-11-12 12:42:14 -0500215);
Derek Allard2067d1a2008-11-13 22:59:24 +0000216
217// There are hundreds of bots but these are the most common.
218$robots = array(
Eric Barnes46fcf0b2011-11-12 12:42:14 -0500219 'googlebot' => 'Googlebot',
220 'msnbot' => 'MSNBot',
Garth Kerr1bfc1152013-04-03 13:02:21 -0400221 'baiduspider' => 'Baiduspider',
Andrew Seymour00cfbd22011-11-12 21:18:07 +0000222 'bingbot' => 'Bing',
Eric Barnes46fcf0b2011-11-12 12:42:14 -0500223 'slurp' => 'Inktomi Slurp',
224 'yahoo' => 'Yahoo',
225 'askjeeves' => 'AskJeeves',
226 'fastcrawler' => 'FastCrawler',
227 'infoseek' => 'InfoSeek Robot 1.0',
Garth Kerr1bfc1152013-04-03 13:02:21 -0400228 'lycos' => 'Lycos',
229 'yandex' => 'YandexBot'
Eric Barnes46fcf0b2011-11-12 12:42:14 -0500230);
Derek Allard2067d1a2008-11-13 22:59:24 +0000231
232/* End of file user_agents.php */
Andrey Andreeva6eae872014-01-03 18:25:20 +0200233/* Location: ./application/config/user_agents.php */