Вход Регистрация
Файл: DarkAge/online1.php
Строк: 13
<?
$log 
htmlspecialchars(stripslashes($log));
$pas htmlspecialchars(stripslashes($pas));
$whoshowuser=200;  //на стр.    
echo'<div id="menu3"><b>Сейчас в игре</b><br /><br />';
$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="Oнлайн - on game";}
if(
$cu>=&& $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]);
echo'<div id="
line">'.$i2.' '.$data[0].' ('.$cu.')</div>';
}
if (
$start != 0) {echo '<a href="who.php?start='.($start - $whoshowuser).'">Назад |</a> '; echo'efefef';}
if (
$total > $start + $whoshowuser) {echo ' <a href="who.php?start='.($start + $whoshowuser).'">| Далее</a>'; echo'ffffff';}
echo'</div>';
if (isset(
$web)){echo '<a href="index.php?web"><b>Назад</b></a>';}
if (isset(
$wap)){echo '<a href="index.php?wap"><b>Назад</b></a>';}
?>
Онлайн: 1
Реклама