Derek Jones | 4b9c629 | 2011-07-01 17:40:48 -0500 | [diff] [blame] | 1 | <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); |
Derek Jones | f4a4bd8 | 2011-10-20 12:18:42 -0500 | [diff] [blame] | 2 | /** |
| 3 | * CodeIgniter |
| 4 | * |
| 5 | * An open source application development framework for PHP 5.1.6 or newer |
| 6 | * |
| 7 | * NOTICE OF LICENSE |
| 8 | * |
| 9 | * Licensed under the Academic Free License version 3.0 |
| 10 | * |
Derek Jones | 61df906 | 2011-10-21 09:55:40 -0500 | [diff] [blame] | 11 | * This source file is subject to the Academic Free License (AFL 3.0) that is |
Derek Jones | f4a4bd8 | 2011-10-20 12:18:42 -0500 | [diff] [blame] | 12 | * 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 |
| 21 | * @copyright Copyright (c) 2008 - 2011, EllisLab, Inc. (http://ellislab.com/) |
| 22 | * @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 Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 28 | /* |
| 29 | | ------------------------------------------------------------------- |
| 30 | | USER AGENT TYPES |
| 31 | | ------------------------------------------------------------------- |
Derek Jones | 4b9c629 | 2011-07-01 17:40:48 -0500 | [diff] [blame] | 32 | | This file contains four arrays of user agent data. It is used by the |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 33 | | User Agent Class to help identify browser, platform, robot, and |
Derek Jones | 4b9c629 | 2011-07-01 17:40:48 -0500 | [diff] [blame] | 34 | | mobile device data. The array keys are used to identify the device |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 35 | | and the array values are used to set the actual name of the item. |
| 36 | | |
| 37 | */ |
| 38 | |
| 39 | $platforms = array ( |
mmestrovic | 995af49 | 2011-08-31 17:25:27 +0300 | [diff] [blame] | 40 | 'windows nt 6.1' => 'Windows 7', |
| 41 | 'windows nt 6.0' => 'Windows Vista', |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 42 | 'windows nt 5.2' => 'Windows 2003', |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 43 | 'windows nt 5.1' => 'Windows XP', |
mmestrovic | 995af49 | 2011-08-31 17:25:27 +0300 | [diff] [blame] | 44 | 'windows nt 5.0' => 'Windows 2000', |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 45 | 'windows nt 4.0' => 'Windows NT 4.0', |
mmestrovic | 995af49 | 2011-08-31 17:25:27 +0300 | [diff] [blame] | 46 | 'winnt4.0' => 'Windows NT 4.0', |
| 47 | 'winnt 4.0' => 'Windows NT', |
| 48 | 'winnt' => 'Windows NT', |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 49 | 'windows 98' => 'Windows 98', |
mmestrovic | 995af49 | 2011-08-31 17:25:27 +0300 | [diff] [blame] | 50 | 'win98' => 'Windows 98', |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 51 | 'windows 95' => 'Windows 95', |
mmestrovic | 995af49 | 2011-08-31 17:25:27 +0300 | [diff] [blame] | 52 | 'win95' => 'Windows 95', |
| 53 | 'windows' => 'Unknown Windows OS', |
| 54 | 'os x' => 'Mac OS X', |
| 55 | 'ppc mac' => 'Power PC Mac', |
| 56 | 'freebsd' => 'FreeBSD', |
| 57 | 'ppc' => 'Macintosh', |
| 58 | 'linux' => 'Linux', |
| 59 | 'debian' => 'Debian', |
| 60 | 'sunos' => 'Sun Solaris', |
| 61 | 'beos' => 'BeOS', |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 62 | 'apachebench' => 'ApacheBench', |
mmestrovic | 995af49 | 2011-08-31 17:25:27 +0300 | [diff] [blame] | 63 | 'aix' => 'AIX', |
| 64 | 'irix' => 'Irix', |
| 65 | 'osf' => 'DEC OSF', |
| 66 | 'hp-ux' => 'HP-UX', |
| 67 | 'netbsd' => 'NetBSD', |
| 68 | 'bsdi' => 'BSDi', |
| 69 | 'openbsd' => 'OpenBSD', |
| 70 | 'gnu' => 'GNU/Linux', |
| 71 | 'unix' => 'Unknown Unix OS' |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 72 | ); |
| 73 | |
| 74 | |
| 75 | // The order of this array should NOT be changed. Many browsers return |
| 76 | // multiple browser types so we want to identify the sub-type first. |
| 77 | $browsers = array( |
mmestrovic | 995af49 | 2011-08-31 17:25:27 +0300 | [diff] [blame] | 78 | 'Flock' => 'Flock', |
| 79 | 'Chrome' => 'Chrome', |
| 80 | 'Opera' => 'Opera', |
| 81 | 'MSIE' => 'Internet Explorer', |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 82 | 'Internet Explorer' => 'Internet Explorer', |
mmestrovic | 995af49 | 2011-08-31 17:25:27 +0300 | [diff] [blame] | 83 | 'Shiira' => 'Shiira', |
| 84 | 'Firefox' => 'Firefox', |
| 85 | 'Chimera' => 'Chimera', |
| 86 | 'Phoenix' => 'Phoenix', |
| 87 | 'Firebird' => 'Firebird', |
| 88 | 'Camino' => 'Camino', |
| 89 | 'Netscape' => 'Netscape', |
| 90 | 'OmniWeb' => 'OmniWeb', |
| 91 | 'Safari' => 'Safari', |
| 92 | 'Mozilla' => 'Mozilla', |
| 93 | 'Konqueror' => 'Konqueror', |
| 94 | 'icab' => 'iCab', |
| 95 | 'Lynx' => 'Lynx', |
| 96 | 'Links' => 'Links', |
| 97 | 'hotjava' => 'HotJava', |
| 98 | 'amaya' => 'Amaya', |
| 99 | 'IBrowse' => 'IBrowse' |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 100 | ); |
| 101 | |
| 102 | $mobiles = array( |
| 103 | // legacy array, old values commented out |
| 104 | 'mobileexplorer' => 'Mobile Explorer', |
mmestrovic | 995af49 | 2011-08-31 17:25:27 +0300 | [diff] [blame] | 105 | // 'openwave' => 'Open Wave', |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 106 | // 'opera mini' => 'Opera Mini', |
mmestrovic | 995af49 | 2011-08-31 17:25:27 +0300 | [diff] [blame] | 107 | // 'operamini' => 'Opera Mini', |
| 108 | // 'elaine' => 'Palm', |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 109 | 'palmsource' => 'Palm', |
| 110 | // 'digital paths' => 'Palm', |
mmestrovic | 995af49 | 2011-08-31 17:25:27 +0300 | [diff] [blame] | 111 | // 'avantgo' => 'Avantgo', |
| 112 | // 'xiino' => 'Xiino', |
| 113 | 'palmscape' => 'Palmscape', |
| 114 | // 'nokia' => 'Nokia', |
| 115 | // 'ericsson' => 'Ericsson', |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 116 | // 'blackberry' => 'BlackBerry', |
mmestrovic | 995af49 | 2011-08-31 17:25:27 +0300 | [diff] [blame] | 117 | // 'motorola' => 'Motorola' |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 118 | |
| 119 | // Phones and Manufacturers |
mmestrovic | 995af49 | 2011-08-31 17:25:27 +0300 | [diff] [blame] | 120 | 'motorola' => "Motorola", |
| 121 | 'nokia' => "Nokia", |
| 122 | 'palm' => "Palm", |
| 123 | 'iphone' => "Apple iPhone", |
| 124 | 'ipad' => "iPad", |
| 125 | 'ipod' => "Apple iPod Touch", |
| 126 | 'sony' => "Sony Ericsson", |
| 127 | 'ericsson' => "Sony Ericsson", |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 128 | 'blackberry' => "BlackBerry", |
mmestrovic | 995af49 | 2011-08-31 17:25:27 +0300 | [diff] [blame] | 129 | 'cocoon' => "O2 Cocoon", |
| 130 | 'blazer' => "Treo", |
| 131 | 'lg' => "LG", |
| 132 | 'amoi' => "Amoi", |
| 133 | 'xda' => "XDA", |
| 134 | 'mda' => "MDA", |
| 135 | 'vario' => "Vario", |
| 136 | 'htc' => "HTC", |
| 137 | 'samsung' => "Samsung", |
| 138 | 'sharp' => "Sharp", |
| 139 | 'sie-' => "Siemens", |
| 140 | 'alcatel' => "Alcatel", |
| 141 | 'benq' => "BenQ", |
| 142 | 'ipaq' => "HP iPaq", |
| 143 | 'mot-' => "Motorola", |
Barry Mieny | dd67197 | 2010-10-04 16:33:58 +0200 | [diff] [blame] | 144 | 'playstation portable' => "PlayStation Portable", |
mmestrovic | 995af49 | 2011-08-31 17:25:27 +0300 | [diff] [blame] | 145 | 'hiptop' => "Danger Hiptop", |
| 146 | 'nec-' => "NEC", |
| 147 | 'panasonic' => "Panasonic", |
| 148 | 'philips' => "Philips", |
| 149 | 'sagem' => "Sagem", |
| 150 | 'sanyo' => "Sanyo", |
| 151 | 'spv' => "SPV", |
| 152 | 'zte' => "ZTE", |
| 153 | 'sendo' => "Sendo", |
Bo-Yi Wu | f22f852 | 2011-11-12 15:23:04 +0800 | [diff] [blame^] | 154 | 'dsi' => "Nintendo DSi", |
| 155 | 'ds' => "Nintendo DS", |
| 156 | 'wii' => "Nintendo Wii", |
| 157 | '3ds' => "Nintendo 3DS", |
| 158 | 'open web' => "Open Web", |
| 159 | 'openweb' => "OpenWeb", |
| 160 | |
mmestrovic | 995af49 | 2011-08-31 17:25:27 +0300 | [diff] [blame] | 161 | // Operating Systems |
| 162 | 'android' => "Android", |
| 163 | 'symbian' => "Symbian", |
| 164 | 'SymbianOS' => "SymbianOS", |
| 165 | 'elaine' => "Palm", |
| 166 | 'palm' => "Palm", |
| 167 | 'series60' => "Symbian S60", |
| 168 | 'windows ce' => "Windows CE", |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 169 | |
| 170 | // Browsers |
mmestrovic | 995af49 | 2011-08-31 17:25:27 +0300 | [diff] [blame] | 171 | 'obigo' => "Obigo", |
| 172 | 'netfront' => "Netfront Browser", |
| 173 | 'openwave' => "Openwave Browser", |
| 174 | 'mobilexplorer' => "Mobile Explorer", |
| 175 | 'operamini' => "Opera Mini", |
| 176 | 'opera mini' => "Opera Mini", |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 177 | |
| 178 | // Other |
mmestrovic | 995af49 | 2011-08-31 17:25:27 +0300 | [diff] [blame] | 179 | 'digital paths' => "Digital Paths", |
| 180 | 'avantgo' => "AvantGo", |
| 181 | 'xiino' => "Xiino", |
| 182 | 'novarra' => "Novarra Transcoder", |
| 183 | 'vodafone' => "Vodafone", |
| 184 | 'docomo' => "NTT DoCoMo", |
| 185 | 'o2' => "O2", |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 186 | |
| 187 | // Fallback |
mmestrovic | 995af49 | 2011-08-31 17:25:27 +0300 | [diff] [blame] | 188 | 'mobile' => "Generic Mobile", |
| 189 | 'wireless' => "Generic Mobile", |
| 190 | 'j2me' => "Generic Mobile", |
| 191 | 'midp' => "Generic Mobile", |
| 192 | 'cldc' => "Generic Mobile", |
| 193 | 'up.link' => "Generic Mobile", |
| 194 | 'up.browser' => "Generic Mobile", |
| 195 | 'smartphone' => "Generic Mobile", |
| 196 | 'cellphone' => "Generic Mobile" |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 197 | ); |
| 198 | |
| 199 | // There are hundreds of bots but these are the most common. |
| 200 | $robots = array( |
mmestrovic | 995af49 | 2011-08-31 17:25:27 +0300 | [diff] [blame] | 201 | 'googlebot' => 'Googlebot', |
| 202 | 'msnbot' => 'MSNBot', |
| 203 | 'slurp' => 'Inktomi Slurp', |
| 204 | 'yahoo' => 'Yahoo', |
| 205 | 'askjeeves' => 'AskJeeves', |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 206 | 'fastcrawler' => 'FastCrawler', |
mmestrovic | 995af49 | 2011-08-31 17:25:27 +0300 | [diff] [blame] | 207 | 'infoseek' => 'InfoSeek Robot 1.0', |
| 208 | 'lycos' => 'Lycos' |
Derek Allard | 2067d1a | 2008-11-13 22:59:24 +0000 | [diff] [blame] | 209 | ); |
| 210 | |
| 211 | /* End of file user_agents.php */ |
Bo-Yi Wu | f22f852 | 2011-11-12 15:23:04 +0800 | [diff] [blame^] | 212 | /* Location: ./application/config/user_agents.php */ |