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

