root/trunk/system/config/user_agents.php

Revision 3326, 3.3 kB (checked in by Shadowhand, 3 weeks ago)

Core cleanup:

  • Removed SYSPATH check from all files
  • Changed copyrights to 2007-2008 where they had not been updated
  • Started to add @example doc comments
  • Property svn:eol-style set to LF
  • Property copyright set to Copyright (c) 2007 Kohana Team
  • Property svn:keywords set to Id
Line 
1<?php
2/**
3 * @package  Core
4 *
5 * This file contains four arrays of user agent data.  It is used by the
6 * User Agent library to help identify browser, platform, robot, and
7 * mobile device data. The array keys are used to identify the device
8 * and the array values are used to set the actual name of the item.
9 */
10$config['platform'] = array
11(
12    'windows nt 6.0' => 'Windows Vista',
13    'windows nt 5.2' => 'Windows 2003',
14    'windows nt 5.0' => 'Windows 2000',
15    'windows nt 5.1' => 'Windows XP',
16    'windows nt 4.0' => 'Windows NT',
17    'winnt4.0'       => 'Windows NT',
18    'winnt 4.0'      => 'Windows NT',
19    'winnt'          => 'Windows NT',
20    'windows 98'     => 'Windows 98',
21    'win98'          => 'Windows 98',
22    'windows 95'     => 'Windows 95',
23    'win95'          => 'Windows 95',
24    'windows'        => 'Unknown Windows OS',
25    'os x'           => 'Mac OS X',
26    'intel mac'      => 'Intel Mac',
27    'ppc mac'        => 'PowerPC Mac',
28    'powerpc'        => 'PowerPC',
29    'ppc'            => 'PowerPC',
30    'cygwin'         => 'Cygwin',
31    'linux'          => 'Linux',
32    'debian'         => 'Debian',
33    'openvms'        => 'OpenVMS',
34    'sunos'          => 'Sun Solaris',
35    'amiga'          => 'Amiga',
36    'beos'           => 'BeOS',
37    'apachebench'    => 'ApacheBench',
38    'freebsd'        => 'FreeBSD',
39    'netbsd'         => 'NetBSD',
40    'bsdi'           => 'BSDi',
41    'openbsd'        => 'OpenBSD',
42    'os/2'           => 'OS/2',
43    'warp'           => 'OS/2',
44    'aix'            => 'AIX',
45    'irix'           => 'Irix',
46    'osf'            => 'DEC OSF',
47    'hp-ux'          => 'HP-UX',
48    'hurd'           => 'GNU/Hurd',
49    'unix'           => 'Unknown Unix OS',
50);
51
52// The order of this array should NOT be changed. Many browsers return
53// multiple browser types so we want to identify the sub-type first.
54$config['browser'] = array
55(
56    'Opera'             => 'Opera',
57    'MSIE'              => 'Internet Explorer',
58    'Internet Explorer' => 'Internet Explorer',
59    'Shiira'            => 'Shiira',
60    'Firefox'           => 'Firefox',
61    'Chimera'           => 'Chimera',
62    'Phoenix'           => 'Phoenix',
63    'Firebird'          => 'Firebird',
64    'Camino'            => 'Camino',
65    'Netscape'          => 'Netscape',
66    'OmniWeb'           => 'OmniWeb',
67    'Safari'            => 'Safari',
68    'Konqueror'         => 'Konqueror',
69    'Epiphany'          => 'Epiphany',
70    'Galeon'            => 'Galeon',
71    'Mozilla'           => 'Mozilla',
72    'icab'              => 'iCab',
73    'lynx'              => 'Lynx',
74    'links'             => 'Links',
75    'hotjava'           => 'HotJava',
76    'amaya'             => 'Amaya',
77    'IBrowse'           => 'IBrowse',
78);
79
80$config['mobile'] = array
81(
82    'mobileexplorer' => 'Mobile Explorer',
83    'openwave'       => 'Open Wave',
84    'opera mini'     => 'Opera Mini',
85    'operamini'      => 'Opera Mini',
86    'elaine'         => 'Palm',
87    'palmsource'     => 'Palm',
88    'digital paths'  => 'Palm',
89    'avantgo'        => 'Avantgo',
90    'xiino'          => 'Xiino',
91    'palmscape'      => 'Palmscape',
92    'nokia'          => 'Nokia',
93    'ericsson'       => 'Ericsson',
94    'blackBerry'     => 'BlackBerry',
95    'motorola'       => 'Motorola',
96);
97
98// There are hundreds of bots but these are the most common.
99$config['robot'] = array
100(
101    'googlebot'   => 'Googlebot',
102    'msnbot'      => 'MSNBot',
103    'slurp'       => 'Inktomi Slurp',
104    'yahoo'       => 'Yahoo',
105    'askjeeves'   => 'AskJeeves',
106    'fastcrawler' => 'FastCrawler',
107    'infoseek'    => 'InfoSeek Robot 1.0',
108    'lycos'       => 'Lycos',
109);
Note: See TracBrowser for help on using the browser.