Файл: darkworld/itemnogi.php
Строк: 22
<?
include_once("files/zag.php");
if (md5($pas)==$password && $log==$login && $log!=="" && md5($pas)!=="") {
$file = file("data/item/$log.dat");
$file = array_reverse($file);
$total = count($file);
for ($i = 0; $i < $total; $i++){
$data = explode(":||:",$file[$i]);
if($data[2]=="nogi"){
$data_0[]=$data[0];
$data_1[]=$data[1];
$data_2[]=$data[2];
$data_3[]=$data[3];
$data_4[]=$data[4];
$data_id[]=$i;
}}
if(empty($data_4)){echo"<small>У вас нет сапогов.</small>"; include_once"files/down.php"; exit;}
foreach($data_0 as $k=>$v)
{
$dat_screen[]="<small><b><a href="odet.php?log=$log&pas=$pas&tip=$data_2[$k]&id=$data_id[$k]">$data_4[$k]</a> <a href="info.php?log=$log&pas=$pas&tip=$data_2[$k]&id=$data_id[$k]">*</a></b><br/></small>";
}
$total = count($dat_screen);
if (empty($_GET['start'])) $start = 0;
else $start = $_GET['start'];
if ($total < $start + 10){ $end = $total; }
else {$end = $start + 10; }
for ($i = $start; $i < $end; $i++){
echo"$dat_screen[$i]";
}
if ($start !== 0) {echo '<small><a href="itemnogi.php?start='.($start - 10).'&log='.$log.'&pas='.$pas.'">Назад</a> </small>';}
if ($total > $start + 10) {echo '<small> <a href="itemnogi.php?start='.($start + 10).'&log='.$log.'&pas='.$pas.'">Далее</a></small>';}
}else{echo"<small>Пароль или логин неверен!</small>";}
include_once"files/down.php";
?>