Файл: DarkAge/apteka.php
Строк: 15
<?
Error_Reporting(E_ALL & ~E_NOTICE);
include_once("files/antixak.php");
include_once("files/zag.php");
$log = htmlspecialchars(stripslashes($log));
$pas = htmlspecialchars(stripslashes($pas));
$name = htmlspecialchars(stripslashes(addslashes($name)));
$id = htmlspecialchars(stripslashes(addslashes($id)));
/////////////////////////////////////////////////////
$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/vesh/apteka");
while ($file = readdir ($dir))
{
if (( $file != ".") && ($file != ".."))
{ $file= str_replace(".dat","",$file);
$file2= "$file";
$text = @file("data/vesh/apteka/$file2.dat");
$udat = explode(":||:",$text[0]);
$hp=trim($udat[0]);
$file2=str_replace("HP","Бутылек HP$data[4]", $file2);
$file2=str_replace("soski","Double Damage", $file2);
$file2=str_replace("MP","Бутылек MP$data[4]", $file2);
echo '<img width="32" height="32" src="pic/image/item/'.$udat[5].'" /><br><a href="byveshlek.php?log='.$log.'&pas='.$pas.'&vesh='.$file.'&gorod='.$gorod.'&tip=vesh">'.$file2.'</a> <b>['.$udat[1].' аден]</b><br/>';
}
}
echo"- - -<br/><a href="by.php?log=$log&pas=$pas">В магазин</a>";
closedir ($dir);
}else{echo"Пароль или логин неверен!";}
include_once"files/down.php";
?>