Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

253 рядки
9.6KB

  1. <?php
  2. namespace Config;
  3. use CodeIgniter\Config\BaseConfig;
  4. /**
  5. * -------------------------------------------------------------------
  6. * User Agents
  7. * -------------------------------------------------------------------
  8. *
  9. * This file contains four arrays of user agent data. It is used by the
  10. * User Agent Class to help identify browser, platform, robot, and
  11. * mobile device data. The array keys are used to identify the device
  12. * and the array values are used to set the actual name of the item.
  13. */
  14. class UserAgents extends BaseConfig
  15. {
  16. /**
  17. * -------------------------------------------------------------------
  18. * OS Platforms
  19. * -------------------------------------------------------------------
  20. *
  21. * @var array<string, string>
  22. */
  23. public $platforms = [
  24. 'windows nt 10.0' => 'Windows 10',
  25. 'windows nt 6.3' => 'Windows 8.1',
  26. 'windows nt 6.2' => 'Windows 8',
  27. 'windows nt 6.1' => 'Windows 7',
  28. 'windows nt 6.0' => 'Windows Vista',
  29. 'windows nt 5.2' => 'Windows 2003',
  30. 'windows nt 5.1' => 'Windows XP',
  31. 'windows nt 5.0' => 'Windows 2000',
  32. 'windows nt 4.0' => 'Windows NT 4.0',
  33. 'winnt4.0' => 'Windows NT 4.0',
  34. 'winnt 4.0' => 'Windows NT',
  35. 'winnt' => 'Windows NT',
  36. 'windows 98' => 'Windows 98',
  37. 'win98' => 'Windows 98',
  38. 'windows 95' => 'Windows 95',
  39. 'win95' => 'Windows 95',
  40. 'windows phone' => 'Windows Phone',
  41. 'windows' => 'Unknown Windows OS',
  42. 'android' => 'Android',
  43. 'blackberry' => 'BlackBerry',
  44. 'iphone' => 'iOS',
  45. 'ipad' => 'iOS',
  46. 'ipod' => 'iOS',
  47. 'os x' => 'Mac OS X',
  48. 'ppc mac' => 'Power PC Mac',
  49. 'freebsd' => 'FreeBSD',
  50. 'ppc' => 'Macintosh',
  51. 'linux' => 'Linux',
  52. 'debian' => 'Debian',
  53. 'sunos' => 'Sun Solaris',
  54. 'beos' => 'BeOS',
  55. 'apachebench' => 'ApacheBench',
  56. 'aix' => 'AIX',
  57. 'irix' => 'Irix',
  58. 'osf' => 'DEC OSF',
  59. 'hp-ux' => 'HP-UX',
  60. 'netbsd' => 'NetBSD',
  61. 'bsdi' => 'BSDi',
  62. 'openbsd' => 'OpenBSD',
  63. 'gnu' => 'GNU/Linux',
  64. 'unix' => 'Unknown Unix OS',
  65. 'symbian' => 'Symbian OS',
  66. ];
  67. /**
  68. * -------------------------------------------------------------------
  69. * Browsers
  70. * -------------------------------------------------------------------
  71. *
  72. * The order of this array should NOT be changed. Many browsers return
  73. * multiple browser types so we want to identify the subtype first.
  74. *
  75. * @var array<string, string>
  76. */
  77. public $browsers = [
  78. 'OPR' => 'Opera',
  79. 'Flock' => 'Flock',
  80. 'Edge' => 'Spartan',
  81. 'Edg' => 'Edge',
  82. 'Chrome' => 'Chrome',
  83. // Opera 10+ always reports Opera/9.80 and appends Version/<real version> to the user agent string
  84. 'Opera.*?Version' => 'Opera',
  85. 'Opera' => 'Opera',
  86. 'MSIE' => 'Internet Explorer',
  87. 'Internet Explorer' => 'Internet Explorer',
  88. 'Trident.* rv' => 'Internet Explorer',
  89. 'Shiira' => 'Shiira',
  90. 'Firefox' => 'Firefox',
  91. 'Chimera' => 'Chimera',
  92. 'Phoenix' => 'Phoenix',
  93. 'Firebird' => 'Firebird',
  94. 'Camino' => 'Camino',
  95. 'Netscape' => 'Netscape',
  96. 'OmniWeb' => 'OmniWeb',
  97. 'Safari' => 'Safari',
  98. 'Mozilla' => 'Mozilla',
  99. 'Konqueror' => 'Konqueror',
  100. 'icab' => 'iCab',
  101. 'Lynx' => 'Lynx',
  102. 'Links' => 'Links',
  103. 'hotjava' => 'HotJava',
  104. 'amaya' => 'Amaya',
  105. 'IBrowse' => 'IBrowse',
  106. 'Maxthon' => 'Maxthon',
  107. 'Ubuntu' => 'Ubuntu Web Browser',
  108. 'Vivaldi' => 'Vivaldi',
  109. ];
  110. /**
  111. * -------------------------------------------------------------------
  112. * Mobiles
  113. * -------------------------------------------------------------------
  114. *
  115. * @var array<string, string>
  116. */
  117. public $mobiles = [
  118. // legacy array, old values commented out
  119. 'mobileexplorer' => 'Mobile Explorer',
  120. // 'openwave' => 'Open Wave',
  121. // 'opera mini' => 'Opera Mini',
  122. // 'operamini' => 'Opera Mini',
  123. // 'elaine' => 'Palm',
  124. 'palmsource' => 'Palm',
  125. // 'digital paths' => 'Palm',
  126. // 'avantgo' => 'Avantgo',
  127. // 'xiino' => 'Xiino',
  128. 'palmscape' => 'Palmscape',
  129. // 'nokia' => 'Nokia',
  130. // 'ericsson' => 'Ericsson',
  131. // 'blackberry' => 'BlackBerry',
  132. // 'motorola' => 'Motorola'
  133. // Phones and Manufacturers
  134. 'motorola' => 'Motorola',
  135. 'nokia' => 'Nokia',
  136. 'palm' => 'Palm',
  137. 'iphone' => 'Apple iPhone',
  138. 'ipad' => 'iPad',
  139. 'ipod' => 'Apple iPod Touch',
  140. 'sony' => 'Sony Ericsson',
  141. 'ericsson' => 'Sony Ericsson',
  142. 'blackberry' => 'BlackBerry',
  143. 'cocoon' => 'O2 Cocoon',
  144. 'blazer' => 'Treo',
  145. 'lg' => 'LG',
  146. 'amoi' => 'Amoi',
  147. 'xda' => 'XDA',
  148. 'mda' => 'MDA',
  149. 'vario' => 'Vario',
  150. 'htc' => 'HTC',
  151. 'samsung' => 'Samsung',
  152. 'sharp' => 'Sharp',
  153. 'sie-' => 'Siemens',
  154. 'alcatel' => 'Alcatel',
  155. 'benq' => 'BenQ',
  156. 'ipaq' => 'HP iPaq',
  157. 'mot-' => 'Motorola',
  158. 'playstation portable' => 'PlayStation Portable',
  159. 'playstation 3' => 'PlayStation 3',
  160. 'playstation vita' => 'PlayStation Vita',
  161. 'hiptop' => 'Danger Hiptop',
  162. 'nec-' => 'NEC',
  163. 'panasonic' => 'Panasonic',
  164. 'philips' => 'Philips',
  165. 'sagem' => 'Sagem',
  166. 'sanyo' => 'Sanyo',
  167. 'spv' => 'SPV',
  168. 'zte' => 'ZTE',
  169. 'sendo' => 'Sendo',
  170. 'nintendo dsi' => 'Nintendo DSi',
  171. 'nintendo ds' => 'Nintendo DS',
  172. 'nintendo 3ds' => 'Nintendo 3DS',
  173. 'wii' => 'Nintendo Wii',
  174. 'open web' => 'Open Web',
  175. 'openweb' => 'OpenWeb',
  176. // Operating Systems
  177. 'android' => 'Android',
  178. 'symbian' => 'Symbian',
  179. 'SymbianOS' => 'SymbianOS',
  180. 'elaine' => 'Palm',
  181. 'series60' => 'Symbian S60',
  182. 'windows ce' => 'Windows CE',
  183. // Browsers
  184. 'obigo' => 'Obigo',
  185. 'netfront' => 'Netfront Browser',
  186. 'openwave' => 'Openwave Browser',
  187. 'mobilexplorer' => 'Mobile Explorer',
  188. 'operamini' => 'Opera Mini',
  189. 'opera mini' => 'Opera Mini',
  190. 'opera mobi' => 'Opera Mobile',
  191. 'fennec' => 'Firefox Mobile',
  192. // Other
  193. 'digital paths' => 'Digital Paths',
  194. 'avantgo' => 'AvantGo',
  195. 'xiino' => 'Xiino',
  196. 'novarra' => 'Novarra Transcoder',
  197. 'vodafone' => 'Vodafone',
  198. 'docomo' => 'NTT DoCoMo',
  199. 'o2' => 'O2',
  200. // Fallback
  201. 'mobile' => 'Generic Mobile',
  202. 'wireless' => 'Generic Mobile',
  203. 'j2me' => 'Generic Mobile',
  204. 'midp' => 'Generic Mobile',
  205. 'cldc' => 'Generic Mobile',
  206. 'up.link' => 'Generic Mobile',
  207. 'up.browser' => 'Generic Mobile',
  208. 'smartphone' => 'Generic Mobile',
  209. 'cellphone' => 'Generic Mobile',
  210. ];
  211. /**
  212. * -------------------------------------------------------------------
  213. * Robots
  214. * -------------------------------------------------------------------
  215. *
  216. * There are hundred of bots but these are the most common.
  217. *
  218. * @var array<string, string>
  219. */
  220. public $robots = [
  221. 'googlebot' => 'Googlebot',
  222. 'msnbot' => 'MSNBot',
  223. 'baiduspider' => 'Baiduspider',
  224. 'bingbot' => 'Bing',
  225. 'slurp' => 'Inktomi Slurp',
  226. 'yahoo' => 'Yahoo',
  227. 'ask jeeves' => 'Ask Jeeves',
  228. 'fastcrawler' => 'FastCrawler',
  229. 'infoseek' => 'InfoSeek Robot 1.0',
  230. 'lycos' => 'Lycos',
  231. 'yandex' => 'YandexBot',
  232. 'mediapartners-google' => 'MediaPartners Google',
  233. 'CRAZYWEBCRAWLER' => 'Crazy Webcrawler',
  234. 'adsbot-google' => 'AdsBot Google',
  235. 'feedfetcher-google' => 'Feedfetcher Google',
  236. 'curious george' => 'Curious George',
  237. 'ia_archiver' => 'Alexa Crawler',
  238. 'MJ12bot' => 'Majestic-12',
  239. 'Uptimebot' => 'Uptimebot',
  240. ];
  241. }