Файл: darkworld/listsell.php
Строк: 34
<?
Error_Reporting(E_ALL & ~E_NOTICE);
Error_Reporting (ERROR | WARNING);
include_once("files/antixak.php");
header("Content-type:text/vnd.wap.wml");
echo "<?xml version="1.0" encoding="UTF-8"?>";
echo "<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.2//EN" "http://www.wapforum.org/DTD/wml12.dtd">";
echo "<wml>n";
echo "<head><meta http-equiv="Cache-Control" content="no-cache" forua="true"/></head>";
echo "<card id="index" title="Персонаж">";
echo "<p align="left">";
$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)!=="") {
include_once"files/up.php";
$file = @file("data/item/$log.dat");
$total = count($file);
if (empty($_GET['start'])) $start = 0;
else $start = $_GET['start'];
if ($total < $start + 5){ $end = $total; }
else {$end = $start + 5; }
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]/2;
if($data[4]!=""){
echo"<b><small><a href="sell.php?log=$log&pas=$pas&vesh=$data[4]&id=$id&num=$data[0]&tip=$data[2]">$data[4]</a></small></b><small> - ($data[3] штук) [$cena ADEN]</small><br/>";
}}
if($total=="0"){echo"<small>У вас нет вещей.</small>";}
if ($start != 0) {echo '<small><a href="listsell.php?start='.($start - 5).'&log='.$log.'&pas='.$pas.'">Назад</a></small> ';}
if ($total > $start + 5) {echo ' <small><a href="listsell.php?start='.($start + 5).'&log='.$log.'&pas='.$pas.'">Далее</a></small>';}
}else{echo"<small>Пароль или логин неверен!</small>";}
include_once"files/down.php";
?>