Размер файла: 598B
<?php
require_once ("includes/start.php");
require_once ("includes/functions.php");
$TimeZone="+10";
$New_Time = time() + ($TimeZone * 60 * 60);
$_time=gmdate("H:i",$New_Time);
$hostname = gethostbyaddr($_SERVER["REMOTE_ADDR"]);
$browser = explode("(",$_SERVER["HTTP_USER_AGENT"]);
$browser = $browser[0];
$referer = $_SERVER["HTTP_REFERER"];
$p=session_name();
$r=session_id();
/***************** Creating the log ******************/
$iplogs = ($ip.'|'.$browser.'|'.$referer.'|'.$p.'|'.$r.'|'.$_time.'|');
if ($iplogs!=""){
write_files(DATADIR."iplogs.dat", $iplogs, 1);
}
?>