blob: 416ef56795497098f5b84aba33964a652b3e6916 [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
Greg Aker0defe5d2012-01-01 18:46:41 -060021 * @copyright Copyright (c) 2008 - 2012, 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(
Eric Barnes46fcf0b2011-11-12 12:42:14 -050039 'windows nt 6.1' => 'Windows 7',
40 'windows nt 6.0' => 'Windows Vista',
41 'windows nt 5.2' => 'Windows 2003',
42 'windows nt 5.1' => 'Windows XP',
43 'windows nt 5.0' => 'Windows 2000',
44 'windows nt 4.0' => 'Windows NT 4.0',
45 'winnt4.0' => 'Windows NT 4.0',
46 'winnt 4.0' => 'Windows NT',
47 'winnt' => 'Windows NT',
48 'windows 98' => 'Windows 98',
49 'win98' => 'Windows 98',
50 'windows 95' => 'Windows 95',
51 'win95' => 'Windows 95',
52 'windows' => 'Unknown Windows OS',
Andrey Andreevca7d8222012-05-11 10:59:09 +030053 'android' => 'Android',
54 'blackberry' => 'BlackBerry',
55 'iphone' => 'iOS',
56 'ipad' => 'iOS',
57 'ipod' => 'iOS',
Eric Barnes46fcf0b2011-11-12 12:42:14 -050058 'os x' => 'Mac OS X',
59 'ppc mac' => 'Power PC Mac',
60 'freebsd' => 'FreeBSD',
61 'ppc' => 'Macintosh',
62 'linux' => 'Linux',
63 'debian' => 'Debian',
64 'sunos' => 'Sun Solaris',
65 'beos' => 'BeOS',
66 'apachebench' => 'ApacheBench',
67 'aix' => 'AIX',
68 'irix' => 'Irix',
69 'osf' => 'DEC OSF',
70 'hp-ux' => 'HP-UX',
71 'netbsd' => 'NetBSD',
72 'bsdi' => 'BSDi',
73 'openbsd' => 'OpenBSD',
74 'gnu' => 'GNU/Linux',
75 'unix' => 'Unknown Unix OS'
76);
Derek Allard2067d1a2008-11-13 22:59:24 +000077
78
79// The order of this array should NOT be changed. Many browsers return
80// multiple browser types so we want to identify the sub-type first.
81$browsers = array(
Eric Barnes46fcf0b2011-11-12 12:42:14 -050082 'Flock' => 'Flock',
83 'Chrome' => 'Chrome',
84 'Opera' => 'Opera',
85 'MSIE' => 'Internet Explorer',
86 'Internet Explorer' => 'Internet Explorer',
87 'Shiira' => 'Shiira',
88 'Firefox' => 'Firefox',
89 'Chimera' => 'Chimera',
90 'Phoenix' => 'Phoenix',
91 'Firebird' => 'Firebird',
92 'Camino' => 'Camino',
93 'Netscape' => 'Netscape',
94 'OmniWeb' => 'OmniWeb',
95 'Safari' => 'Safari',
96 'Mozilla' => 'Mozilla',
97 'Konqueror' => 'Konqueror',
98 'icab' => 'iCab',
99 'Lynx' => 'Lynx',
100 'Links' => 'Links',
101 'hotjava' => 'HotJava',
102 'amaya' => 'Amaya',
103 'IBrowse' => 'IBrowse'
104);
Derek Allard2067d1a2008-11-13 22:59:24 +0000105
106$mobiles = array(
Eric Barnes46fcf0b2011-11-12 12:42:14 -0500107 // legacy array, old values commented out
108 'mobileexplorer' => 'Mobile Explorer',
109// 'openwave' => 'Open Wave',
110// 'opera mini' => 'Opera Mini',
111// 'operamini' => 'Opera Mini',
112// 'elaine' => 'Palm',
113 'palmsource' => 'Palm',
114// 'digital paths' => 'Palm',
115// 'avantgo' => 'Avantgo',
116// 'xiino' => 'Xiino',
117 'palmscape' => 'Palmscape',
118// 'nokia' => 'Nokia',
119// 'ericsson' => 'Ericsson',
120// 'blackberry' => 'BlackBerry',
121// 'motorola' => 'Motorola'
Derek Allard2067d1a2008-11-13 22:59:24 +0000122
Eric Barnes46fcf0b2011-11-12 12:42:14 -0500123 // Phones and Manufacturers
Andrey Andreevca7d8222012-05-11 10:59:09 +0300124 'motorola' => 'Motorola',
125 'nokia' => 'Nokia',
126 'palm' => 'Palm',
127 'iphone' => 'Apple iPhone',
128 'ipad' => 'iPad',
129 'ipod' => 'Apple iPod Touch',
130 'sony' => 'Sony Ericsson',
131 'ericsson' => 'Sony Ericsson',
132 'blackberry' => 'BlackBerry',
133 'cocoon' => 'O2 Cocoon',
134 'blazer' => 'Treo',
135 'lg' => 'LG',
136 'amoi' => 'Amoi',
137 'xda' => 'XDA',
138 'mda' => 'MDA',
139 'vario' => 'Vario',
140 'htc' => 'HTC',
141 'samsung' => 'Samsung',
142 'sharp' => 'Sharp',
143 'sie-' => 'Siemens',
144 'alcatel' => 'Alcatel',
145 'benq' => 'BenQ',
146 'ipaq' => 'HP iPaq',
147 'mot-' => 'Motorola',
148 'playstation portable' => 'PlayStation Portable',
149 'hiptop' => 'Danger Hiptop',
150 'nec-' => 'NEC',
151 'panasonic' => 'Panasonic',
152 'philips' => 'Philips',
153 'sagem' => 'Sagem',
154 'sanyo' => 'Sanyo',
155 'spv' => 'SPV',
156 'zte' => 'ZTE',
157 'sendo' => 'Sendo',
158 'dsi' => 'Nintendo DSi',
159 'ds' => 'Nintendo DS',
160 'wii' => 'Nintendo Wii',
161 '3ds' => 'Nintendo 3DS',
162 'open web' => 'Open Web',
163 'openweb' => 'OpenWeb',
Bo-Yi Wuf22f8522011-11-12 15:23:04 +0800164
Eric Barnes46fcf0b2011-11-12 12:42:14 -0500165 // Operating Systems
Andrey Andreevca7d8222012-05-11 10:59:09 +0300166 'android' => 'Android',
167 'symbian' => 'Symbian',
168 'SymbianOS' => 'SymbianOS',
169 'elaine' => 'Palm',
Andrey Andreevca7d8222012-05-11 10:59:09 +0300170 'series60' => 'Symbian S60',
171 'windows ce' => 'Windows CE',
Derek Allard2067d1a2008-11-13 22:59:24 +0000172
Eric Barnes46fcf0b2011-11-12 12:42:14 -0500173 // Browsers
Andrey Andreevca7d8222012-05-11 10:59:09 +0300174 'obigo' => 'Obigo',
175 'netfront' => 'Netfront Browser',
176 'openwave' => 'Openwave Browser',
177 'mobilexplorer' => 'Mobile Explorer',
178 'operamini' => 'Opera Mini',
179 'opera mini' => 'Opera Mini',
180 'opera mobi' => 'Opera Mobile',
Andrey Andreevd4901392012-06-06 14:54:15 +0300181 'fennec' => 'Firefox Mobile',
Derek Allard2067d1a2008-11-13 22:59:24 +0000182
Eric Barnes46fcf0b2011-11-12 12:42:14 -0500183 // Other
Andrey Andreevca7d8222012-05-11 10:59:09 +0300184 'digital paths' => 'Digital Paths',
185 'avantgo' => 'AvantGo',
186 'xiino' => 'Xiino',
187 'novarra' => 'Novarra Transcoder',
188 'vodafone' => 'Vodafone',
189 'docomo' => 'NTT DoCoMo',
190 'o2' => 'O2',
Derek Allard2067d1a2008-11-13 22:59:24 +0000191
Eric Barnes46fcf0b2011-11-12 12:42:14 -0500192 // Fallback
Andrey Andreevca7d8222012-05-11 10:59:09 +0300193 'mobile' => 'Generic Mobile',
194 'wireless' => 'Generic Mobile',
195 'j2me' => 'Generic Mobile',
196 'midp' => 'Generic Mobile',
197 'cldc' => 'Generic Mobile',
198 'up.link' => 'Generic Mobile',
199 'up.browser' => 'Generic Mobile',
200 'smartphone' => 'Generic Mobile',
201 'cellphone' => 'Generic Mobile'
Eric Barnes46fcf0b2011-11-12 12:42:14 -0500202);
Derek Allard2067d1a2008-11-13 22:59:24 +0000203
204// There are hundreds of bots but these are the most common.
205$robots = array(
Eric Barnes46fcf0b2011-11-12 12:42:14 -0500206 'googlebot' => 'Googlebot',
207 'msnbot' => 'MSNBot',
Andrew Seymour00cfbd22011-11-12 21:18:07 +0000208 'bingbot' => 'Bing',
Eric Barnes46fcf0b2011-11-12 12:42:14 -0500209 'slurp' => 'Inktomi Slurp',
210 'yahoo' => 'Yahoo',
211 'askjeeves' => 'AskJeeves',
212 'fastcrawler' => 'FastCrawler',
213 'infoseek' => 'InfoSeek Robot 1.0',
214 'lycos' => 'Lycos'
215);
Derek Allard2067d1a2008-11-13 22:59:24 +0000216
217/* End of file user_agents.php */
Andrey Andreeve734b382012-03-26 13:42:36 +0300218/* Location: ./application/config/user_agents.php */