Файл: chats/game.php
Строк: 150
<?php
//*********************/
//Скрипт переписан админом
//http://waufon.ru Кот * Проги для компа и мобил
//Помогал админ
//http://pfc.h2m.ru/ КОСМОС * Посети непожалееш
//всю эту срань господнюю
//перехуяривали на дыры
//http://rus-waphost.ru/ Nitrix * Супер хост без висов
/*********************/
require( "inc/conf.inc.php" );
require( "inc/check.php" );
include "includes/inc_online.php";
//$id=cyr(htmlspecialchars(stripslashes(trim($id))));
//$login=cyr(htmlspecialchars(stripslashes(trim($login))));
//$pass=cyr(htmlspecialchars(stripslashes(trim($pass))));
include "russian/lang_main.php"; //языковой файл
if(!empty($login))
{
$q = mysql_query("select secur,golod,band,guns,cars,id,login,pass,status,mafcredits,level,police,health from users where login='".cyr($login)."';");
$q = mysql_query("select secur,golod,band,guns,cars,id,login,pass,status,mafcredits,level,police,health from users where login='$login';");
}
elseif(!empty($id))
{
$q = mysql_query("select secur,golod,band,guns,cars,id,login,pass,status,mafcredits,level,police,health from users where id='".$id."';");
}
else
{
die ($lang['empty_login']."");
}
mysql_query("update users set last='".time()."',city='0' where id='".$id."';");
$data = mysql_fetch_array($q);
$id=$data['id'];
$login=$data['login'];
$status=$data['status'];
$reg_data=$data['reg_data'];
$mafcredits=$data['mafcredits'];
$level=$data['level'];
$police=$data['police'];
$health=$data['health'];
$cars=$data['cars'];
$guns=$data['guns'];
$band=$data['band'];
$golod=$data['golod'];
$secur=$data['secur'];
$login = $login['login'] ;
if($pass!=$data['pass'])
{
die ($lang['empty_login']."");
}
include "includes/header.php";
print "<div>";
print $lang['game_hello1'].", <b>".$login['login']."</b> ".$lang['game_hello2']."<br/>Вам предстоит понять прелести криминального мира.<br/>Вам нужно выбрать город который вы будите покорять";
print "</div>";
print "<b>[".$lang['game_towns']."]</b><br/>";
if($level<3)
{
print "<a href="city1/index.php?id=$id&pass=$pass">".$lang['game_city1']."</a><br/>";
print $lang['game_city2']."<br/>".$lang['game_city3']."<br/>";
}
elseif($level>=0 && $level<5)
{
print "<a href="city1/index.php?id=$id&pass=$pass">".$lang['game_city1']."</a><br/>";
print "<a href="city2/index.php?id=$id&pass=$pass">".$lang['game_city2']."</a><br/>";
print $lang['game_city3']."<br/>";
}
elseif($level>=4)
{
print "<a href="city1/index.php?id=$id&pass=$pass">".$lang['game_city1']."</a><br/>";
print "<a href="city2/index.php?id=$id&pass=$pass">".$lang['game_city2']."</a><br/>";
print $lang['game_city3']."<br/>";
}
if(!empty($band))
{
$band_q=mysql_query("select members from bands where name='".$band."';");
$band_array=mysql_fetch_array($band_q);
$members=$band_array['members'];
$band_members = explode(".", $members);
if(empty($members) || !in_array($login,$band_members))
mysql_query("update users set band='' where id='".$id."';");
else
{
print "<b>[".$lang['game_your_band']."]</b><br/>";
print "<a href="bands/band_panel.php?id=$id&pass=$pass">$band</a><br/>";
}
}
include("includes/inc_statusy.php");
print "<div>";
print "<b>[".$lang['game_stats']."]</b>";
print "</div>";
print "Денег в кошельке: <b>$mafcredits $$</b><br/>";
print $lang['uv_health'].": <b>$health %</b><br/>";
print $lang['uv_golod'].": <b>$golod %</b><br/>";
print $lang['uv_police'].": <b>$police</b><br/>";
print $lang['uv_level'].": <b>$level</b><br/>";
print $lang['uv_status'].": <b>$status</b><br/>";
print $lang['uv_secur'].": <b>$secur</b>";
if(!empty($cars))
{
$cars_count = explode(".", $cars);
$count_cars=count($cars_count);
print "<br/>".$lang['game_cars']." <b>($count_cars)</b>:<br/>";
for($i=0;$i<$count_cars;$i++)
{
print $cars_count[$i].",";
}
}
if(!empty($guns))
{
$guns_count = explode(".", $guns);
$count_guns=count($guns_count);
print "<br/>".$lang['game_guns']." <b>($count_guns)</b>:<br/>";
for($i=0;$i<$count_guns;$i++)
{
print $guns_count[$i].",";
}
}
echo "<br/><a href="enter.php?id={$id}&pass={$pass}&ref={$ref}">Прихожка</a><br/>";
echo "<div class="ab"><b>© KOT waufon.ru</b></div>";
?>