Файл: darkworld/magisterguild.php
Строк: 31
<?
include_once("files/antixak.php");
header("Content-type:text/vnd.wap.wml");
echo "<?xml version="1.0" encoding="UTF-8"?>";
echo "<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.2//EN" "http://www.wapforum.org/DTD/wml12.dtd">";
echo "<wml>n";
echo "<head><meta http-equiv="Cache-Control" content="no-cache" forua="true"/></head>";
echo "<card id="index" title="Персонаж">";
echo "<p align="left">";
$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"<small>Hi! Я тебя обучу различным трюкам. Выбирай.</small><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"<small><a href="skill.php?log=$log&pas=$pas&name=$file">[$name] - $sp SP</a><br/>$info<br/>(Атака: $udar)</small><br/>";
}}elseif($profa==$prof){
echo"<small><a href="skill.php?log=$log&pas=$pas&name=$file">[$name] - $sp SP</a><br/>$info<br/>(Атака: $udar)</small><br/>";
}
}}
}else{echo"<small>Пароль или логин неверен!</small>";}
include_once"files/down.php";
?>