C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\rodam\includes\agent_browser.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
<?php
/**
* @version $Id: agent_browser.php 85 2005-09-15 23:12:03Z eddieajau $
* @package Joomla
* @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/

// no direct access
defined'_VALID_MOS' ) or die( 'Restricted access' );

/**
* AWSTATS BROWSERS DATABASE
* If you want to add a Browser to extend AWStats database detection capabilities,
* you must add an entry in BrowsersSearchIDOrder and in BrowsersHashIDLib.
*
*
* BrowsersSearchIDOrder
* This list is used to know in which order to search Browsers IDs (Most
* frequent one are first in this list to increase detect speed).
* It contains all matching criteria to search for in log fields.
* Note: Browsers IDs are in lower case and ' ' and '+' are changed into '_'
*/

$browserSearchOrder = array (
// Most frequent standard web browsers are first in this list
'icab',
'go!zilla',
'konqueror',
'links',
'lynx',
'omniweb',
'opera',
'msie 6\.0',
'apachebench',
'wget',
// Other standard web browsers
'22acidownload',
'aol\\-iweng',
'amaya',
'amigavoyager',
'aweb',
'bpftp',
'chimera',
'cyberdog',
'dillo',
'dreamcast',
'downloadagent',
'ecatch',
'emailsiphon',
'encompass',
'friendlyspider',
'fresco',
'galeon',
'getright',
'headdump',
'hotjava',
'ibrowse',
'intergo',
'k-meleon',
'linemodebrowser',
'lotus-notes',
'macweb',
'multizilla',
'ncsa_mosaic',
'netpositive',
'nutscrape',
'msfrontpageexpress',
'phoenix',
'firebird',
'firefox',
'safari',
'tzgeturl',
'viking',
'webfetcher',
'webexplorer',
'webmirror',
'webvcr',
// Site grabbers
'teleport',
'webcapture',
'webcopier',
// Music only browsers
'real',
'winamp',                // Works for winampmpeg and winamp3httprdr
'windows-media-player',
'audion',
'freeamp',
'itunes',
'jetaudio',
'mint_audio',
'mpg123',
'nsplayer',
'sonique',
'uplayer',
'xmms',
'xaudio',
// PDA/Phonecell browsers
'alcatel',                // Alcatel
'mot-',                    // Motorola
'nokia',                // Nokia
'panasonic',            // Panasonic
'philips',                // Philips
'sonyericsson',            // SonyEricsson
'ericsson',                // Ericsson (must be after sonyericsson
'mmef',
'mspie',
'wapalizer',
'wapsilon',
'webcollage',
'up\.',                    // Works for UP.Browser and UP.Link
// PDA/Phonecell I-Mode browsers
'docomo',
'portalmmm',
// Others (TV)
'webtv',
// Other kind of browsers
'csscheck',
'w3m',
'w3c_css_validator',
'w3c_validator',
'wdg_validator',
'webzip',
'staroffice',
'mozilla',                // Must be at end because a lot of browsers contains mozilla in string
'libwww'             // Must be at end because some browser have both 'browser id' and 'libwww'
);

