Файл: DarkAge/listsell.php
Строк: 28
<?
Error_Reporting(E_ALL & ~E_NOTICE);
Error_Reporting (ERROR | WARNING);
include_once("files/antixak.php");
include_once("files/zag.php");
$log = htmlspecialchars(stripslashes($log));
$pas = htmlspecialchars(stripslashes($pas));
$mob = htmlspecialchars(stripslashes($mob));
/////////////////////////////////////////////////////
$text = @file("data/reg/$log.dat");
if ($text!=""){
$udata = explode(":||:",$text[0]);
$login=trim($udata[0]);
$password=trim($udata[1]);}
////////////////////////////////////////////////////////
if (md5($pas)==$password && $log==$login && $log!=="" && md5($pas)!=="") {
//echo "У вас $udata[8] аден <br />";
$file = @file("data/item/$log.dat");
$total = count($file);
if (empty($_GET['start'])) $start = 0;
else $start = $_GET['start'];
if ($total < $start + 20){ $end = $total; }
else {$end = $start + 20; }
for ($i = $start; $i < $end; $i++){
$file = @file("data/item/$log.dat");
$file = @array_reverse($file);
$data = explode(":||:",$file[$i]);
$i2=round($i+1);
$id=$i;
$cena=$data[1]/10;
$aden=$cena;
if($data[4]!=""){
if ($data[5]!=="vesh"){
echo'<b><a href="sell.php?log='.$log.'&pas='.$pas.'&vesh='.$data[4].'&id='.$id.'&num='.$cena.'&tip='.$data[2].'">'.$data[4].'</a></b> - ('.$data[3].' штук) ['.number_format($cena).'] аден<br/>';}
if ($data[5]=="vesh"){
echo"<b><a href="sell.php?log=$log&pas=$pas&vesh=$data[4]&id=$id&num=$cena&tip=$data[5]">$data[4]</a></b> - ($data[3] штук) [$cena] аден<br/>";
}
}}
if($total=="0"){echo"У вас нет вещей.";}
echo'<br />';
if ($start != 0) {echo '<a href="listsell.php?start='.($start - 20).'&log='.$log.'&pas='.$pas.'">Назад</a> |';}
if ($total > $start + 20) {echo ' <a href="listsell.php?start='.($start + 20).'&log='.$log.'&pas='.$pas.'">Далее</a>';}
}else{echo"Пароль или логин неверен!";}
include_once"files/down.php";
?>