Файл: DarkAge/who1.php
Строк: 24
<?
Error_Reporting(E_ALL & ~E_NOTICE);
include_once("files/antixak.php");
$log = htmlspecialchars(stripslashes($log));
$pas = htmlspecialchars(stripslashes($pas));
include_once("up.php");
$whoshowuser=1000; //на стр.
echo'<div id="menu6"><b>Сейчас в игре:</b><br /><br />';
$file = @file("data/reg/$data[0].reg");
$datal = explode("|",$file[$i]);
$file = @file("data/who.dat");
$file = array_reverse($file);
$total = count($file);
if (empty($_GET['start'])) $start = 0;
else $start = $_GET['start'];
if ($total < $start + $whoshowuser){ $end = $total; }
else {$end = $start + $whoshowuser; }
for ($i = $start; $i < $end; $i++){
$data = explode("|",$file[$i]);
$i2=round($i+1);
$cur=time();
$cu=$cur-$data[2];
$cu=round($cu/60);
if($cu<6){$cu="on";}
if($cu>=6 && $cu<60){$cu="$cu минут назад";}
if($cu>=60){$cu=round($cu/60); $cu="$cu часов назад";}
$cu=stripslashes($cu);
$cu=str_replace("\","",$cu);
$cu=str_replace("/","",$cu);
$cu=str_replace("|","",$cu);
$cu=str_replace("$","",$cu);
$cu=str_replace("<","",$cu);
$cu=str_replace(">","",$cu);
//////////////////////////////////
$data[0]=stripslashes($data[0]);
$data[0]=htmlspecialchars($data[0]);
$data[0]=str_replace("|","",$data[0]);
if ($cu=="on"){
if($data[0]!=="ZenS.GM" && $data[0]!=="ZomBiE.GM"){
echo'<li><a href="search.php?log='.$log.'&pas='.$pas.'&nick='.$data[0].'&go=go">'.$data[0].'</a>[ '.$data[3].' lvl]<br />';
}else{
echo'<li><a href="search.php?log='.$log.'&pas='.$pas.'&nick='.$data[0].'&go=go"><font color=#00ff00>'.$data[0].'</font></a> [ '.$data[3].' lvl]<br />';}
}}
//'.$i2.'
/*
if ($start != 0) {echo '<a href="who.php?start='.($start - $whoshowuser).'">Назад |</a> ';}
if ($total > $start + $whoshowuser) {echo ' <a href="who.php?start='.($start + $whoshowuser).'">| Далее</a>';}
*/
echo'</div>';
////////////////////////////////////
echo"<hr>";
require_once"down.php";
////////////////////////////////////
exit;
?>