blob: 72d74dbc75dfe5375d1e2b24ed49146f1e038dd9 [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| -------------------------------------------------------------------
Derek Jones4b9c6292011-07-01 17:40:48 -050032| 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
Derek Jones4b9c6292011-07-01 17:40:48 -050034| 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.
36|
37*/
38
Andrey Andreevca7d8222012-05-11 10:59:09 +030039$platforms = array(
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',
104 'IBrowse' => 'IBrowse'
105);
Derek Allard2067d1a2008-11-13 22:59:24 +0000106
107$mobiles = array(
Eric Barnes46fcf0b2011-11-12 12:42:14 -0500108 // legacy array, old values commented out
109 'mobileexplorer' => 'Mobile Explorer',
110// 'openwave' => 'Open Wave',
111// 'opera mini' => 'Opera Mini',
112// 'operamini' => 'Opera Mini',
113// 'elaine' => 'Palm',
114 'palmsource' => 'Palm',
115// 'digital paths' => 'Palm',
116// 'avantgo' => 'Avantgo',
117// 'xiino' => 'Xiino',
118 'palmscape' => 'Palmscape',
119// 'nokia' => 'Nokia',
120// 'ericsson' => 'Ericsson',
121// 'blackberry' => 'BlackBerry',
122// 'motorola' => 'Motorola'
Derek Allard2067d1a2008-11-13 22:59:24 +0000123
Eric Barnes46fcf0b2011-11-12 12:42:14 -0500124 // Phones and Manufacturers
Andrey Andreevca7d8222012-05-11 10:59:09 +0300125 'motorola' => 'Motorola',
126 'nokia' => 'Nokia',
127 'palm' => 'Palm',
128 'iphone' => 'Apple iPhone',
129 'ipad' => 'iPad',
130 'ipod' => 'Apple iPod Touch',
131 'sony' => 'Sony Ericsson',
132 'ericsson' => 'Sony Ericsson',
133 'blackberry' => 'BlackBerry',
134 'cocoon' => 'O2 Cocoon',
135 'blazer' => 'Treo',
136 'lg' => 'LG',
137 'amoi' => 'Amoi',
138 'xda' => 'XDA',
139 'mda' => 'MDA',
140 'vario' => 'Vario',
141 'htc' => 'HTC',
142 'samsung' => 'Samsung',
143 'sharp' => 'Sharp',
144 'sie-' => 'Siemens',
145 'alcatel' => 'Alcatel',
146 'benq' => 'BenQ',
147 'ipaq' => 'HP iPaq',
148 'mot-' => 'Motorola',
149 'playstation portable' => 'PlayStation Portable',
150 'hiptop' => 'Danger Hiptop',
151 'nec-' => 'NEC',
152 'panasonic' => 'Panasonic',
153 'philips' => 'Philips',
154 'sagem' => 'Sagem',
155 'sanyo' => 'Sanyo',
156 'spv' => 'SPV',
157 'zte' => 'ZTE',
158 'sendo' => 'Sendo',
159 'dsi' => 'Nintendo DSi',
160 'ds' => 'Nintendo DS',
161 'wii' => 'Nintendo Wii',
162 '3ds' => 'Nintendo 3DS',
163 'open web' => 'Open Web',
164 'openweb' => 'OpenWeb',
Bo-Yi Wuf22f8522011-11-12 15:23:04 +0800165
Eric Barnes46fcf0b2011-11-12 12:42:14 -0500166 // Operating Systems
Andrey Andreevca7d8222012-05-11 10:59:09 +0300167 'android' => 'Android',
168 'symbian' => 'Symbian',
169 'SymbianOS' => 'SymbianOS',
170 'elaine' => 'Palm',
171 'palm' => 'Palm',
172 'series60' => 'Symbian S60',
173 'windows ce' => 'Windows CE',
Derek Allard2067d1a2008-11-13 22:59:24 +0000174
Eric Barnes46fcf0b2011-11-12 12:42:14 -0500175 // Browsers
Andrey Andreevca7d8222012-05-11 10:59:09 +0300176 'obigo' => 'Obigo',
177 'netfront' => 'Netfront Browser',
178 'openwave' => 'Openwave Browser',
179 'mobilexplorer' => 'Mobile Explorer',
180 'operamini' => 'Opera Mini',
181 'opera mini' => 'Opera Mini',
182 'opera mobi' => 'Opera Mobile',
Derek Allard2067d1a2008-11-13 22:59:24 +0000183
Eric Barnes46fcf0b2011-11-12 12:42:14 -0500184 // Other
Andrey Andreevca7d8222012-05-11 10:59:09 +0300185 'digital paths' => 'Digital Paths',
186 'avantgo' => 'AvantGo',
187 'xiino' => 'Xiino',
188 'novarra' => 'Novarra Transcoder',
189 'vodafone' => 'Vodafone',
190 'docomo' => 'NTT DoCoMo',
191 'o2' => 'O2',
Derek Allard2067d1a2008-11-13 22:59:24 +0000192
Eric Barnes46fcf0b2011-11-12 12:42:14 -0500193 // Fallback
Andrey Andreevca7d8222012-05-11 10:59:09 +0300194 'mobile' => 'Generic Mobile',
195 'wireless' => 'Generic Mobile',
196 'j2me' => 'Generic Mobile',
197 'midp' => 'Generic Mobile',
198 'cldc' => 'Generic Mobile',
199 'up.link' => 'Generic Mobile',
200 'up.browser' => 'Generic Mobile',
201 'smartphone' => 'Generic Mobile',
202 'cellphone' => 'Generic Mobile'
Eric Barnes46fcf0b2011-11-12 12:42:14 -0500203);
Derek Allard2067d1a2008-11-13 22:59:24 +0000204
205// There are hundreds of bots but these are the most common.
206$robots = array(
Eric Barnes46fcf0b2011-11-12 12:42:14 -0500207 'googlebot' => 'Googlebot',
208 'msnbot' => 'MSNBot',
Andrew Seymour00cfbd22011-11-12 21:18:07 +0000209 'bingbot' => 'Bing',
Eric Barnes46fcf0b2011-11-12 12:42:14 -0500210 'slurp' => 'Inktomi Slurp',
211 'yahoo' => 'Yahoo',
212 'askjeeves' => 'AskJeeves',
213 'fastcrawler' => 'FastCrawler',
214 'infoseek' => 'InfoSeek Robot 1.0',
215 'lycos' => 'Lycos'
216);
Derek Allard2067d1a2008-11-13 22:59:24 +0000217
218/* End of file user_agents.php */
Andrey Andreeve734b382012-03-26 13:42:36 +0300219/* Location: ./application/config/user_agents.php */