Размер файла: 5.84Kb
<?php
include "./../ini3.php";
include "./../includes/header$h.php";
$id=cyr(htmlspecialchars(stripslashes(trim($id))));
$pass=cyr(htmlspecialchars(stripslashes(trim($pass))));
if(!empty($id))
{
$q = mysql_query("select * from users where id='".$id."';");
}
else
{
die ($lang['empty_login']."</small></p></card></wml>");
}
$data = mysql_fetch_array($q);
$id=$data['id'];
$login=$data['login'];
$money=$data['money'];
$level=$data['level'];
$police=$data['police'];
$stage=$data['stage'];
$health=$data['health'];
$cars=$data['cars'];
$guns=$data['guns'];
$nums=$data['nums'];
$voo_por=$data['voodoo'];
$energy=$data['energy'];
$secur=$data['secur'];
$zav=$data['zav'];
$lsd=$data['lsd'];
$ban=$data['ban'];
$lox=$data['lox'];
$maska=$data['maska'];
if(md5($pass)!=$data['pass'])
{
die ($lang['empty_login']."</small></p></card></wml>");
}
mysql_query("update users set last='".time()."',city='1' where id='".$id."';");
if($ban==0)
{
include "./../includes/inc_secur.php";
include "./../includes/inc_energy.php";
include "./../includes/inc_hospital.php";
include "./../includes/inc_police.php";
include "./../includes/inc_die.php";
include "./../includes/inc_voodoo.php";
include "./../includes/inc_attack.php";
include "./../includes/inc_mes.php";
print "<b>[Зд: $health %][<img src='a href=\./../../pic/energy.gif' title='Энергия'/>: $energy %][Зщ: $secur %]</b><br/>";
print "<b>".$lang['game_city1']."</b><br/>";
switch ($mode)
{
case "1a":
print "<u>[".$lang['el_1avenu']."]</u><br/>";
if(empty($what))
{
print "<a href=\"elite.php?id=$id&pass=$pass&mode=1a&what=os\">".$lang['el_os']."</a><br/>";
/*print "<a href=\"museum.php?id=$id&pass=$pass\"> </a><br/>";*/
}
elseif($what='os')
{
$os_cars=array($lang['car1'],$lang['car4'],$lang['car6'],$lang['car8'],$lang['car9'],$lang['car11'],$lang['car13'],$lang['car14']);
$cars_rand = rand(0, count($os_cars)-1);
if(empty($tachka) || empty($at_gun))
{
print $lang['el_1av_mes'];
print "<b>".$os_cars[$cars_rand]."</b><br/>";
if(!empty($guns))
{
$guns_array = explode(".", $guns);
$count_guns=count($guns_array);
print $lang['cops_select_gun']." <b>($count_guns)</b>:
<form action=\"elite.php?id=$id&pass=$pass&mode=1a&what=os\" method=\"post\">
<br/>";
print "<select name=\"at_gun\">";
for($i=0;$i<$count_guns;$i++)
{
print "<option value=\"".$guns_array[$i]."\">".$guns_array[$i]."</option>";
}
print "</select><br/>
<input type=\"hidden\" name=\"tachka\" value=\"".$os_cars[$cars_rand]."\"/>
<postfield name=\"at_gun\" value=\"$(at_gun)\"/>";
echo "<input class=\"ibutton\" type=\"submit\" value=\"".$lang['ok']."\"/>
</form>";
}
}
else
{
if($at_gun==$lang['gun1'])$at_gun=1;
elseif($at_gun==$lang['gun2'])$at_gun=2;
elseif($at_gun==$lang['gun3'])$at_gun=3;
elseif($at_gun==$lang['gun4'])$at_gun=4;
elseif($at_gun==$lang['gun5'])$at_gun=5;
elseif($at_gun==$lang['gun6'])$at_gun=6;
elseif($at_gun==$lang['gun7'])$at_gun=7;
elseif($at_gun==$lang['gun8'])$at_gun=8;
elseif($at_gun==$lang['gun9'])$at_gun=9;
elseif($at_gun==$lang['gun10'])$at_gun=10;
elseif($at_gun==$lang['gun11'])$at_gun=11;
elseif($at_gun==$lang['gun12'])$at_gun=12;
elseif($at_gun==$lang['gun13'])$at_gun=13;
elseif($at_gun==$lang['gun14'])$at_gun=14;
elseif($at_gun==$lang['gun15'])$at_gun=15;
elseif($at_gun==$lang['gun16'])$at_gun=16;
elseif($at_gun==$lang['gun17'])$at_gun=17;
elseif($at_gun==$lang['gun18'])$at_gun=18;
elseif($at_gun==$lang['gun19'])$at_gun=19;
elseif($at_gun==$lang['gun20'])$at_gun=20;
elseif($at_gun==$lang['gun21'])$at_gun=21;
$gun_cop=rand(7,18);
if($gun_cop==7)$cop_gun=$lang['gun7'];
elseif($gun_cop==8)$cop_gun=$lang['gun8'];
elseif($gun_cop==9)$cop_gun=$lang['gun9'];
elseif($gun_cop==10)$cop_gun=$lang['gun10'];
elseif($gun_cop==11)$cop_gun=$lang['gun11'];
elseif($gun_cop==12)$cop_gun=$lang['gun12'];
elseif($gun_cop==13)$cop_gun=$lang['gun13'];
elseif($gun_cop==14)$cop_gun=$lang['gun14'];
elseif($gun_cop==15)$cop_gun=$lang['gun15'];
elseif($gun_cop==16)$cop_gun=$lang['gun16'];
elseif($gun_cop==17)$cop_gun=$lang['gun17'];
elseif($gun_cop==18)$cop_gun=$lang['gun18'];
if($maska<time())$police=$police+3;
if($gun_cop>$at_gun)
{
$health=$health-50;
if($health<0) $health=0;
mysql_query("update users set health='".$health."',police='".$police."' where id='".$id."';");
print $lang['bank_grab_fuck']." ".$cop_gun."!<br/>".$lang['bank_grab_health']." ".$health."%<br/>";
}
else
{
mysql_query("update users set police='".$police."' where id='".$id."';");
if(empty($cars))
mysql_query("update users set cars='$tachka' where id='".$id."';");
else
mysql_query("update users set cars='$cars.$tachka' where id='".$id."';");
print "<b>$tachka</b> ".$lang['el_car_now_at_you']."<br/>";
}
}
}
print "><a href=\"elite.php?id=$id&pass=$pass\">".$lang['area_elite']."</a><br/>";
break;
default:
print "<u>[".$lang['area_elite']."]</u><br/>";
print $lang['el_mes']."<br/>";
/* print "<a href=\"museum.php?id=$id&pass=$pass\"></a><br/>";*/
print "<a href=\"rest.php?id=$id&pass=$pass\">".$lang['rest']."</a><br/>";
print "<a href=\"elite.php?id=$id&pass=$pass&mode=1a\">".$lang['el_1avenu']."</a><br/>";
print "<a href=\"security.php?id=$id&pass=$pass\">".$lang['el_security']."</a><br/>";
print "<img src='./../pic/goldmag.GIF' alt='goldmag'/><a href=\"goldmag.php?id=$id&pass=$pass\">Элитный магазин</a><br/>";
print "><a href=\"area.php?id=$id&pass=$pass\">".$lang['city1_area']."</a><br/>";
break;
}
print "---<br/>><a href=\"index.php?id=$id&pass=$pass\">".$lang['in_city']."</a>";
print "<br/>>><a href=\"./../game.php?id=$id&pass=$pass\">".$lang['menu']."</a>";
print "<br/>---</body></html>";
mysql_close();
}
elseif($ban==1)
{
die ($lang['empty_login']."</body></html>");
}
?>