blob: 69b91fff518d240f68150147b2fd1fc97d593f38 [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',
79 'unix' => 'Unknown Unix OS'
80);
Derek Allard2067d1a2008-11-13 22:59:24 +000081
82
83// The order of this array should NOT be changed. Many browsers return
84// multiple browser types so we want to identify the sub-type first.
85$browsers = array(
Jcchemin02410502013-10-08 18:18:54 +020086 'OPR' => 'Opera',
Eric Barnes46fcf0b2011-11-12 12:42:14 -050087 'Flock' => 'Flock',
88 'Chrome' => 'Chrome',
Andrey Andreev10925d22014-01-09 00:16:46 +020089 // Opera 10+ always reports Opera/9.80 and appends Version/<real version> to the user agent string
90 'Opera.*?Version' => 'Opera',
Eric Barnes46fcf0b2011-11-12 12:42:14 -050091 'Opera' => 'Opera',
92 'MSIE' => 'Internet Explorer',
93 'Internet Explorer' => 'Internet Explorer',
Dionysis Arvanitis2cdd50e2014-01-15 16:24:15 +020094 'Trident.* rv' => 'Internet Explorer',
Eric Barnes46fcf0b2011-11-12 12:42:14 -050095 'Shiira' => 'Shiira',
96 'Firefox' => 'Firefox',
97 'Chimera' => 'Chimera',
98 'Phoenix' => 'Phoenix',
99 'Firebird' => 'Firebird',
100 'Camino' => 'Camino',
101 'Netscape' => 'Netscape',
102 'OmniWeb' => 'OmniWeb',
103 'Safari' => 'Safari',
104 'Mozilla' => 'Mozilla',
105 'Konqueror' => 'Konqueror',
106 'icab' => 'iCab',
107 'Lynx' => 'Lynx',
108 'Links' => 'Links',
109 'hotjava' => 'HotJava',
110 'amaya' => 'Amaya',
Andrey Andreev3ffce982013-01-21 15:24:09 +0200111 'IBrowse' => 'IBrowse',
vkeranovfdd14612013-11-08 09:19:29 +0200112 'Maxthon' => 'Maxthon',
113 'Ubuntu' => 'Ubuntu Web Browser'
Eric Barnes46fcf0b2011-11-12 12:42:14 -0500114);
Derek Allard2067d1a2008-11-13 22:59:24 +0000115
116$mobiles = array(
Eric Barnes46fcf0b2011-11-12 12:42:14 -0500117 // legacy array, old values commented out
118 'mobileexplorer' => 'Mobile Explorer',
119// 'openwave' => 'Open Wave',
120// 'opera mini' => 'Opera Mini',
121// 'operamini' => 'Opera Mini',
122// 'elaine' => 'Palm',
123 'palmsource' => 'Palm',
124// 'digital paths' => 'Palm',
125// 'avantgo' => 'Avantgo',
126// 'xiino' => 'Xiino',
127 'palmscape' => 'Palmscape',
128// 'nokia' => 'Nokia',
129// 'ericsson' => 'Ericsson',
130// 'blackberry' => 'BlackBerry',
131// 'motorola' => 'Motorola'
Derek Allard2067d1a2008-11-13 22:59:24 +0000132
Eric Barnes46fcf0b2011-11-12 12:42:14 -0500133 // Phones and Manufacturers
Andrey Andreevca7d8222012-05-11 10:59:09 +0300134 'motorola' => 'Motorola',
135 'nokia' => 'Nokia',
136 'palm' => 'Palm',
137 'iphone' => 'Apple iPhone',
138 'ipad' => 'iPad',
139 'ipod' => 'Apple iPod Touch',
140 'sony' => 'Sony Ericsson',
141 'ericsson' => 'Sony Ericsson',
142 'blackberry' => 'BlackBerry',
143 'cocoon' => 'O2 Cocoon',
144 'blazer' => 'Treo',
145 'lg' => 'LG',
146 'amoi' => 'Amoi',
147 'xda' => 'XDA',
148 'mda' => 'MDA',
149 'vario' => 'Vario',
150 'htc' => 'HTC',
151 'samsung' => 'Samsung',
152 'sharp' => 'Sharp',
153 'sie-' => 'Siemens',
154 'alcatel' => 'Alcatel',
155 'benq' => 'BenQ',
156 'ipaq' => 'HP iPaq',
157 'mot-' => 'Motorola',
158 'playstation portable' => 'PlayStation Portable',
Debeet9defe902012-07-25 17:32:11 +0300159 'playstation 3' => 'PlayStation 3',
TheDragonSlayer2e746812013-03-30 09:50:27 -0300160 'playstation vita' => 'PlayStation Vita',
Andrey Andreevca7d8222012-05-11 10:59:09 +0300161 'hiptop' => 'Danger Hiptop',
162 'nec-' => 'NEC',
163 'panasonic' => 'Panasonic',
164 'philips' => 'Philips',
165 'sagem' => 'Sagem',
166 'sanyo' => 'Sanyo',
167 'spv' => 'SPV',
168 'zte' => 'ZTE',
169 'sendo' => 'Sendo',
Eric Roberts19d0f562012-08-11 19:53:59 -0500170 'nintendo dsi' => 'Nintendo DSi',
171 'nintendo ds' => 'Nintendo DS',
172 'nintendo 3ds' => 'Nintendo 3DS',
Andrey Andreevca7d8222012-05-11 10:59:09 +0300173 'wii' => 'Nintendo Wii',
Andrey Andreevca7d8222012-05-11 10:59:09 +0300174 'open web' => 'Open Web',
175 'openweb' => 'OpenWeb',
Bo-Yi Wuf22f8522011-11-12 15:23:04 +0800176
Eric Barnes46fcf0b2011-11-12 12:42:14 -0500177 // Operating Systems
Andrey Andreevca7d8222012-05-11 10:59:09 +0300178 'android' => 'Android',
179 'symbian' => 'Symbian',
180 'SymbianOS' => 'SymbianOS',
181 'elaine' => 'Palm',
Andrey Andreevca7d8222012-05-11 10:59:09 +0300182 'series60' => 'Symbian S60',
183 'windows ce' => 'Windows CE',
Derek Allard2067d1a2008-11-13 22:59:24 +0000184
Eric Barnes46fcf0b2011-11-12 12:42:14 -0500185 // Browsers
Andrey Andreevca7d8222012-05-11 10:59:09 +0300186 'obigo' => 'Obigo',
187 'netfront' => 'Netfront Browser',
188 'openwave' => 'Openwave Browser',
189 'mobilexplorer' => 'Mobile Explorer',
190 'operamini' => 'Opera Mini',
191 'opera mini' => 'Opera Mini',
192 'opera mobi' => 'Opera Mobile',
vlakoffc941d852013-08-06 14:44:40 +0200193 'fennec' => 'Firefox Mobile',
Derek Allard2067d1a2008-11-13 22:59:24 +0000194
Eric Barnes46fcf0b2011-11-12 12:42:14 -0500195 // Other
Andrey Andreevca7d8222012-05-11 10:59:09 +0300196 'digital paths' => 'Digital Paths',
197 'avantgo' => 'AvantGo',
198 'xiino' => 'Xiino',
199 'novarra' => 'Novarra Transcoder',
200 'vodafone' => 'Vodafone',
201 'docomo' => 'NTT DoCoMo',
202 'o2' => 'O2',
Derek Allard2067d1a2008-11-13 22:59:24 +0000203
Eric Barnes46fcf0b2011-11-12 12:42:14 -0500204 // Fallback
Andrey Andreevca7d8222012-05-11 10:59:09 +0300205 'mobile' => 'Generic Mobile',
206 'wireless' => 'Generic Mobile',
207 'j2me' => 'Generic Mobile',
208 'midp' => 'Generic Mobile',
209 'cldc' => 'Generic Mobile',
210 'up.link' => 'Generic Mobile',
211 'up.browser' => 'Generic Mobile',
212 'smartphone' => 'Generic Mobile',
213 'cellphone' => 'Generic Mobile'
Eric Barnes46fcf0b2011-11-12 12:42:14 -0500214);
Derek Allard2067d1a2008-11-13 22:59:24 +0000215
216// There are hundreds of bots but these are the most common.
217$robots = array(
Eric Barnes46fcf0b2011-11-12 12:42:14 -0500218 'googlebot' => 'Googlebot',
219 'msnbot' => 'MSNBot',
Garth Kerr1bfc1152013-04-03 13:02:21 -0400220 'baiduspider' => 'Baiduspider',
Andrew Seymour00cfbd22011-11-12 21:18:07 +0000221 'bingbot' => 'Bing',
Eric Barnes46fcf0b2011-11-12 12:42:14 -0500222 'slurp' => 'Inktomi Slurp',
223 'yahoo' => 'Yahoo',
224 'askjeeves' => 'AskJeeves',
225 'fastcrawler' => 'FastCrawler',
226 'infoseek' => 'InfoSeek Robot 1.0',
Garth Kerr1bfc1152013-04-03 13:02:21 -0400227 'lycos' => 'Lycos',
228 'yandex' => 'YandexBot'
Eric Barnes46fcf0b2011-11-12 12:42:14 -0500229);
Derek Allard2067d1a2008-11-13 22:59:24 +0000230
231/* End of file user_agents.php */
Andrey Andreeva6eae872014-01-03 18:25:20 +0200232/* Location: ./application/config/user_agents.php */