user_agents.php 5.5 KB

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