Jump to content

Help! Weird Script


Seeo

Recommended Posts

Hello

here is a script, can somebody please explain this script to me...? what is the purpose of this script?....

 

 

var ipaddress = '~DELETED~';
var browser = 'MSIE 5.00';
var operatingsystem = 'Windows Vista';
var countrylanguage = '';
var referer = escape(document.referrer);
var screenresolution = screen.width+'x'+screen.height;
var colordepth = screen.colorDepth;
var url = location.href;

init_counter();

function init_counter() {
	var clickscript = new Image();
	clickscript.src = 'http://www.countall.com/count2.php?hit=1&u=25745&title=http://lostinheaven.freeweb7.com&ipaddress='+ ipaddress +'&browser='+ browser +'&operatingsystem='+ operatingsystem +'&countrylanguage='+ countrylanguage +'&screenresolution='+ screenresolution +'&colordepth='+ colordepth +'&referer='+ referer +'&url='+ url;
	startclicklog(); }

function startclicklog() {
	if (typeof document.onmousedown == 'function') {
		currentFunc = document.onmousedown;
		document.onmousedown = function(e) { 
			catchactivity(e); return currentFunc(e); } }
	else { document.onmousedown = catchactivity; } }

function findlink(el) {
	var tagName = 'A';
	var parent = el.parentNode;
	if (el.tagName != 'IMG') var df = el.href;
	if (!df&&parent) {
		if (parent.tagName==tagName) return parent.href;
		else return findlink(parent); }
	else return df; }

function catchactivity(e) {
	try {
		if (e == undefined) e = window.event;
		if (e.srcElement) href = findlink(e.srcElement);
		else href = findlink(e.target);
		if (href)
			var clickscript = new Image();
			clickscript.src = 'http://www.countall.com/count2.php?hit=0&u=25745&title=http://lostinheaven.freeweb7.com&ipaddress='+ ipaddress +'&url='+ url +'&href='+ href;
			var href = ''; }
	catch(e) { }
	return true; }


document.write('');
document.write('');

 

 

Help me please...

 

Link to comment
https://forums.phpfreaks.com/topic/99158-help-weird-script/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.