Просмотр файла darkworld/item.php

Размер файла: 4.6Kb
<?
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=\"&#x41F;&#x435;&#x440;&#x441;&#x43E;&#x43D;&#x430;&#x436;\">";
echo "<p align=\"left\">";

$log = htmlspecialchars(stripslashes($log));
$pas = htmlspecialchars(stripslashes($pas));
$start = htmlspecialchars(stripslashes($start));
/////////////////////////////////////////////////////
$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("files/opit.php");
if($udata[44]=="1"){echo"<img src=\"hp.php?log=$log&amp;pas=$pas\" alt=\"HP: $udata[16]/$udata[17]\"/><br/>";
echo"<img src=\"mp.php?log=$log&amp;pas=$pas\" alt=\"MP: $udata[29]/$udata[30]\"/><br/>";

echo"<img src=\"exp.php?log=$log&amp;pas=$pas\" alt=\"EXP: $exp\"/><br/>";}else{

echo"<small>HP: $udata[16]/$udata[17]<br/>
MP: $udata[29]/$udata[30]<br/>
EXP: $exp</small><br/><br/>";
}
if(@file("data/item/$log.dat")){

$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);

if($data[2]=="petweapon"){
echo"<b><small><a href=\"odetpet.php?log=$log&amp;pas=$pas&amp;name=$data[4]&amp;id=$i\">$data[4]</a></small></b> <small>- (М+$data[0])</small><br/>";}
if($data[2]=="pets"){
echo"<small><b>$data[4]</b> [$data[3]]</small><br/>";}
if($data[2]=="wolf"){
echo"<b><small><a href=\"wolf.php?log=$log&amp;pas=$pas\">$data[4]</a></small></b><br/>";}
if($data[2]=="scrollweapon"){
echo"<b><small><a href=\"skroll.php?log=$log&amp;pas=$pas&amp;name=$data[4]&amp;id=$i\">$data[4]</a></small></b> <small>- ($data[3] &#x448;&#x442;&#x443;&#x43A;)</small><br/>";}
if($data[2]=="vesh"){
echo"<img src=\"pic/res.gif\" alt=\"pic\"/><b><small><a href=\"odet.php?log=$log&amp;pas=$pas&amp;tip=$data[2]&amp;name=$data[4]\">$data[4]</a></small></b> <small>- ($data[3] &#x448;&#x442;&#x443;&#x43A;)</small><br/>";}
if($data[2]=="weapon"){
echo"<img src=\"pic/sword.gif\" alt=\"pic\"/><b><small><a href=\"odet.php?log=$log&amp;pas=$pas&amp;tip=$data[2]&amp;id=$i\">$data[4]</a></small></b> <small>- [+$data[0]]</small><br/>";}
if($data[2]=="shit"){
echo"<img src=\"pic/shit.gif\" alt=\"pic\"/><b><small><a href=\"odet.php?log=$log&amp;pas=$pas&amp;tip=$data[2]&amp;id=$i\">$data[4]</a></small></b> <small>- [+$data[0]]</small><br/>";}
if($data[2]=="body"){
echo"<img src=\"pic/up.gif\" alt=\"pic\"/><b><small><a href=\"odet.php?log=$log&amp;pas=$pas&amp;tip=$data[2]&amp;id=$i\">$data[4]</a></small></b> <small>- [+$data[0]]</small><br/>";}
if($data[2]=="nogi"){
echo"<img src=\"pic/boot.gif\" alt=\"pic\"/><b><small><a href=\"odet.php?log=$log&amp;pas=$pas&amp;tip=$data[2]&amp;id=$i\">$data[4]</a></small></b> <small>- [+$data[0]]</small><br/>";}
if($data[2]=="golova"){
echo"<img src=\"pic/shlem.gif\" alt=\"pic\"/><b><small><a href=\"odet.php?log=$log&amp;pas=$pas&amp;tip=$data[2]&amp;id=$i\">$data[4]</a></small></b> <small>- [+$data[0]]</small><br/>";}
if($data[2]=="vesh2"){
echo"<img src=\"pic/vesh2.gif\" alt=\"pic\"/><b><small><a href=\"tovesh.php?log=$log&amp;pas=$pas&amp;tip=$data[2]&amp;name=$data[4]&amp;id=$i\">$data[4]</a></small></b> <small>- ($data[3] &#x448;&#x442;&#x443;&#x43A;) [+$data[0]]</small><br/>";}


}}else{echo"<small>&#x423; &#x432;&#x430;&#x441; &#x43D;&#x435;&#x442; &#x432;&#x435;&#x449;&#x435;&#x439;.</small>";}

    
    
if ($start != 0) {echo '<small><a href="item.php?start='.($start - 5).'&amp;log='.$log.'&amp;pas='.$pas.'">&#x41D;&#x430;&#x437;&#x430;&#x434;</a> </small>';}

if ($total > $start + 5) {echo '<small> <a href="item.php?start='.($start + 5).'&amp;log='.$log.'&amp;pas='.$pas.'">&#x414;&#x430;&#x43B;&#x435;&#x435;</a></small>';}


}else{echo"<small>&#x41F;&#x430;&#x440;&#x43E;&#x43B;&#x44C; &#x438;&#x43B;&#x438; &#x43B;&#x43E;&#x433;&#x438;&#x43D; &#x43D;&#x435;&#x432;&#x435;&#x440;&#x435;&#x43D;!</small>";}

include_once"files/down.php";
?>