Take two:
[www-register-wizard.git] / application / config / user_agents.php
1 <?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');\r
2 /*\r
3 | -------------------------------------------------------------------\r
4 | USER AGENT TYPES\r
5 | -------------------------------------------------------------------\r
6 | This file contains four arrays of user agent data.  It is used by the\r
7 | User Agent Class to help identify browser, platform, robot, and\r
8 | mobile device data.  The array keys are used to identify the device\r
9 | and the array values are used to set the actual name of the item.\r
10 |\r
11 */\r
12 \r
13 $platforms = array (\r
14                                         'windows nt 6.0'        => 'Windows Longhorn',\r
15                                         'windows nt 5.2'        => 'Windows 2003',\r
16                                         'windows nt 5.0'        => 'Windows 2000',\r
17                                         'windows nt 5.1'        => 'Windows XP',\r
18                                         'windows nt 4.0'        => 'Windows NT 4.0',\r
19                                         'winnt4.0'                      => 'Windows NT 4.0',\r
20                                         'winnt 4.0'                     => 'Windows NT',\r
21                                         'winnt'                         => 'Windows NT',\r
22                                         'windows 98'            => 'Windows 98',\r
23                                         'win98'                         => 'Windows 98',\r
24                                         'windows 95'            => 'Windows 95',\r
25                                         'win95'                         => 'Windows 95',\r
26                                         'windows'                       => 'Unknown Windows OS',\r
27                                         'os x'                          => 'Mac OS X',\r
28                                         'ppc mac'                       => 'Power PC Mac',\r
29                                         'freebsd'                       => 'FreeBSD',\r
30                                         'ppc'                           => 'Macintosh',\r
31                                         'linux'                         => 'Linux',\r
32                                         'debian'                        => 'Debian',\r
33                                         'sunos'                         => 'Sun Solaris',\r
34                                         'beos'                          => 'BeOS',\r
35                                         'apachebench'           => 'ApacheBench',\r
36                                         'aix'                           => 'AIX',\r
37                                         'irix'                          => 'Irix',\r
38                                         'osf'                           => 'DEC OSF',\r
39                                         'hp-ux'                         => 'HP-UX',\r
40                                         'netbsd'                        => 'NetBSD',\r
41                                         'bsdi'                          => 'BSDi',\r
42                                         'openbsd'                       => 'OpenBSD',\r
43                                         'gnu'                           => 'GNU/Linux',\r
44                                         'unix'                          => 'Unknown Unix OS'\r
45                                 );\r
46 \r
47 \r
48 // The order of this array should NOT be changed. Many browsers return\r
49 // multiple browser types so we want to identify the sub-type first.\r
50 $browsers = array(\r
51                                         'Opera'                         => 'Opera',\r
52                                         'MSIE'                          => 'Internet Explorer',\r
53                                         'Internet Explorer'     => 'Internet Explorer',\r
54                                         'Shiira'                        => 'Shiira',\r
55                                         'Firefox'                       => 'Firefox',\r
56                                         'Chimera'                       => 'Chimera',\r
57                                         'Phoenix'                       => 'Phoenix',\r
58                                         'Firebird'                      => 'Firebird',\r
59                                         'Camino'                        => 'Camino',\r
60                                         'Netscape'                      => 'Netscape',\r
61                                         'OmniWeb'                       => 'OmniWeb',\r
62                                         'Mozilla'                       => 'Mozilla',\r
63                                         'Safari'                        => 'Safari',\r
64                                         'Konqueror'                     => 'Konqueror',\r
65                                         'icab'                          => 'iCab',\r
66                                         'Lynx'                          => 'Lynx',\r
67                                         'Links'                         => 'Links',\r
68                                         'hotjava'                       => 'HotJava',\r
69                                         'amaya'                         => 'Amaya',\r
70                                         'IBrowse'                       => 'IBrowse'\r
71                                 );\r
72 \r
73 $mobiles = array(\r
74                                         // legacy array, old values commented out\r
75                                         'mobileexplorer'        => 'Mobile Explorer',\r
76 //                                      'openwave'                      => 'Open Wave',\r
77 //                                      'opera mini'            => 'Opera Mini',\r
78 //                                      'operamini'                     => 'Opera Mini',\r
79 //                                      'elaine'                        => 'Palm',\r
80                                         'palmsource'            => 'Palm',\r
81 //                                      'digital paths'         => 'Palm',\r
82 //                                      'avantgo'                       => 'Avantgo',\r
83 //                                      'xiino'                         => 'Xiino',\r
84                                         'palmscape'                     => 'Palmscape',\r
85 //                                      'nokia'                         => 'Nokia',\r
86 //                                      'ericsson'                      => 'Ericsson',\r
87 //                                      'blackberry'            => 'BlackBerry',\r
88 //                                      'motorola'                      => 'Motorola'\r
89                                         \r
90                                         // Phones and Manufacturers\r
91                                         'motorola'                      => "Motorola",\r
92                                         'nokia'                         => "Nokia",\r
93                                         'palm'                          => "Palm",\r
94                                         'iphone'                        => "Apple iPhone",\r
95                                         'ipod'                          => "Apple iPod Touch",\r
96                                         'sony'                          => "Sony Ericsson",\r
97                                         'ericsson'                      => "Sony Ericsson",\r
98                                         'blackberry'            => "BlackBerry",\r
99                                         'cocoon'                        => "O2 Cocoon",\r
100                                         'blazer'                        => "Treo",\r
101                                         'lg'                            => "LG",\r
102                                         'amoi'                          => "Amoi",\r
103                                         'xda'                           => "XDA",\r
104                                         'mda'                           => "MDA",\r
105                                         'vario'                         => "Vario",\r
106                                         'htc'                           => "HTC",\r
107                                         'samsung'                       => "Samsung",\r
108                                         'sharp'                         => "Sharp",\r
109                                         'sie-'                          => "Siemens",\r
110                                         'alcatel'                       => "Alcatel",\r
111                                         'benq'                          => "BenQ",\r
112                                         'ipaq'                          => "HP iPaq",\r
113                                         'mot-'                          => "Motorola",\r
114                                         'playstation portable'  => "PlayStation Portable",\r
115                                         'hiptop'                        => "Danger Hiptop",\r
116                                         'nec-'                          => "NEC",\r
117                                         'panasonic'                     => "Panasonic",\r
118                                         'philips'                       => "Philips",\r
119                                         'sagem'                         => "Sagem",\r
120                                         'sanyo'                         => "Sanyo",\r
121                                         'spv'                           => "SPV",\r
122                                         'zte'                           => "ZTE",\r
123                                         'sendo'                         => "Sendo",\r
124                                         \r
125                                         // Operating Systems\r
126                                         'symbian'                               => "Symbian",\r
127                                         'SymbianOS'                             => "SymbianOS", \r
128                                         'elaine'                                => "Palm",\r
129                                         'palm'                                  => "Palm",\r
130                                         'series60'                              => "Symbian S60",\r
131                                         'windows ce'                    => "Windows CE",\r
132                                 \r
133                                         // Browsers     \r
134                                         'obigo'                                 => "Obigo",\r
135                                         'netfront'                              => "Netfront Browser",\r
136                                         'openwave'                              => "Openwave Browser",\r
137                                         'mobilexplorer'                 => "Mobile Explorer",\r
138                                         'operamini'                             => "Opera Mini",\r
139                                         'opera mini'                    => "Opera Mini",\r
140                                 \r
141                                         // Other\r
142                                         'digital paths'                 => "Digital Paths",\r
143                                         'avantgo'                               => "AvantGo",\r
144                                         'xiino'                                 => "Xiino",\r
145                                         'novarra'                               => "Novarra Transcoder",\r
146                                         'vodafone'                              => "Vodafone",\r
147                                         'docomo'                                => "NTT DoCoMo",\r
148                                         'o2'                                    => "O2",\r
149                                 \r
150                                         // Fallback\r
151                                         'mobile'                                => "Generic Mobile",\r
152                                         'wireless'                              => "Generic Mobile",\r
153                                         'j2me'                                  => "Generic Mobile",\r
154                                         'midp'                                  => "Generic Mobile",\r
155                                         'cldc'                                  => "Generic Mobile",\r
156                                         'up.link'                               => "Generic Mobile",\r
157                                         'up.browser'                    => "Generic Mobile",\r
158                                         'smartphone'                    => "Generic Mobile",\r
159                                         'cellphone'                             => "Generic Mobile"\r
160                                 );\r
161 \r
162 // There are hundreds of bots but these are the most common.\r
163 $robots = array(\r
164                                         'googlebot'                     => 'Googlebot',\r
165                                         'msnbot'                        => 'MSNBot',\r
166                                         'slurp'                         => 'Inktomi Slurp',\r
167                                         'yahoo'                         => 'Yahoo',\r
168                                         'askjeeves'                     => 'AskJeeves',\r
169                                         'fastcrawler'           => 'FastCrawler',\r
170                                         'infoseek'                      => 'InfoSeek Robot 1.0',\r
171                                         'lycos'                         => 'Lycos'\r
172                                 );\r
173 \r
174 /* End of file user_agents.php */\r
175 /* Location: ./system/application/config/user_agents.php */