user_agents.php

Go to the documentation of this file.
00001 <?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
00002 /*
00003 | -------------------------------------------------------------------
00004 | USER AGENT TYPES
00005 | -------------------------------------------------------------------
00006 | This file contains four arrays of user agent data.  It is used by the
00007 | User Agent Class to help identify browser, platform, robot, and
00008 | mobile device data.  The array keys are used to identify the device
00009 | and the array values are used to set the actual name of the item.
00010 |
00011 */
00012 
00013 $platforms = array (
00014                                         'windows nt 6.0'        => 'Windows Longhorn',
00015                                         'windows nt 5.2'        => 'Windows 2003',
00016                                         'windows nt 5.0'        => 'Windows 2000',
00017                                         'windows nt 5.1'        => 'Windows XP',
00018                                         'windows nt 4.0'        => 'Windows NT 4.0',
00019                                         'winnt4.0'                      => 'Windows NT 4.0',
00020                                         'winnt 4.0'                     => 'Windows NT',
00021                                         'winnt'                         => 'Windows NT',
00022                                         'windows 98'            => 'Windows 98',
00023                                         'win98'                         => 'Windows 98',
00024                                         'windows 95'            => 'Windows 95',
00025                                         'win95'                         => 'Windows 95',
00026                                         'windows'                       => 'Unknown Windows OS',
00027                                         'os x'                          => 'Mac OS X',
00028                                         'ppc mac'                       => 'Power PC Mac',
00029                                         'freebsd'                       => 'FreeBSD',
00030                                         'ppc'                           => 'Macintosh',
00031                                         'linux'                         => 'Linux',
00032                                         'debian'                        => 'Debian',
00033                                         'sunos'                         => 'Sun Solaris',
00034                                         'beos'                          => 'BeOS',
00035                                         'apachebench'           => 'ApacheBench',
00036                                         'aix'                           => 'AIX',
00037                                         'irix'                          => 'Irix',
00038                                         'osf'                           => 'DEC OSF',
00039                                         'hp-ux'                         => 'HP-UX',
00040                                         'netbsd'                        => 'NetBSD',
00041                                         'bsdi'                          => 'BSDi',
00042                                         'openbsd'                       => 'OpenBSD',
00043                                         'gnu'                           => 'GNU/Linux',
00044                                         'unix'                          => 'Unknown Unix OS'
00045                                 );
00046 
00047 
00048 // The order of this array should NOT be changed. Many browsers return
00049 // multiple browser types so we want to identify the sub-type first.
00050 $browsers = array(
00051                                         'Opera'                         => 'Opera',
00052                                         'MSIE'                          => 'Internet Explorer',
00053                                         'Internet Explorer'     => 'Internet Explorer',
00054                                         'Shiira'                        => 'Shiira',
00055                                         'Firefox'                       => 'Firefox',
00056                                         'Chimera'                       => 'Chimera',
00057                                         'Phoenix'                       => 'Phoenix',
00058                                         'Firebird'                      => 'Firebird',
00059                                         'Camino'                        => 'Camino',
00060                                         'Netscape'                      => 'Netscape',
00061                                         'OmniWeb'                       => 'OmniWeb',
00062                                         'Mozilla'                       => 'Mozilla',
00063                                         'Safari'                        => 'Safari',
00064                                         'Konqueror'                     => 'Konqueror',
00065                                         'icab'                          => 'iCab',
00066                                         'Lynx'                          => 'Lynx',
00067                                         'Links'                         => 'Links',
00068                                         'hotjava'                       => 'HotJava',
00069                                         'amaya'                         => 'Amaya',
00070                                         'IBrowse'                       => 'IBrowse'
00071                                 );
00072 
00073 $mobiles = array(
00074                                         // legacy array, old values commented out
00075                                         'mobileexplorer'        => 'Mobile Explorer',
00076 //                                      'openwave'                      => 'Open Wave',
00077 //                                      'opera mini'            => 'Opera Mini',
00078 //                                      'operamini'                     => 'Opera Mini',
00079 //                                      'elaine'                        => 'Palm',
00080                                         'palmsource'            => 'Palm',
00081 //                                      'digital paths'         => 'Palm',
00082 //                                      'avantgo'                       => 'Avantgo',
00083 //                                      'xiino'                         => 'Xiino',
00084                                         'palmscape'                     => 'Palmscape',
00085 //                                      'nokia'                         => 'Nokia',
00086 //                                      'ericsson'                      => 'Ericsson',
00087 //                                      'blackberry'            => 'BlackBerry',
00088 //                                      'motorola'                      => 'Motorola'
00089                                         
00090                                         // Phones and Manufacturers
00091                                         'motorola'                      => "Motorola",
00092                                         'nokia'                         => "Nokia",
00093                                         'palm'                          => "Palm",
00094                                         'iphone'                        => "Apple iPhone",
00095                                         'ipod'                          => "Apple iPod Touch",
00096                                         'sony'                          => "Sony Ericsson",
00097                                         'ericsson'                      => "Sony Ericsson",
00098                                         'blackberry'            => "BlackBerry",
00099                                         'cocoon'                        => "O2 Cocoon",
00100                                         'blazer'                        => "Treo",
00101                                         'lg'                            => "LG",
00102                                         'amoi'                          => "Amoi",
00103                                         'xda'                           => "XDA",
00104                                         'mda'                           => "MDA",
00105                                         'vario'                         => "Vario",
00106                                         'htc'                           => "HTC",
00107                                         'samsung'                       => "Samsung",
00108                                         'sharp'                         => "Sharp",
00109                                         'sie-'                          => "Siemens",
00110                                         'alcatel'                       => "Alcatel",
00111                                         'benq'                          => "BenQ",
00112                                         'ipaq'                          => "HP iPaq",
00113                                         'mot-'                          => "Motorola",
00114                                         'playstation portable'  => "PlayStation Portable",
00115                                         'hiptop'                        => "Danger Hiptop",
00116                                         'nec-'                          => "NEC",
00117                                         'panasonic'                     => "Panasonic",
00118                                         'philips'                       => "Philips",
00119                                         'sagem'                         => "Sagem",
00120                                         'sanyo'                         => "Sanyo",
00121                                         'spv'                           => "SPV",
00122                                         'zte'                           => "ZTE",
00123                                         'sendo'                         => "Sendo",
00124                                         
00125                                         // Operating Systems
00126                                         'symbian'                               => "Symbian",
00127                                         'elaine'                                => "Palm",
00128                                         'palm'                                  => "Palm",
00129                                         'series60'                              => "Symbian S60",
00130                                         'windows ce'                    => "Windows CE",
00131                                 
00132                                         // Browsers     
00133                                         'obigo'                                 => "Obigo",
00134                                         'netfront'                              => "Netfront Browser",
00135                                         'openwave'                              => "Openwave Browser",
00136                                         'mobilexplorer'                 => "Mobile Explorer",
00137                                         'operamini'                             => "Opera Mini",
00138                                         'opera mini'                    => "Opera Mini",
00139                                 
00140                                         // Other
00141                                         'digital paths'                 => "Digital Paths",
00142                                         'avantgo'                               => "AvantGo",
00143                                         'xiino'                                 => "Xiino",
00144                                         'novarra'                               => "Novarra Transcoder",
00145                                         'vodafone'                              => "Vodafone",
00146                                         'docomo'                                => "NTT DoCoMo",
00147                                         'o2'                                    => "O2",
00148                                 
00149                                         // Fallback
00150                                         'mobile'                                => "Generic Mobile",
00151                                         'wireless'                              => "Generic Mobile",
00152                                         'j2me'                                  => "Generic Mobile",
00153                                         'midp'                                  => "Generic Mobile",
00154                                         'cldc'                                  => "Generic Mobile",
00155                                         'up.link'                               => "Generic Mobile",
00156                                         'up.browser'                    => "Generic Mobile",
00157                                         'smartphone'                    => "Generic Mobile",
00158                                         'cellphone'                             => "Generic Mobile"
00159                                 );
00160 
00161 
00162 /* End of file user_agents.php */
00163 /* Location: ./system/application/config/user_agents.php */