</noinclude><div id="ref-test"><noinclude>Browser referrers [relative numbers; '''short-time''' footer stats]</noinclude><includeonly><!--User:Melancholie/stats/referrers--></includeonly></div><script type="text/javascript" language="JavaScript">/*<![CDATA[*/
// by [[w:als:User:Melancholie]]
// Do *not* gather complete sensitive/private referrers; never!<noinclude>
//
// Use inlinks as basis; use Yahoo, AltaVista, Google, Alexa?, MSN?
// Use syntax: "link:http://lang.project.org/" |+ "wiki/" there
// There will be a Perl script to gather inlinks soon!
// ...list of search engines
// search/link (url=?...)
// Set allowed non-sensitive/non-private hostnames [(sub.)domain(.TLD)], see [[MediaWiki:PublicReferrers]]!
//</noinclude>
// Once again, do *not* gather complete sensitive/private referrers!
//
var ref = document.referrer.toLowerCase();
var visitDate = new Date();//...&smaxage=1&maxage=1
if (visitDate.getUTCDate()) {
visitDay = visitDate.getUTCDate();
} else {
visitDay = visitDate.getDate();
}
if (visitDay == 26 && wgUserName == null && navigator.cookieEnabled == true) {
var isOwn;
var pubRef;
if (!ref || ref == "" || ref.search(/^[ -]+$/) > -1) {
var noRef = 1;
} else {
var ownRef = wgServer.replace(/^http:\/\//, "");//=location.hostname
if (ref.indexOf(ownRef) != 7 && ref.indexOf(ownRef) != 0) {// RegExp.$1,$2 not usable (in footer) > Common.js
// if (ref.search(/\.(co|com)\.(br|uk)\//) > 0) {} else {//wiki.mozilla.org/TLD_List
var refDom = ref.replace(/^([^\/]*)\/*([^\/]*)[\/\.]([^\/\.]+)\.[^\/\.]+\/?.*$/, "$3");//\%
if (refDom != "") {
var refHost = ref.replace(/^([^\/]*)\/*([^\/]+)\.([^\/\.]+)\/?.*$/, "$3");//\%
// if (ref.search(/\.(co|com)\.(br|uk)\//) > 0) {} else {//wiki.mozilla.org/TLD_List
// de.*.search.yahoo.com
// var refSub = ref.replace(/^([^\/]*)(\/*)([^\/]+\.[^\/\.]+\.[^\/\.]+)\/?.*$/, "$3");//\%
var refSub = ref.replace(/^([^\/]*)(\/*)([^\/]+)\.[^\/\.]+\.[^\/\.]+\/?.*$/, "$3");//\%
var rMax = 1;
if (refHost && refHost != "") {rMax = 2;}
if (refSub && refSub != "") {rMax = 3;}
var refSubDomTLD = refDom;
for (var r = 0; r < rMax; r++) {
if (r == 1) {
refSubDomTLD += "."+refHost;
}
if (r == 2) {
refSubDomTLD = refSub+"."+refSubDomTLD;
}
document.write('<script type="text/javascript" src="/w/index.php?title=MediaWiki%3APublicReferrers/'+refSubDomTLD+'&action=raw&ctype=text/javascript&dontcountme=s"><\/script>');
}
}
} else {
isOwn = 1;
}
}
if (!isOwn) {
// When loaded + on abort (due to (back-/forward-/auto-)refresh of IE(7), Safari, Opera)
function iframeRemoval() {$("ref-test").innerHTML = "";}
window.onload = iframeRemoval;
function logRef() {
var navRef = "Other";
if (noRef) {// empty, unknown
navRef = "Blank";
} else if (ref.indexOf("gadget:/") > -1) {
navRef = "Gadget";
} else if (ref.indexOf("widget:/") > -1) {//~?
navRef = "Widget";
} else if (ref.indexOf("applet:/") > -1) {//~?
navRef = "Applet";
} else if (pubRef && pubRef.indexOf(refDom) > -1) {// given, allowed; unchanged
navRef = pubRef;
} else if (ref.search(/(search|translate)/) > -1) {//query|result
if (ref.indexOf("yacy") > -1) {
navRef = "YaCy";
} else {//GPU
navRef = "Search";
}
} else if (ref.search(/(forum|board|thread)/) > -1) {//community
navRef = "Forum";
} else if (ref.indexOf("blog") > -1) {
navRef = "Blog";
} else if (ref.search(/(chat|i[cr][cq][:\.]|xmpp)/) > -1) {
navRef = "Chat";
} else if (ref.indexOf("http") != 0) {
navRef = "Prog";
} else if (ref.search(/[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+/) > -1) {
navRef = "IP";
}
if (document.cookie.indexOf("navRef="+navRef) < 0) {
// Do NOT use your own wiki here, tokipona is dedicated to this statistics:
$("ref-test").innerHTML = '<iframe style="display: none;" src="http://tokipona.wikipedia.org/wiki/'+wgDBname+'_-_Ref%3A_'+navRef+'?action=raw&ctype=text/css" onload="iframeRemoval()"><\/iframe>';
document.cookie = "navRef="+navRef+"; path=/";
}
}
addOnloadHook(logRef);
}
}
/*]]>*/</script><noinclude>