Файл: DarkAge/petshop.php
Строк: 13
<?
Error_Reporting(E_ALL & ~E_NOTICE);
include_once("files/antixak.php");
include_once("files/zag.php");
$log = htmlspecialchars(stripslashes($log));
$pas = htmlspecialchars(stripslashes($pas));
/////////////////////////////////////////////////////
$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)!=="") {
$dir = opendir ("data/petshop");
while ($file = readdir ($dir))
{
if (( $file != ".") && ($file != ".."))
{ $file= str_replace(".dat","",$file);
$file2= "$file";
$text = @file("data/petshop/$file2.dat");
$udat = explode(":||:",$text[0]);
$hp=trim($udat[0]);
echo "<a href="bypetshop.php?log=$log&pas=$pas&vesh=$file">$udat[4] </a><b> (атаки+$udat[0]), ADEN- $udat[1] [FP]</b><br/>";
}}
echo"- - -<br/><a href="by.php?log=$log&pas=$pas">В магазин</a>";
closedir ($dir);
}else{echo"Пароль или логин неверен!";}
include_once"files/down.php";
?>