blob: 0c8605820bdda5cd227da023081d2adb073bb36c [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',
53 'windows' => 'Unknown Windows OS',
Andrey Andreevca7d8222012-05-11 10:59:09 +030054 'android' => 'Android',
55 'blackberry' => 'BlackBerry',
56 'iphone' => 'iOS',
57 'ipad' => 'iOS',
58 'ipod' => 'iOS',
Eric Barnes46fcf0b2011-11-12 12:42:14 -050059 '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 Allard2067d1a2008-11-13 22:59:24 +000078
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 Barnes46fcf0b2011-11-12 12:42:14 -050083 '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',
Andrey Andreev3ffce982013-01-21 15:24:09 +0200104 'IBrowse' => 'IBrowse',
105 'Maxthon' => 'Maxthon'
Eric Barnes46fcf0b2011-11-12 12:42:14 -0500106);
Derek Allard2067d1a2008-11-13 22:59:24 +0000107
108$mobiles = array(
Eric Barnes46fcf0b2011-11-12 12:42:14 -0500109 // legacy array, old values commented out
110 'mobileexplorer' => 'Mobile Explorer',
111// 'openwave' => 'Open Wave',
112// 'opera mini' => 'Opera Mini',
113// 'operamini' => 'Opera Mini',
114// 'elaine' => 'Palm',
115 'palmsource' => 'Palm',
116// 'digital paths' => 'Palm',
117// 'avantgo' => 'Avantgo',
118// 'xiino' => 'Xiino',
119 'palmscape' => 'Palmscape',
120// 'nokia' => 'Nokia',
121// 'ericsson' => 'Ericsson',
122// 'blackberry' => 'BlackBerry',
123// 'motorola' => 'Motorola'
Derek Allard2067d1a2008-11-13 22:59:24 +0000124
Eric Barnes46fcf0b2011-11-12 12:42:14 -0500125 // Phones and Manufacturers
Andrey Andreevca7d8222012-05-11 10:59:09 +0300126 'motorola' => 'Motorola',
127 'nokia' => 'Nokia',
128 'palm' => 'Palm',
129 'iphone' => 'Apple iPhone',
130 'ipad' => 'iPad',
131 'ipod' => 'Apple iPod Touch',
132 'sony' => 'Sony Ericsson',
133 'ericsson' => 'Sony Ericsson',
134 'blackberry' => 'BlackBerry',
135 'cocoon' => 'O2 Cocoon',
136 'blazer' => 'Treo',
137 'lg' => 'LG',
138 'amoi' => 'Amoi',
139 'xda' => 'XDA',
140 'mda' => 'MDA',
141 'vario' => 'Vario',
142 'htc' => 'HTC',
143 'samsung' => 'Samsung',
144 'sharp' => 'Sharp',
145 'sie-' => 'Siemens',
146 'alcatel' => 'Alcatel',
147 'benq' => 'BenQ',
148 'ipaq' => 'HP iPaq',
149 'mot-' => 'Motorola',
150 'playstation portable' => 'PlayStation Portable',
Debeet9defe902012-07-25 17:32:11 +0300151 'playstation 3' => 'PlayStation 3',
TheDragonSlayer2e746812013-03-30 09:50:27 -0300152 'playstation vita' => 'PlayStation Vita',
Andrey Andreevca7d8222012-05-11 10:59:09 +0300153 'hiptop' => 'Danger Hiptop',
154 'nec-' => 'NEC',
155 'panasonic' => 'Panasonic',
156 'philips' => 'Philips',
157 'sagem' => 'Sagem',
158 'sanyo' => 'Sanyo',
159 'spv' => 'SPV',
160 'zte' => 'ZTE',
161 'sendo' => 'Sendo',
Eric Roberts19d0f562012-08-11 19:53:59 -0500162 'nintendo dsi' => 'Nintendo DSi',
163 'nintendo ds' => 'Nintendo DS',
164 'nintendo 3ds' => 'Nintendo 3DS',
Andrey Andreevca7d8222012-05-11 10:59:09 +0300165 'wii' => 'Nintendo Wii',
Andrey Andreevca7d8222012-05-11 10:59:09 +0300166 'open web' => 'Open Web',
167 'openweb' => 'OpenWeb',
Bo-Yi Wuf22f8522011-11-12 15:23:04 +0800168
Eric Barnes46fcf0b2011-11-12 12:42:14 -0500169 // Operating Systems
Andrey Andreevca7d8222012-05-11 10:59:09 +0300170 'android' => 'Android',
171 'symbian' => 'Symbian',
172 'SymbianOS' => 'SymbianOS',
173 'elaine' => 'Palm',
Andrey Andreevca7d8222012-05-11 10:59:09 +0300174 'series60' => 'Symbian S60',
175 'windows ce' => 'Windows CE',
Derek Allard2067d1a2008-11-13 22:59:24 +0000176
Eric Barnes46fcf0b2011-11-12 12:42:14 -0500177 // Browsers
Andrey Andreevca7d8222012-05-11 10:59:09 +0300178 'obigo' => 'Obigo',
179 'netfront' => 'Netfront Browser',
180 'openwave' => 'Openwave Browser',
181 'mobilexplorer' => 'Mobile Explorer',
182 'operamini' => 'Opera Mini',
183 'opera mini' => 'Opera Mini',
184 'opera mobi' => 'Opera Mobile',
vlakoffc941d852013-08-06 14:44:40 +0200185 'fennec' => 'Firefox Mobile',
Derek Allard2067d1a2008-11-13 22:59:24 +0000186
Eric Barnes46fcf0b2011-11-12 12:42:14 -0500187 // Other
Andrey Andreevca7d8222012-05-11 10:59:09 +0300188 'digital paths' => 'Digital Paths',
189 'avantgo' => 'AvantGo',
190 'xiino' => 'Xiino',
191 'novarra' => 'Novarra Transcoder',
192 'vodafone' => 'Vodafone',
193 'docomo' => 'NTT DoCoMo',
194 'o2' => 'O2',
Derek Allard2067d1a2008-11-13 22:59:24 +0000195
Eric Barnes46fcf0b2011-11-12 12:42:14 -0500196 // Fallback
Andrey Andreevca7d8222012-05-11 10:59:09 +0300197 'mobile' => 'Generic Mobile',
198 'wireless' => 'Generic Mobile',
199 'j2me' => 'Generic Mobile',
200 'midp' => 'Generic Mobile',
201 'cldc' => 'Generic Mobile',
202 'up.link' => 'Generic Mobile',
203 'up.browser' => 'Generic Mobile',
204 'smartphone' => 'Generic Mobile',
205 'cellphone' => 'Generic Mobile'
Eric Barnes46fcf0b2011-11-12 12:42:14 -0500206);
Derek Allard2067d1a2008-11-13 22:59:24 +0000207
208// There are hundreds of bots but these are the most common.
209$robots = array(
Eric Barnes46fcf0b2011-11-12 12:42:14 -0500210 'googlebot' => 'Googlebot',
211 'msnbot' => 'MSNBot',
Garth Kerr1bfc1152013-04-03 13:02:21 -0400212 'baiduspider' => 'Baiduspider',
Andrew Seymour00cfbd22011-11-12 21:18:07 +0000213 'bingbot' => 'Bing',
Eric Barnes46fcf0b2011-11-12 12:42:14 -0500214 'slurp' => 'Inktomi Slurp',
215 'yahoo' => 'Yahoo',
216 'askjeeves' => 'AskJeeves',
217 'fastcrawler' => 'FastCrawler',
218 'infoseek' => 'InfoSeek Robot 1.0',
Garth Kerr1bfc1152013-04-03 13:02:21 -0400219 'lycos' => 'Lycos',
220 'yandex' => 'YandexBot'
Eric Barnes46fcf0b2011-11-12 12:42:14 -0500221);
Derek Allard2067d1a2008-11-13 22:59:24 +0000222
223/* End of file user_agents.php */
Andrey Andreev2ecc06c2013-07-17 12:31:11 +0300224/* Location: ./application/config/user_agents.php */