Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.