Размер файла: 1.57Kb
<?php
// автор скрипта - Arab
// icq - 9988817 сайт: http://bola.net.ru
$maindir = $_SERVER['DOCUMENT_ROOT'];
$now = $_SERVER['PHP_SELF'].'?'.$QUERY_STRING.'';
$now = htmlspecialchars(stripslashes($now));
$ip=htmlspecialchars(stripslashes($_SERVER['REMOTE_ADDR']));
$xagent=htmlspecialchars(stripslashes($_SERVER['HTTP_USER_AGENT']));
$xagent = stripslashes(trim($xagent));
$agent=strtok($xagent,'(');
$txxime=time();
$txxime = htmlspecialchars(stripslashes($txxime));
$time = $txxime+120;
$diridin = file_get_contents("$maindir/forum/includ/functions.php");
if(strpos($diridin,"© bola.net.ru")==false){ echo'Aдмин лoх!'; exit; }
if (!$_SESSION[login]=="" && !md5($_SESSION[password])=="" && md5($_SESSION[password])==$npassword && $_SESSION[login]==$nlogin){
$text_on = @file("$maindir/forum/data/users/$login.log");
if ($text_on!=""){ $udata = explode("|",$text_on[0]);
$onl = time();
$ontime = $onl+120;
$xyi = date("G:i/j F");
$text_on=$udata[0].'|'.$udata[1].'|'.$udata[2].'|'.$udata[3].'|'.$udata[4].'|'.$udata[5].'|'.$udata[6].'|'.$udata[7].'|'.$xyi.'|'.$udata[9].'|'.$udata[10].'|'.$udata[11].'|'.$udata[12].'|'.$udata[13].'|'.$udata[14].'|'.$udata[15].'|'.$udata[16].'|'.$udata[17].'|'.$udata[18].'|'.$udata[19].'|'.$udata[20].'|'.$udata[21].'|'.$udata[22].'|'.$udata[23].'|'.$udata[24].'|'.$udata[25].'|'.$ontime.'|'.$udata[27].'|'.$now.'|'.$udata[29].'|';
$text_on=str_replace("\r\n", "", $text_on);
$fp_on=@fopen("$maindir/forum/data/users/$login.log","r+");
@ftruncate($fp_on,0);
@fputs($fp_on,"$text_on");
@fclose($fp_on); }}
?>