// Statistieken meetbestand : 'getats.asp'
// Geschreven door : WebNET
// Jaar : 2004
// Inhoud van het bestand:
//
// Functies:
//
// Screenres() : Meet de schermresolutie
// Browser() : Welke browser wordt er gebruikt
// Os() : Besturingssysteem
// Itemcode() : Artikelnummer dat wordt bekeken
// Screenres()
// De scherm resolutie wordt gemeten
function screenres()
{
s = screen.width + "x" + screen.height
return (s)
}
// Browser()
// Er wordt gekeken welke browser er wordt gebruikt door de gebruiker
function Is (){
var agt=navigator.userAgent.toLowerCase();
this.major = parseInt(navigator.appVersion);
this.minor = parseFloat(navigator.appVersion);
this.nav = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1)
&& (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1)
&& (agt.indexOf('webtv')==-1) && (agt.indexOf('hotjava')==-1));
this.nav2 = (this.nav && (this.major == 2));
this.nav3 = (this.nav && (this.major == 3));
this.nav4 = (this.nav && (this.major == 4));
this.nav4up = (this.nav && (this.major >= 4));
this.navonly = (this.nav && ((agt.indexOf(";nav") != -1) ||
(agt.indexOf("; nav") != -1)) );
this.nav6 = (this.nav && (this.major == 5));
this.nav6up = (this.nav && (this.major >= 5));
this.gecko = (agt.indexOf('gecko') != -1);
this.ie = ((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1));
this.ie3 = (this.ie && (this.major < 4));
this.ie4 = (this.ie && (this.major == 4) && (agt.indexOf("msie 4")!=-1) );
this.ie4up = (this.ie && (this.major >= 4));
this.ie5 = (this.ie && (this.major == 4) && (agt.indexOf("msie 5.0")!=-1) );
this.ie5_5 = (this.ie && (this.major == 4) && (agt.indexOf("msie 5.5") !=-1));
this.ie5up = (this.ie && !this.ie3 && !this.ie4);
this.ie5_5up =(this.ie && !this.ie3 && !this.ie4 && !this.ie5);
this.ie6 = (this.ie && (this.major == 4) && (agt.indexOf("msie 6.")!=-1) );
this.ie6up = (this.ie && !this.ie3 && !this.ie4 && !this.ie5 && !this.ie5_5);
this.ie7 = (this.ie && (this.major == 4) && (agt.indexOf("msie 7.")!=-1) );
this.ie7up = (this.ie && !this.ie3 && !this.ie4 && !this.ie5 && !this.ie5_5 && !this.ie6);
this.aol = (agt.indexOf("aol") != -1);
this.aol3 = (this.aol && this.ie3);
this.aol4 = (this.aol && this.ie4);
this.aol5 = (agt.indexOf("aol 5") != -1);
this.aol6 = (agt.indexOf("aol 6") != -1);
this.opera = (agt.indexOf("opera") != -1);
this.opera2 = (agt.indexOf("opera 2") != -1 || agt.indexOf("opera/2") != -1);
this.opera3 = (agt.indexOf("opera 3") != -1 || agt.indexOf("opera/3") != -1);
this.opera4 = (agt.indexOf("opera 4") != -1 || agt.indexOf("opera/4") != -1);
this.opera5 = (agt.indexOf("opera 5") != -1 || agt.indexOf("opera/5") != -1);
this.opera5up = (this.opera && !this.opera2 && !this.opera3 && !this.opera4);
this.webtv = (agt.indexOf("webtv") != -1);
this.TVNavigator = ((agt.indexOf("navio") != -1) || (agt.indexOf("navio_aoltv") != -1));
this.AOLTV = this.TVNavigator;
this.hotjava = (agt.indexOf("hotjava") != -1);
this.hotjava3 = (this.hotjava && (this.major == 3));
this.hotjava3up = (this.hotjava && (this.major >= 3));
if (this.nav2 || this.ie3) this.js = 1.0;
else if (this.nav3) this.js = 1.1;
else if (this.opera5up) this.js = 1.3;
else if (this.opera) this.js = 1.1;
else if ((this.nav4 && (this.minor <= 4.05)) || this.ie4) this.js = 1.2;
else if ((this.nav4 && (this.minor > 4.05)) || this.ie5) this.js = 1.3;
else if (this.hotjava3up) this.js = 1.4;
else if (this.nav6 || this.gecko) this.js = 1.5;
else if (this.nav6up) this.js = 1.5;
else if (this.ie5up) this.js = 1.3
else this.js = 0.0;
this.win = ( (agt.indexOf("win")!=-1) || (agt.indexOf("16bit")!=-1) );
this.win95 = ((agt.indexOf("win95")!=-1) || (agt.indexOf("windows 95")!=-1));
this.win16 = ((agt.indexOf("win16")!=-1) ||
(agt.indexOf("16bit")!=-1) || (agt.indexOf("windows 3.1")!=-1) ||
(agt.indexOf("windows 16-bit")!=-1) );
this.win31 = ((agt.indexOf("windows 3.1")!=-1) || (agt.indexOf("win16")!=-1) ||
(agt.indexOf("windows 16-bit")!=-1));
this.win98 = ((agt.indexOf("win98")!=-1) || (agt.indexOf("windows 98")!=-1));
this.winnt = ((agt.indexOf("winnt")!=-1) || (agt.indexOf("windows nt")!=-1));
this.win32 = (this.win95 || this.winnt || this.win98 ||
((this.major >= 4) && (navigator.platform == "Win32")) ||
(agt.indexOf("win32")!=-1) || (agt.indexOf("32bit")!=-1));
this.winme = ((agt.indexOf("win 9x 4.90")!=-1));
this.win2k = ((agt.indexOf("windows nt 5.0")!=-1));
this.winxp = ((agt.indexOf("windows nt 5.1")!=-1));
this.os2 = ((agt.indexOf("os/2")!=-1) ||
(navigator.appVersion.indexOf("OS/2")!=-1) ||
(agt.indexOf("ibm-webexplorer")!=-1));
this.mac = (agt.indexOf("mac")!=-1);
if (this.mac && this.ie5up) this.js = 1.4;
this.mac68k = (this.mac && ((agt.indexOf("68k")!=-1) ||
(agt.indexOf("68000")!=-1)));
this.macppc = (this.mac && ((agt.indexOf("ppc")!=-1) ||
(agt.indexOf("powerpc")!=-1)));
this.sun = (agt.indexOf("sunos")!=-1);
this.sun4 = (agt.indexOf("sunos 4")!=-1);
this.sun5 = (agt.indexOf("sunos 5")!=-1);
this.suni86= (this.sun && (agt.indexOf("i86")!=-1));
this.irix = (agt.indexOf("irix") !=-1); // SGI
this.irix5 = (agt.indexOf("irix 5") !=-1);
this.irix6 = ((agt.indexOf("irix 6") !=-1) || (agt.indexOf("irix6") !=-1));
this.hpux = (agt.indexOf("hp-ux")!=-1);
this.hpux9 = (this.hpux && (agt.indexOf("09.")!=-1));
this.hpux10= (this.hpux && (agt.indexOf("10.")!=-1));
this.aix = (agt.indexOf("aix") !=-1); // IBM
this.aix1 = (agt.indexOf("aix 1") !=-1);
this.aix2 = (agt.indexOf("aix 2") !=-1);
this.aix3 = (agt.indexOf("aix 3") !=-1);
this.aix4 = (agt.indexOf("aix 4") !=-1);
this.linux = (agt.indexOf("inux")!=-1);
this.sco = (agt.indexOf("sco")!=-1) || (agt.indexOf("unix_sv")!=-1);
this.unixware = (agt.indexOf("unix_system_v")!=-1);
this.mpras = (agt.indexOf("ncr")!=-1);
this.reliant = (agt.indexOf("reliantunix")!=-1);
this.dec = ((agt.indexOf("dec")!=-1) || (agt.indexOf("osf1")!=-1) ||
(agt.indexOf("dec_alpha")!=-1) || (agt.indexOf("alphaserver")!=-1) ||
(agt.indexOf("ultrix")!=-1) || (agt.indexOf("alphastation")!=-1));
this.sinix = (agt.indexOf("sinix")!=-1);
this.freebsd = (agt.indexOf("freebsd")!=-1);
this.bsd = (agt.indexOf("bsd")!=-1);
this.unix = ((agt.indexOf("x11")!=-1) || this.sun || this.irix || this.hpux ||
this.sco ||this.unixware || this.mpras || this.reliant ||
this.dec || this.sinix || this.aix || this.linux || this.bsd || this.freebsd);
this.vms = ((agt.indexOf("vax")!=-1) || (agt.indexOf("openvms")!=-1));
}
var is;
var isIE3Mac = false;
if ((navigator.appVersion.indexOf("Mac")!=-1) && (navigator.userAgent.indexOf("MSIE")!=-1) &&
(parseInt(navigator.appVersion)==3))
isIE3Mac = true;
else is = new Is();
// Het browser type wordt gemeten
function browser_check(){
if (isIE3Mac) browser = "IE3 Mac";
else {
// Is de browser gemeten dan wordt er een naam aan de variabele (browser) gekoppeld
if (is.nav) browser = ("Netscape");
if (is.nav2) browser = ("Netscape 2");
if (is.nav3) browser = ("Netscape 3");
if (is.nav4) browser = ("Netscape 4");
if (is.nav4up) browser = ("Netscape 4 of hoger");
if (is.nav6) browser = ("Netscape 6");
if (is.nav6up) browser = ("Netscape 6 of hoger");
if (is.gecko) browser = ("Netscape 7");
if (is.navonly) browser = ("Navigator");
if (is.ie) browser = ("Microsoft Internet Explorer");
if (is.ie3) browser = ("Microsoft Internet Explorer 3");
if (is.ie4) browser = ("Microsoft Internet Explorer 4");
if (is.ie4up) browser = ("Microsoft Internet Explorer 4");
if (is.ie5) browser = ("Microsoft Internet Explorer 5");
if (is.ie5up) browser = ("Microsoft Internet Explorer 5");
if (is.ie5_5) browser = ("Microsoft Internet Explorer 5.5");
if (is.ie5_5up) browser = ("Microsoft Internet Explorer 5.5");
if (is.ie6) browser = ("Microsoft Internet Explorer 6");
if (is.ie6up) browser = ("Microsoft Internet Explorer 6");
if (is.aol) browser = ("AOL");
if (is.aol3) browser = ("AOL 3");
if (is.aol4) browser = ("AOL 4");
if (is.aol5) browser = ("AOL 5");
if (is.aol6) browser = ("AOL 6");
if (is.opera) browser = ("Opera");
if (is.opera2) browser = ("Opera 2");
if (is.opera3) browser = ("Opera 3");
if (is.opera4) browser = ("Opera 4");
if (is.opera5) browser = ("Opera 5");
if (is.opera5up) browser = ("Opera 5");
if (is.webtv) browser = ("WebTV");
if (is.hotjava) browser = ("HotJava");
if (is.hotjava3) browser = ("HotJava 3");
if (is.hotjava3up) browser = ("HotJava 3");
if (is.TVNavigator) browser = ("AOL TV Navigator");
}
// De browser naam wordt terug gegeven
return (browser);
}
// Meten van het besturings systeem
function platform(){
if (!isIE3Mac) {
if (is.win) os = ("Microsoft Windows 1.0");
if (is.win16) os = ("Microsoft Windows 16 bit");
if (is.win31) os = ("Microsoft Windows 3.1");
if (is.win32) os = ("Microsoft Windows 32 bit");
if (is.win95) os = ("Microsoft Windows 95");
if (is.win98) os = ("Microsoft Windows 98");
if (is.winme) os = ("Microsoft Windows ME");
if (is.winnt) os = ("Microsoft Windows NT");
if (is.win2k) os = ("Microsoft Windows 2000");
if (is.winxp) os = ("Microsoft Windows XP");
if (is.os2) os = ("OS 2");
if (is.mac) os = ("MAC");
if (is.mac68k) os = ("MAC 68");
if (is.macppc) os = ("MAC PowerPC");
if (is.unix) os = ("Unix");
if (is.sun) os = ("Sun");
if (is.sun4) os = ("Sun 4");
if (is.sun5) os = ("Sun 5");
if (is.suni86) os = ("Sun i86");
if (is.irix) os = ("Irix");
if (is.irix5) os = ("Irix 5");
if (is.irix6) os = ("Irix 6");
if (is.hpux) os = ("HP ux");
if (is.hpux9) os = ("HP ux 9");
if (is.hpux10) os = ("HP ux 10");
if (is.aix) os = ("AIX");
if (is.aix1) os = ("AIX 1");
if (is.aix2) os = ("AIX 2");
if (is.aix3) os = ("AIX 3");
if (is.aix4) os = ("AIX 4");
if (is.linux) os = ("Linux");
if (is.sco) os = ("SCO");
if (is.unixware) os = ("Unixware");
if (is.mpras) os = ("NCR");
if (is.reliant) os = ("Reliant UNIX");
if (is.dec) os = ("DEC");
if (is.sinix) os = ("Sinix");
if (is.bsd) os = ("BSD");
if (is.freebsd) os = ("FreeBSD");
if (is.vms) os = ("VMS");
}
// Het gemeten besturingssysteem wordt teruggegeven
return (os);
}
//Functies worden uitgevoerd
//Alle waarden worden doorgegeven aan het bestand die deze wegschrijft in de dB
var ua = navigator.userAgent;
s = screenres();
browser = browser_check();
ossys = platform();
itemcode = "";
customercode = "";
page = "/pro4group/index.asp";
zoekwrd = "";
found = "";
offer = "";
order = "";
server = "images.mondialgifts.be";
referal = "";
sessie = "967065644";
// Er wordt een onzichtbaar plaatje op het beeld geschreven dat de statistieken door geeft voor verdere verwerking
src = "/system/stats/stats_to_db.asp?s="+s+"&browser="+browser+"&ossys="+ossys+"&itemcode="+itemcode+"&page="+page+"&search="+zoekwrd+"&offer="+offer+"&order="+order+"&server="+server+"&referal="+referal+"&sessie="+sessie+"&customercode="+customercode+"&found="+found;
src = "
";
document.write(src);
document.close();