[ Index ]
 

Code source de Joomla 1.0.13

Accédez au Source d'autres logiciels libres

title

Body

[fermer]

/includes/ -> agent_browser.php (source)

   1  <?php
   2  /**
   3  * @version $Id: agent_browser.php 87 2005-09-15 23:12:03Z eddieajau $
   4  * @package Joomla
   5  * @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
   6  * @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
   7  * Joomla! is free software. This version may have been modified pursuant
   8  * to the GNU General Public License, and as distributed it includes or
   9  * is derivative of works licensed under the GNU General Public License or
  10  * other free or open source software licenses.
  11  * See COPYRIGHT.php for copyright notices and details.
  12  */
  13  
  14  // no direct access
  15  defined( '_VALID_MOS' ) or die( 'Restricted access' );
  16  
  17  /**
  18  * AWSTATS BROWSERS DATABASE
  19  * If you want to add a Browser to extend AWStats database detection capabilities,
  20  * you must add an entry in BrowsersSearchIDOrder and in BrowsersHashIDLib.
  21  *
  22  *
  23  * BrowsersSearchIDOrder
  24  * This list is used to know in which order to search Browsers IDs (Most
  25  * frequent one are first in this list to increase detect speed).
  26  * It contains all matching criteria to search for in log fields.
  27  * Note: Browsers IDs are in lower case and ' ' and '+' are changed into '_'
  28  */
  29  
  30  $browserSearchOrder = array (
  31  // Most frequent standard web browsers are first in this list
  32  'icab',
  33  'go!zilla',
  34  'konqueror',
  35  'links',
  36  'lynx',
  37  'omniweb',
  38  'opera',
  39  'msie 6\.0',
  40  'apachebench',
  41  'wget',
  42  // Other standard web browsers
  43  '22acidownload',
  44  'aol\\-iweng',
  45  'amaya',
  46  'amigavoyager',
  47  'aweb',
  48  'bpftp',
  49  'chimera',
  50  'cyberdog',
  51  'dillo',
  52  'dreamcast',
  53  'downloadagent',
  54  'ecatch',
  55  'emailsiphon',
  56  'encompass',
  57  'friendlyspider',
  58  'fresco',
  59  'galeon',
  60  'getright',
  61  'headdump',
  62  'hotjava',
  63  'ibrowse',
  64  'intergo',
  65  'k-meleon',
  66  'linemodebrowser',
  67  'lotus-notes',
  68  'macweb',
  69  'multizilla',
  70  'ncsa_mosaic',
  71  'netpositive',
  72  'nutscrape',
  73  'msfrontpageexpress',
  74  'phoenix',
  75  'firebird',
  76  'firefox',
  77  'safari',
  78  'tzgeturl',
  79  'viking',
  80  'webfetcher',
  81  'webexplorer',
  82  'webmirror',
  83  'webvcr',
  84  // Site grabbers
  85  'teleport',
  86  'webcapture',
  87  'webcopier',
  88  // Music only browsers
  89  'real',
  90  'winamp',                // Works for winampmpeg and winamp3httprdr
  91  'windows-media-player',
  92  'audion',
  93  'freeamp',
  94  'itunes',
  95  'jetaudio',
  96  'mint_audio',
  97  'mpg123',
  98  'nsplayer',
  99  'sonique',
 100  'uplayer',
 101  'xmms',
 102  'xaudio',
 103  // PDA/Phonecell browsers
 104  'alcatel',                // Alcatel
 105  'mot-',                    // Motorola
 106  'nokia',                // Nokia
 107  'panasonic',            // Panasonic
 108  'philips',                // Philips
 109  'sonyericsson',            // SonyEricsson
 110  'ericsson',                // Ericsson (must be after sonyericsson
 111  'mmef',
 112  'mspie',
 113  'wapalizer',
 114  'wapsilon',
 115  'webcollage',
 116  'up\.',                    // Works for UP.Browser and UP.Link
 117  // PDA/Phonecell I-Mode browsers
 118  'docomo',
 119  'portalmmm',
 120  // Others (TV)
 121  'webtv',
 122  // Other kind of browsers
 123  'csscheck',
 124  'w3m',
 125  'w3c_css_validator',
 126  'w3c_validator',
 127  'wdg_validator',
 128  'webzip',
 129  'staroffice',
 130  'mozilla',                // Must be at end because a lot of browsers contains mozilla in string
 131  'libwww'             // Must be at end because some browser have both 'browser id' and 'libwww'
 132  );
 133  
 134  $browsersAlias = array (
 135  // Common web browsers text (IE and Netscape must not be in this list)
 136  'icab'             => 'iCab',
 137  'go!zilla'         => 'Go!Zilla',
 138  'konqueror'        => 'Konqueror',
 139  'links'         => 'Links',
 140  'lynx'             => 'Lynx',
 141  'omniweb'         => 'OmniWeb',
 142  'opera'         => 'Opera',
 143  'msie 6\.0'     => 'Microsoft Internet Explorer 6.0',
 144  'apachebench'     => 'ApacheBench',
 145  'wget'             => 'Wget',
 146  '22acidownload' => '22AciDownload',
 147  'aol\\-iweng'     => 'AOL-Iweng',
 148  'amaya'         => 'Amaya',
 149  'amigavoyager'     => 'AmigaVoyager',
 150  'aweb'             => 'AWeb',
 151  'bpftp'         => 'BPFTP',
 152  'chimera'         => 'Chimera',
 153  'cyberdog'         => 'Cyberdog',
 154  'dillo'         => 'Dillo',
 155  'dreamcast'     => 'Dreamcast',
 156  'downloadagent' => 'DownloadAgent',
 157  'ecatch'         => 'eCatch',
 158  'emailsiphon'     => 'EmailSiphon',
 159  'encompass'        => 'Encompass',
 160  'friendlyspider' => 'FriendlySpider',
 161  'fresco'         => 'ANT Fresco',
 162  'galeon'        => 'Galeon',
 163  'getright'         => 'GetRight',
 164  'headdump'         => 'HeadDump',
 165  'hotjava'         => 'Sun HotJava',
 166  'ibrowse'         => 'IBrowse',
 167  'intergo'         => 'InterGO',
 168  'k-meleon'         => 'K-Meleon',
 169  'linemodebrowser' => 'W3C Line Mode Browser',
 170  'lotus-notes'     => 'Lotus Notes web client',
 171  'macweb'         => 'MacWeb',
 172  'multizilla'     => 'MultiZilla',
 173  'ncsa_mosaic'     => 'NCSA Mosaic',
 174  'netpositive'     => 'NetPositive',
 175  'nutscrape'     => 'Nutscrape',
 176  'msfrontpageexpress' => 'MS FrontPage Express',
 177  'phoenix'         => 'Phoenix',
 178  'firebird'         => 'Mozilla Firebird',
 179  'firefox'         => 'Mozilla Firefox',
 180  'safari'         => 'Safari',
 181  'tzgeturl'         => 'TzGetURL',
 182  'viking'         => 'Viking',
 183  'webfetcher'     => 'WebFetcher',
 184  'webexplorer'     => 'IBM-WebExplorer',
 185  'webmirror'     => 'WebMirror',
 186  'webvcr'         => 'WebVCR',
 187  // Site grabbers
 188  'teleport'         => 'TelePort Pro',
 189  'webcapture'     => 'Acrobat',
 190  'webcopier'     => 'WebCopier',
 191  // Music only browsers
 192  'real'             => 'RealAudio or compatible (media player)',
 193  'winamp'         => 'WinAmp (media player)',                // Works for winampmpeg and winamp3httprdr
 194  'windows-media-player' => 'Windows Media Player (media player)',
 195  'audion'         => 'Audion (media player)',
 196  'freeamp'         => 'FreeAmp (media player)',
 197  'itunes'         => 'Apple iTunes (media player)',
 198  'jetaudio'         => 'JetAudio (media player)',
 199  'mint_audio'     => 'Mint Audio (media player)',
 200  'mpg123'         => 'mpg123 (media player)',
 201  'nsplayer'         => 'NetShow Player (media player)',
 202  'sonique'         => 'Sonique (media player)',
 203  'uplayer'         => 'Ultra Player (media player)',
 204  'xmms'             => 'XMMS (media player)',
 205  'xaudio'         => 'Some XAudio Engine based MPEG player (media player)',
 206  // PDA/Phonecell browsers
 207  'alcatel'         => 'Alcatel Browser (PDA/Phone browser)',
 208  'ericsson'         => 'Ericsson Browser (PDA/Phone browser)',
 209  'mot-'             => 'Motorola Browser (PDA/Phone browser)',
 210  'nokia'         => 'Nokia Browser (PDA/Phone browser)',
 211  'panasonic'     => 'Panasonic Browser (PDA/Phone browser)',
 212  'philips'         => 'Philips Browser (PDA/Phone browser)',
 213  'sonyericsson'     => 'Sony/Ericsson Browser (PDA/Phone browser)',
 214  'mmef'             => 'Microsoft Mobile Explorer (PDA/Phone browser)',
 215  'mspie'         => 'MS Pocket Internet Explorer (PDA/Phone browser)',
 216  'wapalizer'     => 'WAPalizer (PDA/Phone browser)',
 217  'wapsilon'         => 'WAPsilon (PDA/Phone browser)',
 218  'webcollage'     => 'WebCollage (PDA/Phone browser)',
 219  'up\.'             => 'UP.Browser (PDA/Phone browser)',                    // Works for UP.Browser and UP.Link
 220  // PDA/Phonecell I-Mode browsers
 221  'docomo'         => 'I-Mode phone (PDA/Phone browser)',
 222  'portalmmm'     => 'I-Mode phone (PDA/Phone browser)',
 223  // Others (TV)
 224  'webtv'         => 'WebTV browser',
 225  // Other kind of browsers
 226  'csscheck'         => 'WDG CSS Validator',
 227  'w3m'             => 'w3m',
 228  'w3c_css_validator' => 'W3C CSS Validator',
 229  'w3c_validator' => 'W3C HTML Validator',
 230  'wdg_validator' => 'WDG HTML Validator',
 231  'webzip'         => 'WebZIP',
 232  'staroffice'     => 'StarOffice',
 233  'mozilla'         => 'Mozilla',
 234  'libwww'         => 'LibWWW',
 235  );
 236  
 237  
 238  // BrowsersHashAreGrabber
 239  // Put here an entry for each browser in BrowsersSearchIDOrder that are grabber
 240  // browsers.
 241  //---------------------------------------------------------------------------
 242  $BrowsersHereAreGrabbers = array (
 243  'teleport'         => '1',
 244  'webcapture'    => '1',
 245  'webcopier'     => '1',
 246  );
 247  
 248  
 249  // BrowsersHashIcon
 250  // Each Browsers Search ID is associated to a string that is the name of icon
 251  // file for this browser.
 252  //---------------------------------------------------------------------------
 253  $BrowsersHashIcon = array (
 254  // Standard web browsers
 255  'msie'             => 'msie',
 256  'netscape'         => 'netscape',
 257  
 258  'icab'             => 'icab',
 259  'go!zilla'         => 'gozilla',
 260  'konqueror'     => 'konqueror',
 261  'links'         => 'notavailable',
 262  'lynx'             => 'lynx',
 263  'omniweb'         => 'omniweb',
 264  'opera'         => 'opera',
 265  'wget'             => 'notavailable',
 266  '22acidownload' => 'notavailable',
 267  'aol\\-iweng'     => 'notavailable',
 268  'amaya'         => 'amaya',
 269  'amigavoyager'     => 'notavailable',
 270  'aweb'             => 'notavailable',
 271  'bpftp'         => 'notavailable',
 272  'chimera'         => 'chimera',
 273  'cyberdog'         => 'notavailable',
 274  'dillo'         => 'notavailable',
 275  'dreamcast'     => 'dreamcast',
 276  'downloadagent' => 'notavailable',
 277  'ecatch'         => 'notavailable',
 278  'emailsiphon'     => 'notavailable',
 279  'encompass'        => 'notavailable',
 280  'friendlyspider' => 'notavailable',
 281  'fresco'         => 'notavailable',
 282  'galeon'         => 'galeon',
 283  'getright'         => 'getright',
 284  'headdump'         => 'notavailable',
 285  'hotjava'         => 'notavailable',
 286  'ibrowse'         => 'ibrowse',
 287  'intergo'         => 'notavailable',
 288  'k-meleon'         => 'kmeleon',
 289  'linemodebrowser' => 'notavailable',
 290  'lotus-notes'     => 'notavailable',
 291  'macweb'         => 'notavailable',
 292  'multizilla'     => 'multizilla',
 293  'ncsa_mosaic'     => 'notavailable',
 294  'netpositive'     => 'netpositive',
 295  'nutscrape'     => 'notavailable',
 296  'msfrontpageexpress' => 'notavailable',
 297  'phoenix'         => 'phoenix',
 298  'firebird'         => 'firebird',
 299  'safari'         => 'safari',
 300  'tzgeturl'         => 'notavailable',
 301  'viking'         => 'notavailable',
 302  'webfetcher'     => 'notavailable',
 303  'webexplorer'     => 'notavailable',
 304  'webmirror'     => 'notavailable',
 305  'webvcr'         => 'notavailable',
 306  // Site grabbers
 307  'teleport'         => 'teleport',
 308  'webcapture'     => 'adobe',
 309  'webcopier'     => 'webcopier',
 310  // Music only browsers
 311  'real'             => 'mediaplayer',
 312  'winamp'         => 'mediaplayer',                // Works for winampmpeg and winamp3httprdr
 313  'windows-media-player' => 'mediaplayer',
 314  'audion'         => 'mediaplayer',
 315  'freeamp'         => 'mediaplayer',
 316  'itunes'         => 'mediaplayer',
 317  'jetaudio'         => 'mediaplayer',
 318  'mint_audio'     => 'mediaplayer',
 319  'mpg123'         => 'mediaplayer',
 320  'nsplayer'         => 'mediaplayer',
 321  'sonique'         => 'mediaplayer',
 322  'uplayer'         => 'mediaplayer',
 323  'xmms'             => 'mediaplayer',
 324  'xaudio'         => 'mediaplayer',
 325  // PDA/Phonecell browsers
 326  'alcatel'         => 'pdaphone',                // Alcatel
 327  'ericsson'         => 'pdaphone',                // Ericsson
 328  'mot-'             => 'pdaphone',                    // Motorola
 329  'nokia'         => 'pdaphone',                    // Nokia
 330  'panasonic'     => 'pdaphone',                // Panasonic
 331  'philips'         => 'pdaphone',                // Philips
 332  'sonyericsson'     => 'pdaphone',            // Sony/Ericsson
 333  'mmef'             => 'pdaphone',
 334  'mspie'         => 'pdaphone',
 335  'wapalizer'     => 'pdaphone',
 336  'wapsilon'         => 'pdaphone',
 337  'webcollage'     => 'pdaphone',
 338  'up\.'             => 'pdaphone',                    // Works for UP.Browser and UP.Link
 339  // PDA/Phonecell I-Mode browsers
 340  'docomo'         => 'pdaphone',
 341  'portalmmm'     => 'pdaphone',
 342  // Others (TV)
 343  'webtv'         => 'webtv',
 344  // Other kind of browsers
 345  'csscheck'         => 'notavailable',
 346  'w3m'             => 'notavailable',
 347  'w3c_css_validator' => 'notavailable',
 348  'w3c_validator' => 'notavailable',
 349  'wdg_validator' => 'notavailable',
 350  'webzip'         => 'webzip',
 351  'staroffice'     => 'staroffice',
 352  'mozilla'         => 'mozilla',
 353  'libwww'         => 'notavailable'
 354  );
 355  
 356  
 357  // TODO
 358  // Add Gecko category -> IE / Netscape / Gecko(except Netscape) / Other
 359  // IE (based on Mosaic)
 360  // Netscape family
 361  // Gecko except Netscape (Mozilla, Firebird (was Phoenix), Galeon, AmiZilla, Dino, and few others)
 362  // Opera (Opera 6/7)
 363  // KHTML (Konqueror, Safari)
 364  ?>


Généré le : Wed Nov 21 14:43:32 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics