Вход Регистрация
Файл: DarkAge/summoner.php
Строк: 28
<?
Error_Reporting
(E_ALL & ~E_NOTICE);
$ref=rand(10,100);

include_once(
"files/antixak.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]);}
////////////////////////////////////////////////////////
if (md5($pas)==$password && $log==$login && $log!=="" && md5($pas)!=="") {
include_once(
"files/zag.php");
//include_once"files/up.php";
switch($go) {

default:

echo 
"&#x417;&#x434;&#x440;&#x430;&#x441;&#x442;&#x432;&#x443;&#x439;&#x442;&#x435;! &#x42F; &#x43E;&#x431;&#x443;&#x447;&#x443; &#x432;&#x430;&#x448;&#x435;&#x433;&#x43E; &#x441;&#x443;&#x43C;&#x43C;&#x43E;&#x43D;&#x435;&#x440;&#x430; &#x43D;&#x43E;&#x432;&#x44B;&#x43C; &#x43D;&#x430;&#x432;&#x44B;&#x43A;&#x430;&#x43C; &#x438; &#x43E;&#x43D; &#x441;&#x442;&#x430;&#x43D;&#x435;&#x442; &#x441;&#x438;&#x43B;&#x44C;&#x43D;&#x435;&#x439;!<br/>";

echo
"<a href="summoner.php?go=go&amp;log=$log&amp;pas=$pas">&#x41D;&#x430;&#x436;&#x43C;&#x438;&#x442;&#x435; &#x447;&#x442;&#x43E;&#x431;&#x44B; &#x43F;&#x43E;&#x432;&#x44B;&#x441;&#x438;&#x442;&#x44C; &#x430;&#x442;&#x430;&#x43A;&#x443; &#x441;&#x443;&#x43C;&#x43C;&#x43E;&#x43D;&#x435;&#x440;&#x430; &#x43D;&#x430; 1000. &#x42D;&#x442;&#x43E; &#x441;&#x442;&#x43E;&#x438;&#x442; 100000 &#x430;&#x434;&#x435;&#x43D;.</a>";


break;

case 
'go':

$udata[8]=$udata[8]-100000;

if(
$udata[8]<"0"){echo"&#x423; &#x432;&#x430;&#x441; &#x43D;&#x435; &#x437;&#x432;&#x430;&#x442;&#x430;&#x435;&#x442; &#x434;&#x435;&#x43D;&#x435;&#x433;!"; include_once"files/down.php"; exit;}

$text2 = @file("data/summoner/$log.dat"); 
$udata2 explode("||",$text2[0]);

$udata2[0]=$udata2[0]+1000;

if(
$udata2[0]>"40000"){echo"&#x412;&#x430;&#x448; &#x441;&#x443;&#x43C;&#x43C;&#x43E;&#x43D;&#x435;&#x440; &#x443;&#x436;&#x435; &#x437;&#x43D;&#x430;&#x435;&#x442; &#x432;&#x441;&#x435;, &#x43F;&#x43E;&#x44D;&#x442;&#x43E;&#x43C;&#x443; &#x43E;&#x43D; &#x43D;&#x435; &#x441;&#x442;&#x430;&#x43B; &#x441;&#x438;&#x43B;&#x44C;&#x43D;&#x435;&#x439;";include_once"files/down.php"; exit;}


$fp=fopen("data/summoner/$log.dat","a+");  
flock ($fp,LOCK_EX); 
ftruncate ($fp,0);                                                              
fputs($fp,"$udata2[0]||");
fflush ($fp);
flock ($fp,LOCK_UN);
fclose($fp);






$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].':||:0:||:'.$udata[23].':||:'.$udata[24].':||:'.$udata[25].':||:'.$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].':||:'.$udata[41].':||:'.$udata[42].':||:'.$udata[43].':||:'.$udata[44].':||:'.$udata[45].':||:'.$udata[46].':||:'.$udata[47].':||:'.$udata[48].':||:'.$udata[49].':||:'.$udata[50].':||:'.$udata[51].':||:'.$udata[52].':||:'.$udata[53].':||:'.$udata[54].':||:'.$udata[55].':||:'.$udata[56].':||:'.$udata[57].':||:'.$udata[58].':||:'.$udata[59].':||:'.$udata[60].':||:'.$udata[61].':||:'.$udata[62].':||:'.$udata[63].':||:'.$udata[64].':||:'.$udata[65].':||:'.$udata[66].':||:'.$udata[67].':||:'.$udata[68].':||:'.$udata[69].':||:'.$udata[70].':||:'.$udata[71].':||:'.$udata[72].':||:'.$udata[73].':||:'.$udata[74].':||:'.$udata[75].':||:'.$udata[76].':||:'.$udata[77].':||:'.$udata[78].':||:'.$udata[79].':||:'.$udata[80].':||:'.$udata[81].':||:'.$udata[82].':||:'.$udata[83].':||:'.$udata[84].':||:'.$udata[85].':||:'.$udata[86].':||:'.$udata[87].':||:'.$udata[88].':||:'.$udata[89].':||:'.$udata[90].':||:'.$udata[91].':||:'.$udata[92].':||:'.$udata[93].':||:'.$udata[94].':||:'.$udata[95].':||:'.$udata[96].':||:'.$udata[97].':||:'.$udata[98].':||:'.$udata[99].':||:'.$udata[100].':||:';


$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);



echo
"&#x421;&#x438;&#x43B;&#x430; &#x441;&#x443;&#x43C;&#x43C;&#x43E;&#x43D;&#x435;&#x440;&#x430; &#x432;&#x43E;&#x437;&#x440;&#x430;&#x441;&#x43B;&#x430;!";

break;

}

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

include_once
"files/down.php";
?>
Онлайн: 2
Реклама