Просмотр файла darkworld/beginnerfighert.php

Размер файла: 5.54Kb
<?
Error_Reporting(E_ALL & ~E_NOTICE);
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=\"&#x41F;&#x435;&#x440;&#x441;&#x43E;&#x43D;&#x430;&#x436;\">";
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]);}
////////////////////////////////////////////////////////
if (md5($pas)==$password && $log==$login && $log!=="" && md5($pas)!=="") {


if($udata[9]<"40"){echo"<small>&#x41F;&#x440;&#x43E;&#x444;&#x435;&#x441;&#x438;&#x438; &#x434;&#x43E;&#x441;&#x442;&#x443;&#x43F;&#x43D;&#x44B; &#x442;&#x43E;&#x43B;&#x44C;&#x43A;&#x43E; &#x441; 40 &#x443;&#x440;&#x43E;&#x432;&#x43D;&#x44F;.</small>"; include_once"files/down.php"; exit;}

if($udata[27]!=="fighert"){
echo"<small>Ошибка.</small>";
 include_once"files/down.php"; exit;}
if($udata[33]!=="Fighert"){
echo"<small>Ошибка.</small>";
 include_once"files/down.php"; exit;}
$file = @file("data/item/$log.dat");
$total = count($file);  

for ($i = 0; $i < $total; $i++){

$file = @file("data/item/$log.dat");
$file = array_reverse($file);
$data = explode(":||:",$file[$i]);



if($data[4]=="Stemx2" && $data[3]>="25"){

echo"<small>&#x41C;&#x43E;&#x43B;&#x43E;&#x434;&#x435;&#x446; &#x442;&#x44B; &#x443;&#x436;&#x435; &#x43F;&#x440;&#x438;&#x43D;&#x435;&#x441; &#x43C;&#x43D;&#x435; 25 Stemx2! &#x422;&#x435;&#x43F;&#x435;&#x440;&#x44C; &#x442;&#x435;&#x431;&#x435; &#x434;&#x43E;&#x441;&#x442;&#x443;&#x43F;&#x43D;&#x430; &#x43D;&#x43E;&#x432;&#x430;&#x44F; &#x43C;&#x430;&#x433;&#x438;&#x44F;, &#x447;&#x442;&#x43E;&#x431;&#x44B; &#x438;&#x437;&#x443;&#x447;&#x438;&#x442;&#x44C; &#x435;&#x451; &#x438;&#x434;&#x438; &#x432; &#x445;&#x440;&#x430;&#x43C; &#x438; &#x43F;&#x43E;&#x434;&#x43E;&#x438;&#x434;&#x438; &#x43A; &#x43C;&#x430;&#x433;&#x438;&#x441;&#x442;&#x440;&#x443;, &#x43E;&#x43D; &#x442;&#x435;&#x431;&#x435; &#x432;&#x441;&#x435; &#x440;&#x430;&#x441;&#x441;&#x43A;&#x430;&#x436;&#x435;&#x442;! &#x422;&#x44B; &#x441;&#x43A;&#x430;&#x436;&#x435;&#x448;&#x44C; &#x43F;&#x43E;&#x447;&#x435;&#x43C;&#x443; &#x44F; &#x43D;&#x435; &#x437;&#x430;&#x431;&#x438;&#x440;&#x430;&#x44E; &#x443; &#x442;&#x435;&#x431;&#x44F; Stemx2? &#x410; &#x43C;&#x43D;&#x435; &#x443;&#x436;&#x435; &#x43C;&#x43D;&#x43E;&#x433;&#x43E; &#x43F;&#x440;&#x438;&#x43D;&#x435;&#x441;&#x43B;&#x438; &#x434;&#x43E; &#x442;&#x435;&#x431;&#x44F; =) &#x418;&#x434;&#x438; &#x43F;&#x440;&#x43E;&#x434;&#x430;&#x439; &#x435;&#x433;&#x43E; &#x438; &#x43A;&#x443;&#x43F;&#x438; &#x441;&#x435;&#x431;&#x435; &#x43D;&#x43E;&#x432;&#x44B;&#x435; &#x432;&#x435;&#x449;&#x438;.</small>";


$fal = @file("data/reg/$log.dat"); 
$udata = explode(":||:",$fal[0]);

$udata[33]="Beginner Fighert";

$textus=$udata[0].':||:'.$udata[1].':||:'.$udata[2].':||:'.$udata[3].':||:'.$udata[4].':||:'.$udata[5].':||:'.$udata[6].':||:'.$udata[7].':||:'.$udata[8].':||:'.$udata[9].':||:'.$udata[10].':||:'.$udata[11].':||:'.$udata[12].':||:'.$udata[13].':||:'.$udata[14].':||:'.$udata[15].':||:'.$udata[16].':||:'.$udata[17].':||:'.$udata[18].':||:'.$udata[19].':||:'.$udata[20].':||:'.$udata[21].':||:'.$udata[22].':||:'.$udata[23].':||:'.$udata[24].':||:'.$uzer.':||:'.$udata[26].':||:'.$udata[27].':||:'.$udata[28].':||:'.$udata[29].':||:'.$udata[30].':||:'.$udata[31].':||:'.$udata[32].':||:'.$udata[33].':||:'.$udata[34].':||:'.$udata[35].':||:'.$udata[36].':||:'.$udata[37].':||:'.$udata[38].':||:'.$udata[39].':||:'.$udata[40].':||:';


$fp=fopen("data/reg/$log.dat","a+");  
flock ($fp,LOCK_EX); 
ftruncate ($fp,0);                                                              
fputs($fp,"$textus");
fflush ($fp);
flock ($fp,LOCK_UN);
fclose($fp);

include_once"files/down.php"; exit;

}
}
if($udata[33]!=="Beginner Fighert"){

echo"<small>Beginner Fighert - &#x43D;&#x430; &#x44D;&#x442;&#x43E;&#x43C; &#x44D;&#x442;&#x430;&#x43F;&#x435; &#x44F; &#x442;&#x435;&#x431;&#x44F; &#x43D;&#x430;&#x443;&#x447;&#x443; &#x441;&#x438;&#x43B;&#x44C;&#x43D;&#x44B;&#x43C; &#x438; &#x43F;&#x440;&#x438;&#x43A;&#x43E;&#x43B;&#x44C;&#x43D;&#x44B;&#x43C; &#x442;&#x440;&#x44E;&#x43A;&#x430;&#x43C; ;). &#x427;&#x442;&#x43E;&#x431;&#x44B; &#x434;&#x43E;&#x43A;&#x430;&#x437;&#x430;&#x442;&#x44C; &#x447;&#x442;&#x43E; &#x442;&#x44B; &#x434;&#x43E;&#x441;&#x442;&#x43E;&#x438;&#x43D; &#x43F;&#x440;&#x43E;&#x444;&#x435;&#x441;&#x441;&#x438;&#x438; Beginner Baffer &#x442;&#x44B; &#x434;&#x43E;&#x43B;&#x436;&#x435;&#x43D; &#x43C;&#x43D;&#x435; &#x43F;&#x440;&#x438;&#x43D;&#x435;&#x441;&#x442;&#x438; 25 &#x448;&#x442;&#x443;&#x43A; Stemx2. &#x418;&#x445; &#x43C;&#x43E;&#x436;&#x43D;&#x43E; &#x440;&#x430;&#x437;&#x434;&#x43E;&#x431;&#x44B;&#x442;&#x44C; &#x432; &#x43B;&#x44E;&#x431;&#x44B;&#x445; &#x43E;&#x43A;&#x440;&#x435;&#x441;&#x442;&#x43D;&#x43E;&#x441;&#x442;&#x44F;&#x445; &#x443;&#x431;&#x438;&#x432;&#x430;&#x44F; &#x43C;&#x43E;&#x43D;&#x441;&#x442;&#x440;&#x43E;&#x432;.</small>";}


}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";
?>