<?
include_once("files/zag.php");
if (md5($pas)==$password && $log==$login && $log!=="" && md5($pas)!=="") {
if(@file("data/mag/$log.dat")){
$file = @file("data/mag/$log.dat");
$total = count($file);
for ($i = 0; $i < $total; $i++){
$file = @file("data/mag/$log.dat");
$file = array_reverse($file);
$data = explode("||",$file[$i]);
if($data[4]=="baff"){
echo"<small><a href=\"baff.php?log=$log&pas=$pas&name=$data[8]\">$data[7]</a></small><br/>";}
if($data[4]=="summoner"){
echo"<small><a href=\"summoner.php?log=$log&pas=$pas\">$data[7]</a></small><br/>";}
}}else{echo"<small>Пусто.</small>";}
}else{echo"<small>Пароль или логин неверен!</small>";}
include_once("files/down.php");
?>