View file darkworld/gopvp.php

File size: 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=\"&#x411;&#x43E;&#x439;\">";
echo "<p align=\"left\">";





echo"<small>&#x412;&#x430;&#x448;&#x435; HP: [$hpmy/$allmy]<br/>";
echo"HP &#x43F;&#x440;&#x43E;&#x442;&#x438;&#x432;&#x43D;&#x438;&#x43A;&#x430;: [$hppvp/$allpvp]</small><br/><br/>";

echo"<a href=\"udarpvp.php?log=$log&amp;pas=$pas&amp;pvp=$pvp\">&#x423;&#x434;&#x430;&#x430;&#x430;&#x440;!!!</a>";




}else{echo"<small>&#x41F;&#x430;&#x440;&#x43E;&#x43B;&#x44C; &#x438;&#x43B;&#x438; &#x43B;&#x43E;&#x433;&#x438;&#x43D; &#x43D;&#x435;&#x432;&#x435;&#x440;&#x435;&#x43D;!</small>";}



include_once"files/down.php";


?>