SproutCMS

This is the code documentation for the SproutCMS project

source of /sprout/config/user_agents.php

  1. <?php
  2. /*
  3.  * kate: tab-width 4; indent-width 4; space-indent on; word-wrap off; word-wrap-column 120;
  4.  * :tabSize=4:indentSize=4:noTabs=true:wrap=false:maxLineLen=120:mode=php:
  5.  *
  6.  * Copyright (C) 2016 Karmabunny Pty Ltd.
  7.  *
  8.  * This file is a part of SproutCMS.
  9.  *
  10.  * SproutCMS is free software: you can redistribute it and/or modify it under the terms
  11.  * of the GNU General Public License as published by the Free Software Foundation, either
  12.  * version 2 of the License, or (at your option) any later version.
  13.  *
  14.  * For more information, visit <http://getsproutcms.com>.
  15.  */
  16.  
  17. /**
  18.  * @package Core
  19.  *
  20.  * This file contains four arrays of user agent data. It is used by the
  21.  * User Agent library to help identify browser, platform, robot, and
  22.  * mobile device data. The array keys are used to identify the device
  23.  * and the array values are used to set the actual name of the item.
  24.  */
  25. $config['platform'] = array
  26. (
  27. 'windows nt 6.0' => 'Windows Vista',
  28. 'windows nt 5.2' => 'Windows 2003',
  29. 'windows nt 5.0' => 'Windows 2000',
  30. 'windows nt 5.1' => 'Windows XP',
  31. 'windows nt 4.0' => 'Windows NT',
  32. 'winnt4.0' => 'Windows NT',
  33. 'winnt 4.0' => 'Windows NT',
  34. 'winnt' => 'Windows NT',
  35. 'windows 98' => 'Windows 98',
  36. 'win98' => 'Windows 98',
  37. 'windows 95' => 'Windows 95',
  38. 'win95' => 'Windows 95',
  39. 'windows' => 'Unknown Windows OS',
  40. 'os x' => 'Mac OS X',
  41. 'intel mac' => 'Intel Mac',
  42. 'ppc mac' => 'PowerPC Mac',
  43. 'powerpc' => 'PowerPC',
  44. 'ppc' => 'PowerPC',
  45. 'cygwin' => 'Cygwin',
  46. 'linux' => 'Linux',
  47. 'debian' => 'Debian',
  48. 'openvms' => 'OpenVMS',
  49. 'sunos' => 'Sun Solaris',
  50. 'amiga' => 'Amiga',
  51. 'beos' => 'BeOS',
  52. 'apachebench' => 'ApacheBench',
  53. 'freebsd' => 'FreeBSD',
  54. 'netbsd' => 'NetBSD',
  55. 'bsdi' => 'BSDi',
  56. 'openbsd' => 'OpenBSD',
  57. 'os/2' => 'OS/2',
  58. 'warp' => 'OS/2',
  59. 'aix' => 'AIX',
  60. 'irix' => 'Irix',
  61. 'osf' => 'DEC OSF',
  62. 'hp-ux' => 'HP-UX',
  63. 'hurd' => 'GNU/Hurd',
  64. 'unix' => 'Unknown Unix OS',
  65. );
  66.  
  67. // The order of this array should NOT be changed. Many browsers return
  68. // multiple browser types so we want to identify the sub-type first.
  69. $config['browser'] = array
  70. (
  71. 'Opera' => 'Opera',
  72. 'MSIE' => 'Internet Explorer',
  73. 'Internet Explorer' => 'Internet Explorer',
  74. 'rv:' => 'Internet Explorer', // IE11 rv:11.0
  75. 'Shiira' => 'Shiira',
  76. 'Firefox' => 'Firefox',
  77. 'Chimera' => 'Chimera',
  78. 'Phoenix' => 'Phoenix',
  79. 'Firebird' => 'Firebird',
  80. 'Camino' => 'Camino',
  81. 'Netscape' => 'Netscape',
  82. 'OmniWeb' => 'OmniWeb',
  83. 'Chrome' => 'Chrome',
  84. 'Safari' => 'Safari',
  85. 'Konqueror' => 'Konqueror',
  86. 'Epiphany' => 'Epiphany',
  87. 'Galeon' => 'Galeon',
  88. 'Mozilla' => 'Mozilla',
  89. 'icab' => 'iCab',
  90. 'lynx' => 'Lynx',
  91. 'links' => 'Links',
  92. 'hotjava' => 'HotJava',
  93. 'amaya' => 'Amaya',
  94. 'IBrowse' => 'IBrowse',
  95. );
  96.  
  97. $config['mobile'] = array
  98. (
  99. 'mobileexplorer' => 'Mobile Explorer',
  100. 'openwave' => 'Open Wave',
  101. 'opera mini' => 'Opera Mini',
  102. 'operamini' => 'Opera Mini',
  103. 'elaine' => 'Palm',
  104. 'palmsource' => 'Palm',
  105. 'digital paths' => 'Palm',
  106. 'avantgo' => 'Avantgo',
  107. 'xiino' => 'Xiino',
  108. 'palmscape' => 'Palmscape',
  109. 'nokia' => 'Nokia',
  110. 'ericsson' => 'Ericsson',
  111. 'blackBerry' => 'BlackBerry',
  112. 'motorola' => 'Motorola',
  113. 'iphone' => 'iPhone',
  114. 'android' => 'Android',
  115. );
  116.  
  117. // There are hundreds of bots but these are the most common.
  118. $config['robot'] = array
  119. (
  120. 'googlebot' => 'Googlebot',
  121. 'msnbot' => 'MSNBot',
  122. 'slurp' => 'Inktomi Slurp',
  123. 'yahoo' => 'Yahoo',
  124. 'askjeeves' => 'AskJeeves',
  125. 'fastcrawler' => 'FastCrawler',
  126. 'infoseek' => 'InfoSeek Robot 1.0',
  127. 'lycos' => 'Lycos',
  128. );
  129.