Sapand printre proiecte mai vechi, am descoperit intr-un proiect din 2003 codul de tracking stratistici.ro. Cam la fel arata pe acele vremuri si codul trafic.ro – adica tot un carnat imens, fata de cele cateva randuri de cod de acum.

Iata cum arata codul cu pricina:

<!– start: statistici.ro v3.7 –>
<div align=”center”>
<script language=”JavaScript” type=”text/javascript”>
<!–
uid=’0ET7′;no=’0′;
var isr=”,isc=”,ir=”;
var d = document;
ibn=navigator.appName;if(ibn.substring(0,9)==”Microsoft”){ibn=”MSIE”;}
ij=navigator.javaEnabled()==true?1:0;
if ((ir == “”) || (ir == “unknown origin”) || (ir == “unknown”) || (ir == “undefined”))
if (d[“parent”] != null)
if (parent[“document”] != null)
if (parent.d[“referrer”] != null)
if (typeof(parent.document) == “object”){
ir=parent.d.referrer;
}
if ((ir == “”) || (ir == “unknown origin”) || (ir == “unknown”) || (ir == “undefined”))
if (d[“referrer”] != null){
ir = d.referrer;
}
idu=escape(d.URL);idt=escape(d.title);
// –>
</script>
<script language=”Javascript” type=”text/javascript”>
<!–
var ifi = 0;
var ifv = 0;
MSDetect = “false”;
if (navigator.plugins && navigator.plugins.length){
x = navigator.plugins[“Shockwave Flash”];
if (x){
ifi = 2;
if (x.description){
y = x.description;
ifv = y.charAt(y.indexOf(‘.’)-1);
}
}
else
ifi = 1;
if (navigator.plugins[“Shockwave Flash 2.0”]){
ifi = 2;
ifv = 2;
}
}
else if (navigator.mimeTypes && navigator.mimeTypes.length){
x = navigator.mimeTypes[‘application/x-shockwave-flash’];
if (x && x.enabledPlugin)
ifi = 2;
else
ifi = 1;
}
else
MSDetect = “true”;
// –>
</script>
<script language=”VBScript”>
on error resume next
If MSDetect = “true” Then
For i = 2 to 5
If Not(IsObject(CreateObject(“ShockwaveFlash.ShockwaveFlash.” & i))) Then
Else
ifi = 2
ifv = i
End If
Next
End If
If ifi = 0 Then
ifi = 1
End If
</script>
<script language=”JavaScript1.2″ type=”text/javascript”>
<!–
s=screen;scw=s.width;sch=s.height;ibn!=”Netscape”?scc=s.colorDepth:scc=s.pixelDepth;
isr=”+scw+’x’+sch;isc=scc;
// –>
</script>
<script language=”JavaScript” type=”text/javascript”>
<!–
var d = document;wt='<a href=”http://s.statistici.ro/?uid=’+uid+’&no=’+no+’&op=stats&#8221; target=”_blank”>’;
wt+='<img border=”0″ src=”http://log.statistici.ro/s/rmcounter?uid=’+uid+’&no=’+no+’&pu=’+idu+’&pt=’+idt+’&b=’+ibn+’&rez=’+isr+’&col=’+isc;
wt+=’&ref=’+escape(ir)+’&j=’+ij+’&f=’+ifi+’:’+ifv+'”>’;
wt+='</a>’;d.writeln(wt);
//–>
</script>
<script type=”text/javascript”>var d = document;d.write(“<“);d.write(“!–  “);</script>
<noscript><a href=”http://s.statistici.ro/?uid=0ET7&no=0&op=stats&#8221; target=”_blank”><img border=”0″ src=”http://log.statistici.ro/s/rmcounter?uid=0ET7&no=0″></a></noscript&gt;
<script type=”text/javascript”>var d = document;d.write(”  –“);d.write(“>”);</script>
<!– end: statistici.ro –>

Advertisements