File size: 798B
<?php
$filec=@file('log_click1');
##$filei=file('log_imp1');
$countc=count($filec);
##$counti=count($filei);
echo "<b>Last click served</b><br /><marquee loop='infinite'>";
$temp=array();
$temp[]='0.0.0.0';
$y=1;
for($i=$countc;$i>=$countc-300;$i--){
$v=$filec[$i];
$v=trim($v);
$t=explode('|',$v);
if($t[1]=='' || $t==null) continue;
$x=implode('|',$temp);
if(!stristr($x,$t[1])){
echo "<img src='./cnty.php?ip=".$t[1]."' > ";
$temp[]=$t[1];
$y++;
}
if($y==30)
break;
}
echo "</marquee>";
/*
echo "<b>Last 20 impression served</b><br /> <marquee loop='infinite'>";
for($i=$counti-20;$i<=$counti;$i++){
$v=$filei[$i];
$v=trim($v);
$t=explode('|',$v);
echo "<img src='./cnty.php?ip=".$t[1]."' alt='img' > ";
if($k==20) break;
}
echo "</marquee>";*/
?>