Размер файла: 2.71Kb
<?
Error_Reporting(E_ALL & ~E_NOTICE);
include_once("files/antixak.php");
$log = htmlspecialchars(stripslashes($log));
$pas = htmlspecialchars(stripslashes($pas));
$pvp = htmlspecialchars(stripslashes($pvp));
if(empty($pvp)){
$text = @file("data/pvp/$log.dat");
$udata = explode(":||:",$text[0]);
$allmy=trim($udata[1]);
$hpmy=trim($udata[0]);
$allpvp=trim($udata[7]);
$hppvp=trim($udata[6]);
$hppvp=str_replace("\\","",$hppvp);
$hppvp=str_replace("/","",$hppvp);
$hppvp=str_replace("|","",$hppvp);
$hppvp=str_replace("$","",$hppvp);
$hppvp=str_replace("&","",$hppvp);
$hppvp=str_replace("<","",$hppvp);
$hppvp=str_replace(">","",$hppvp);
//////////////////////////////////
$hpmy=str_replace("\\","",$hpmy);
$hpmy=str_replace("/","",$hpmy);
$hpmy=str_replace("|","",$hpmy);
$hpmy=str_replace("$","",$hpmy);
$hpmy=str_replace("&","",$hpmy);
$hpmy=str_replace("<","",$hpmy);
$hpmy=str_replace(">","",$hpmy);
//////////////////////////////////
if($hppvp<="0"){ header ("Location: winpvp.php?log=$log&pas=$pas"); }
if($hpmy<="0"){ header ("Location: losepvp.php?log=$log&pas=$pas"); }
}else{
$text = @file("data/pvp/$pvp.dat");
$udata = explode(":||:",$text[0]);
$allpvp=trim($udata[1]);
$hppvp=trim($udata[0]);
$allmy=trim($udata[7]);
$hpmy=trim($udata[6]);
if($hppvp<="0"){ header ("Location: winpvp.php?log=$log&pas=$pas&pvp=$pvp"); }
if($hpmy<="0"){ header ("Location: losepvp.php?log=$log&pas=$pas&pvp=$pvp"); }
}
/////////////////////////////////////////////////////
$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)!=="") {
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\">";
echo"<small>Ваше HP: [$hpmy/$allmy]<br/>";
echo"HP противника: [$hppvp/$allpvp]</small><br/><br/>";
echo"<a href=\"udarpvp.php?log=$log&pas=$pas&pvp=$pvp\">Удааар!!!</a>";
}else{echo"<small>Пароль или логин неверен!</small>";}
include_once"files/down.php";
?>