Вход Регистрация
Файл: byvesh1.php
Строк: 48
<?
include_once("mysql.php");
Error_Reporting(E_ALL & ~E_NOTICE);

include_once(
"include/antixak.php");
$_title 'Linewap2';
include 
'include/header.php';
include 
'include/ini.php';
$log htmlspecialchars(stripslashes($log));
$pas htmlspecialchars(stripslashes($pas));
/////////////////////////////////////////////////////
$text = @file("MySql/base123/reg/$log.dat");
if (
$text!=""){
$udata explode(":||:",$text[0]);
$login=trim($udata[0]);
$password=trim($udata[1]);
$den=trim($udata[8]);}
////////////////////////////////////////////////////////
include_once("include/sesi.php");
if (isset(
$user)) {
include_once
"include/up.php";
include_once(
"include/udata.php");
$vesh htmlspecialchars(stripslashes($vesh));
$tip htmlspecialchars(stripslashes($tip));

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

echo 
"<form action="pokupka1.php?$sd&vesh=$vesh&tip=$tip" method="post"><small>Склько?:</small><br/>";
echo 
"<input name="kol" maxlength="10" title="*N" emptyok="true"/><br/>";
echo 
'<input type="submit" value="Купить"></form>';
}elseif(
$vesh=="ScrollWeapon"){

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

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

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

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

$text = @file("MySql/base123/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].':||:'.$udat[41].':||:'.$udat[42].':||:'.$udat[43].':||:'.$udat[44].':||:'.$udat[45].':||:'.$udat[46].':||:'.$udat[47].':||:'.$udat[48].':||:'.$udat[49].':||:'.$udat[50].':||:'.$udat[51].':||:'.$udat[52].':||:'.$udat[53].':||:'.$udat[54].':||:'.$udat[55].':||:'.$udat[56].':||:'.$udat[57].':||:'.$udat[58].':||:'.$udat[59].':||:'.$udat[60].':||:'.$udat[61].':||:'.$udat[62].':||:'.$udat[63].':||:'.$udat[64].':||:'.$udat[65].':||:'.$udat[66].':||:'.$udat[67].':||:'.$udat[68].':||:'.$udat[69].':||:'.$udat[70].':||:'.$udat[71].':||:'.$udat[72].':||:'.$udat[73].':||:'.$udat[74].':||:'.$udat[75].':||:'.$udat[76].':||:'.$udat[77].':||:'.$udat[78].':||:'.$udat[79].':||:'.$udat[80].':||:'.$udat[81].':||:'.$udat[82].':||:'.$udat[83].':||:'.$udat[84].':||:'.$udat[85].':||:'.$udat[86].':||:'.$udat[87].':||:'.$udat[88].':||:'.$udat[89].':||:'.$udat[90].':||:'.$udat[91].':||:'.$udat[92].':||:'.$udat[93].':||:'.$udat[94].':||:'.$udat[95].':||:'.$udat[96].':||:'.$udat[97].':||:'.$udat[98].':||:'.$udat[99].':||:'.$udat[100].':||:';
$fp=fopen("MySql/base123/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&pas=$pas">Куплено</a></small>";

}


}else{echo
"<small>Пароль или логин неверен!</small>";}

include_once
"include/down1.php";
?>
Онлайн: 1
Реклама