File size: 1.42Kb
<?
///////////////////////////////////////////////////////////////////////////////////////////
/////
///// Made by : VANTUZ
///// E-mail : [email protected]
///// WEB-site : http://www.pizdec.ru
///// WAP-site : http://wap.pizdec.ru
///// Skripts : http://wap.pizdec.ru/skripts
/////
//////////////////////////////////////////////////////////////////////////////////////////////
$info ="online/info.dat";
$infos=fopen($info,"a+");
$ip=getenv("REMOTE_ADDR");
$in=getenv("HTTP_USER_AGENT");
$from=getenv("HTTP_REFERER");
$host=getenv("REQUEST_URI");
$oops = "[$ip]";
$oops2 = "[$host]";
$oops3 = "[$from]";
$oop = "$in";
$oops2 = str_replace("[/]","[home]",$oops2);
$oops3 = str_replace("[]","[home]",$oops3);
$oops=htmlspecialchars(stripslashes($oops));
$oop=htmlspecialchars(stripslashes($oop));
$oops2=htmlspecialchars(stripslashes($oops2));
$oops3=htmlspecialchars(stripslashes($oops3));
$time= date("H:i:s");
fputs($infos,"$time<br/><b>$oop </b>$oops $oops3 $oops2<br/>\n");
fclose($infos);
$dat = "online/count.dat";
$dats=fopen($dat,"r");
if ($dats) {
$count=fgets($dats,10);
fclose($dats);
} else { $count=0; }
$count++;
$dats = @fopen($dat,"w");
if ($dats) {
$count=fputs($dats,$count);
fclose($dats); }
?>