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

Размер файла: 3.04Kb
<?
include_once("files/zag.php");
if (md5($pas)==$password && $log==$login && $log!=="" && md5($pas)!=="") {

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 + 10){ $end = $total; }
else {$end = $start + 10; }
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"<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"<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"<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"<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"<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"<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"<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="itemall.php?start='.($start - 10).'&amp;log='.$log.'&amp;pas='.$pas.'">&#x41D;&#x430;&#x437;&#x430;&#x434;</a> </small>';}

if ($total > $start + 10) {echo '<small> <a href="itemall.php?start='.($start + 10).'&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";
?>