Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as JavaScript by Taha Ali Adil ( 14 years ago )
var stats = new Object();
stats.save = function()
{
var now = new Date();
var debug = false; // this is set by php
if ([removed].hash == '#stats:Debug') { debug = true; };
var path = 'http://Yourdomain.com/stats/?record' + ((debug)?'&debug;&errors;':'') + '&key=383538626b4836484b77384836743065334e4b4f454e62416f33314f';
// Loop through the different plug-ins to assemble the query string
for (var developer in this)
{
for (var plugin in this[developer])
{
if (this[developer][plugin] && this[developer][plugin].onsave)
{
path += this[developer][plugin].onsave();
};
};
};
// Slap the current time on there to prevent caching on subsequent page views in a few browsers
path += '&'+now.getTime();
// Redirect to the debug page
if (debug) { [removed].href = path; return; };
var img = new Image();
img.src = path+'&serve;_img';
};
if (!stats.SI) { stats.SI = new Object(); }
stats.SI.Referrer =
{
onsave : function()
{
var encoded = 0;
if (typeof stats_SI_DocumentTitle == 'undefined') { stats_SI_DocumentTitle = document.title; }
else { encoded = 1; };
var referer = (window.decodeURI)?window.decodeURI(document.referrer):document.referrer;
var resource = (window.decodeURI)?window.decodeURI(document.URL):document.URL;
return '&referer;=' + escape(referer) + '&resource;=' + escape(resource) + '&resource;_title=' + escape(stats_SI_DocumentTitle) + '&resource;_title_encoded=' + encoded;
}
};
stats.save();
Revise this Paste