Файл: DarkAge/magisterguild.php
Строк: 22
<?
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]);
$profa=trim($udata[33]);}
////////////////////////////////////////////////////////
if (md5($pas)==$password && $log==$login && $log!=="" && md5($pas)!=="") {
echo"Hi! ua nauchu tebua razlichnim trukam. Vibirai!<br/><br/>";
$dir = opendir ("data/mags");
while ($file = readdir ($dir))
{
if (( $file != ".") && ($file != ".."))
{ $file=str_replace(".dat","",$file);
$text = @file("data/mags/$file.dat");
$mag = explode("||",$text[0]);
$name=trim($mag[7]);
$mp=trim($mag[1]);
$udar=trim($mag[0]);
$prof=trim($mag[5]);
$info=trim($mag[6]);
$sp=trim($mag[2]);
if(empty($profa)){
if($profa==$prof && $mag[9]=="fighert"){
echo"<a href="skill.php?log=$log&pas=$pas&name=$file"><b>$name</b> - $sp SP</a> (Атака: $udar)<br/>$info<br/>";
}}elseif($profa==$prof){
echo"<a href="skill.php?log=$log&pas=$pas&name=$file"><b>$name</b> - $sp SP</a> (Атака: $udar)<br/>$info<br/>";
}
}}
}else{echo"Пароль или логин неверен!";}
include_once"files/down.php";
?>