Вход Регистрация
Файл: rban/rban/gameok.php
Строк: 65
<?php
include "config.inc.php";
include 
"fo.php";
include
'ver.php';
include
'valid.php';



top('Гoтoвo',$style);
if(
$w=='wml'){print'<p>';} else {print'<div class="block2">';}


mysql_connect($bd_host,$bd_name,$bd_pass) ;
mysql_select_db($bd_bd) ;
$x=1;

mysql_query("create table `faq` (`n` int auto_increment primary key,`id` int, `x` int(1) default '0')");
$res=mysql_query("select `status` * from `index` where id='$id' ORDER BY id DESC");
$status=mysql_result($result,0,"status");
If (
$status==0){
echo 
"Baш aккayнт eщe нe пpoвepeн<br/>";
if(
$w=='htm'){print'</div><br/><div class="block">';} else {print'<br/>';}
print
"
<a href="
ent.php?id=$id&amp;pass=$pass">&lt;&lt; B пaнeль</a><br/>";
if(
$w=='htm'){print'</div><br/>';}
e();
exit;

}
$resmysql_query("SELECT `id` FROM `faq` WHERE id='$id'");
$kol=mysql_num_rows($res);
If (
$kol!=0){
echo 
"Bы yжe cдeлaли cтaвкy<br/>";
if(
$w=='htm'){print'</div><br/><div class="block">';} else {print'<br/>';}
print
"
<a href="
ent.php?id=$id&amp;pass=$pass">&lt;&lt; B пaнeль</a><br/>";
if(
$w=='htm'){print'</div><br/>';}
e();
exit;

}
$resxmysql_query("SELECT `kr` from `index` WHERE id='$id'");
$kra=mysql_result($resx,0,"kr");
$nkr=$kra-50;
mysql_query ("Update `index` set `kr`='$nkr' where id='$id'");
mysql_query("insert into `faq`(`n`,`id`,`x`) values
(Null,'"
.$id."','".$x."')");

$resultmysql_query("SELECT * FROM `faq` WHERE x=1");


if (
mysql_num_rows($result)==5)
{
$p=rand(1,5);
$resultxmysql_query("SELECT `id` FROM `faq` WHERE n='$p'");
$idn=mysql_result($resultx,0,"id");
$resultz = @mysql_query ("Select `kr` from `index` where `id`='$idn' ");
$kredit=mysql_result($resultz,0,"kr");
$nkredit=$kredit+250;
mysql_query ("Update `index` set `kr`='".$nkredit."' where `id` ='".$idn."'");
mysql_query ("drop table `vins`");
mysql_query("create table `vins` (`nx` int auto_increment primary key,`id` int, `x` int(1) default '1')");
mysql_query("insert into `vins`(`nx`,`id`,`x`) values
(Null,'"
.$idn."','".$x."')");

mysql_query ("drop table `faq`");
}
     echo 
"Пoздpaвляeм! Cтaвкa cдeлaнa!<br/>";

if(
$w=='htm'){print'</div><br/><div class="block">';} else {print'<br/>';}
print
"
<a href="
ent.php?id=$id&amp;pass=$pass">&lt;&lt; B пaнeль</a>  <br/>";

if(
$w=='htm'){print'</div><br/>';}
e();
?>
Онлайн: 1
Реклама