$browsersAlias = array (
// Common web browsers text (IE and Netscape must not be in this list)
'icab'             => 'iCab',
'go!zilla'         => 'Go!Zilla',
'konqueror'        => 'Konqueror',
'links'         => 'Links',
'lynx'             => 'Lynx',
'omniweb'         => 'OmniWeb',
'opera'         => 'Opera',
'msie 6\.0'     => 'Microsoft Internet Explorer 6.0',
'apachebench'     => 'ApacheBench',
'wget'             => 'Wget',
'22acidownload' => '22AciDownload',
'aol\\-iweng'     => 'AOL-Iweng',
'amaya'         => 'Amaya',
'amigavoyager'     => 'AmigaVoyager',
'aweb'             => 'AWeb',
'bpftp'         => 'BPFTP',
'chimera'         => 'Chimera',
'cyberdog'         => 'Cyberdog',
'dillo'         => 'Dillo',
'dreamcast'     => 'Dreamcast',
'downloadagent' => 'DownloadAgent',
'ecatch'         => 'eCatch',
'emailsiphon'     => 'EmailSiphon',
'encompass'        => 'Encompass',
'friendlyspider' => 'FriendlySpider',
'fresco'         => 'ANT Fresco',
'galeon'        => 'Galeon',
'getright'         => 'GetRight',
'headdump'         => 'HeadDump',
'hotjava'         => 'Sun HotJava',
'ibrowse'         => 'IBrowse',
'intergo'         => 'InterGO',
'k-meleon'         => 'K-Meleon',
'linemodebrowser' => 'W3C Line Mode Browser',
'lotus-notes'     => 'Lotus Notes web client',
'macweb'         => 'MacWeb',
'multizilla'     => 'MultiZilla',
'ncsa_mosaic'     => 'NCSA Mosaic',
'netpositive'     => 'NetPositive',
'nutscrape'     => 'Nutscrape',
'msfrontpageexpress' => 'MS FrontPage Express',
'phoenix'         => 'Phoenix',
'firebird'         => 'Mozilla Firebird',
'firefox'         => 'Mozilla Firefox',
'safari'         => 'Safari',
'tzgeturl'         => 'TzGetURL',
'viking'         => 'Viking',
'webfetcher'     => 'WebFetcher',
'webexplorer'     => 'IBM-WebExplorer',
'webmirror'     => 'WebMirror',
'webvcr'         => 'WebVCR',
// Site grabbers
'teleport'         => 'TelePort Pro',
'webcapture'     => 'Acrobat',
'webcopier'     => 'WebCopier',
// Music only browsers
'real'             => 'RealAudio or compatible (media player)',
'winamp'         => 'WinAmp (media player)',                // Works for winampmpeg and winamp3httprdr
'windows-media-player' => 'Windows Media Player (media player)',
'audion'         => 'Audion (media player)',
'freeamp'         => 'FreeAmp (media player)',
'itunes'         => 'Apple iTunes (media player)',
'jetaudio'         => 'JetAudio (media player)',
'mint_audio'     => 'Mint Audio (media player)',
'mpg123'         => 'mpg123 (media player)',
'nsplayer'         => 'NetShow Player (media player)',
'sonique'         => 'Sonique (media player)',
'uplayer'         => 'Ultra Player (media player)',
'xmms'             => 'XMMS (media player)',
'xaudio'         => 'Some XAudio Engine based MPEG player (media player)',
// PDA/Phonecell browsers
'alcatel'         => 'Alcatel Browser (PDA/Phone browser)',
'ericsson'         => 'Ericsson Browser (PDA/Phone browser)',
'mot-'             => 'Motorola Browser (PDA/Phone browser)',
'nokia'         => 'Nokia Browser (PDA/Phone browser)',
'panasonic'     => 'Panasonic Browser (PDA/Phone browser)',
'philips'         => 'Philips Browser (PDA/Phone browser)',
'sonyericsson'     => 'Sony/Ericsson Browser (PDA/Phone browser)',
'mmef'             => 'Microsoft Mobile Explorer (PDA/Phone browser)',
'mspie'         => 'MS Pocket Internet Explorer (PDA/Phone browser)',
'wapalizer'     => 'WAPalizer (PDA/Phone browser)',
'wapsilon'         => 'WAPsilon (PDA/Phone browser)',
'webcollage'     => 'WebCollage (PDA/Phone browser)',
'up\.'             => 'UP.Browser (PDA/Phone browser)',                    // Works for UP.Browser and UP.Link
// PDA/Phonecell I-Mode browsers
'docomo'         => 'I-Mode phone (PDA/Phone browser)',
'portalmmm'     => 'I-Mode phone (PDA/Phone browser)',
// Others (TV)
'webtv'         => 'WebTV browser',
// Other kind of browsers
'csscheck'         => 'WDG CSS Validator',
'w3m'             => 'w3m',
'w3c_css_validator' => 'W3C CSS Validator',
'w3c_validator' => 'W3C HTML Validator',
'wdg_validator' => 'WDG HTML Validator',
'webzip'         => 'WebZIP',
'staroffice'     => 'StarOffice',
'mozilla'         => 'Mozilla',
'libwww'         => 'LibWWW',
);


// BrowsersHashAreGrabber
// Put here an entry for each browser in BrowsersSearchIDOrder that are grabber
// browsers.
//---------------------------------------------------------------------------
$BrowsersHereAreGrabbers = array (
'teleport'         => '1',
'webcapture'    => '1',
'webcopier'     => '1',
);


