Вход Регистрация
Файл: darkworld/byvesh.php
Строк: 45
<?
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]);
$den=trim($udata[8]);}
////////////////////////////////////////////////////////
if (md5($pas)==$password && $log==$login && $log!=="" && md5($pas)!=="") {
include_once
"files/up.php";

$vesh htmlspecialchars(stripslashes($vesh));
$tip htmlspecialchars(stripslashes($tip));

if(
$vesh!=="ScrollWeapon"){

echo 
"<small>&#x421;&#x43A;&#x43B;&#x44C;&#x43A;&#x43E;?:</small><br/>";
echo 
"<input name="kol" maxlength="10" title="*N" emptyok="true"/><br/>";
echo 
"<small><anchor title="go">&#x41A;&#x443;&#x43F;&#x438;&#x442;&#x44C;<go href="pokupka.php?log=$log&amp;pas=$pas&amp;vesh=$vesh&amp;tip=$tip" method="post">";
echo 
"<postfield name="kol" value="$(kol)"/>";
echo 
"</go></anchor></small>";
}elseif(
$vesh=="ScrollWeapon"){

if(
$den<"400000"){echo"<small>У вас не хватает денег!</small>"; include_once"files/down.php"; exit;}

$text = @file("data/vesh/$vesh.dat"); 
$data explode(":||:",$text[0]);

$text="$data[0]:||:$data[1]:||:$data[2]:||:1:||:$data[4]:||:";

$fp=fopen("data/item/$log.dat","a+");
flock ($fp,LOCK_EX);
fputs($fp,"$textrn");
flock ($fp,LOCK_UN);
fclose($fp);

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

$aden=$udat[8]-400000;

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

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

echo
"<small><a href="shop.php?log=$log&amp;pas=$pas">Куплено</a></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";
?>
Онлайн: 0
Реклама