// BrowsersHashIcon
// Each Browsers Search ID is associated to a string that is the name of icon
// file for this browser.
//---------------------------------------------------------------------------
$BrowsersHashIcon = array (
// Standard web browsers
'msie'             => 'msie',
'netscape'         => 'netscape',

'icab'             => 'icab',
'go!zilla'         => 'gozilla',
'konqueror'     => 'konqueror',
'links'         => 'notavailable',
'lynx'             => 'lynx',
'omniweb'         => 'omniweb',
'opera'         => 'opera',
'wget'             => 'notavailable',
'22acidownload' => 'notavailable',
'aol\\-iweng'     => 'notavailable',
'amaya'         => 'amaya',
'amigavoyager'     => 'notavailable',
'aweb'             => 'notavailable',
'bpftp'         => 'notavailable',
'chimera'         => 'chimera',
'cyberdog'         => 'notavailable',
'dillo'         => 'notavailable',
'dreamcast'     => 'dreamcast',
'downloadagent' => 'notavailable',
'ecatch'         => 'notavailable',
'emailsiphon'     => 'notavailable',
'encompass'        => 'notavailable',
'friendlyspider' => 'notavailable',
'fresco'         => 'notavailable',
'galeon'         => 'galeon',
'getright'         => 'getright',
'headdump'         => 'notavailable',
'hotjava'         => 'notavailable',
'ibrowse'         => 'ibrowse',
'intergo'         => 'notavailable',
'k-meleon'         => 'kmeleon',
'linemodebrowser' => 'notavailable',
'lotus-notes'     => 'notavailable',
'macweb'         => 'notavailable',
'multizilla'     => 'multizilla',
'ncsa_mosaic'     => 'notavailable',
'netpositive'     => 'netpositive',
'nutscrape'     => 'notavailable',
'msfrontpageexpress' => 'notavailable',
'phoenix'         => 'phoenix',
'firebird'         => 'firebird',
'safari'         => 'safari',
'tzgeturl'         => 'notavailable',
'viking'         => 'notavailable',
'webfetcher'     => 'notavailable',
'webexplorer'     => 'notavailable',
'webmirror'     => 'notavailable',
'webvcr'         => 'notavailable',
// Site grabbers
'teleport'         => 'teleport',
'webcapture'     => 'adobe',
'webcopier'     => 'webcopier',
// Music only browsers
'real'             => 'mediaplayer',
'winamp'         => 'mediaplayer',                // Works for winampmpeg and winamp3httprdr
'windows-media-player' => 'mediaplayer',
'audion'         => 'mediaplayer',
'freeamp'         => 'mediaplayer',
'itunes'         => 'mediaplayer',
'jetaudio'         => 'mediaplayer',
'mint_audio'     => 'mediaplayer',
'mpg123'         => 'mediaplayer',
'nsplayer'         => 'mediaplayer',
'sonique'         => 'mediaplayer',
'uplayer'         => 'mediaplayer',
'xmms'             => 'mediaplayer',
'xaudio'         => 'mediaplayer',
// PDA/Phonecell browsers
'alcatel'         => 'pdaphone',                // Alcatel
'ericsson'         => 'pdaphone',                // Ericsson
'mot-'             => 'pdaphone',                    // Motorola
'nokia'         => 'pdaphone',                    // Nokia
'panasonic'     => 'pdaphone',                // Panasonic
'philips'         => 'pdaphone',                // Philips
'sonyericsson'     => 'pdaphone',            // Sony/Ericsson
'mmef'             => 'pdaphone',
'mspie'         => 'pdaphone',
'wapalizer'     => 'pdaphone',
'wapsilon'         => 'pdaphone',
'webcollage'     => 'pdaphone',
'up\.'             => 'pdaphone',                    // Works for UP.Browser and UP.Link
// PDA/Phonecell I-Mode browsers
'docomo'         => 'pdaphone',
'portalmmm'     => 'pdaphone',
// Others (TV)
'webtv'         => 'webtv',
// Other kind of browsers
'csscheck'         => 'notavailable',
'w3m'             => 'notavailable',
'w3c_css_validator' => 'notavailable',
'w3c_validator' => 'notavailable',
'wdg_validator' => 'notavailable',
'webzip'         => 'webzip',
'staroffice'     => 'staroffice',
'mozilla'         => 'mozilla',
'libwww'         => 'notavailable'
);


// TODO
// Add Gecko category -> IE / Netscape / Gecko(except Netscape) / Other
// IE (based on Mosaic)
// Netscape family
// Gecko except Netscape (Mozilla, Firebird (was Phoenix), Galeon, AmiZilla, Dino, and few others)
// Opera (Opera 6/7)
// KHTML (Konqueror, Safari)
?>