<?php
#####################################################
# mod by -=LesNIK=- #
# icq 366244181 #
# Официальный сайт мода http://wenz.net.ru #
# все ответы на вопросы и помощь по скрипту #
# вы можете получить только там! #
# #
# Вы не имеете право вносить #
# свои изменения в данный мод!#
# #
# Уважайте труд автора! #
#####################################################
include "./../ini3.php";
include "./../includes/header2.php";
include "./../includes/inc_online.php";
print "<p><small>";
$id=cyr(htmlspecialchars(stripslashes(trim($id))));
$pass=cyr(htmlspecialchars(stripslashes(trim($pass))));
if(!empty($id))
{
$q = mysql_query("select secur,golod,voodoo,nums,guns,cars,id,login,pass,money,level,police,health,zav,lsd,ban 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'];
$golod=$data['golod'];
$secur=$data['secur'];
$zav=$data['zav'];
$lsd=$data['lsd'];
$ban=$data['ban'];
if($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_golod.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 %][Сыт: $golod %][Зщ: $secur %]</b><br/>";
$result = mysql_query("SELECT * FROM `themes`");
$ths = mysql_num_rows($result);
$result = mysql_query("SELECT * FROM `posts`");
$pts = mysql_num_rows($result);
echo'<a href="./../forum.php?id='.$id.'&pass='.$pass.'">Форум</a> (<b>'.$ths.'</b>|<b>'.$pts.'</b>)<br/>';
print "<b>".$lang['game_city1']."</b><br/>";
switch ($mode)
{
case "n":
if(empty($money)) print $lang['voo_no_money'];
else
{
print $lang['sec_mes1'];
if(empty($what))
{
print $lang['cops_select_gun'].":<br/>";
echo "<form action=\"security.php?id=$id&pass=$pass&mode=n\" method=\"post\">";
print "<select name=\"what\">
<option value=\"10\">Кастет(60 $$)</option>
<option value=\"20\">Нож(120 $$)</option>
<option value=\"50\">Дубинка(300 $$)</option>
<option value=\"70\">ПМ(420 $$)</option>
<option value=\"100\">Мачете(600 $$)</option>
<option value=\"120\">Беретта(720 $$)</option>
<option value=\"150\">Меч(900 $$)</option>
<option value=\"200\">Калашников(1200 $$)</option>
<option value=\"250\">Взрывчатка(1500 $$)</option>
<option value=\"300\">Электрошокер(1800 $$)</option>
<option value=\"500\">Напалм(3000 $$)</option>
<option value=\"1000\">Базука(6000 $$)</option>
<option value=\"1500\">Гранатомет(9000 $$)</option>
<option value=\"2000\">ПЗРК(12000 $$)</option>
<option value=\"3000\">Слонобой(18000 $$)</option>
<option value=\"5000\">Ракетная установка(30000 $$)</option>
<option value=\"8000\">МЕ 85 Combat(48000 $$)</option>
<option value=\"10000\">Rohm 735(60000 $$)</option>
<option value=\"20000\">Brunner CZ 75(120000 $$)</option>
<option value=\"50000\">Лазерное оружие(300000 $$)</option>
</select>";
print '<postfield name="what" value="$(what)"/><br/>';
print "<input class=\"ibutton\" type=\"submit\" value=\"".$lang['ok']."\"/>
</form>";
}
else
{
$what_arr=array(10,20,50,70,100,120,150,200,250,300,500,1000,1500,2000,3000,5000,8000,10000,20000,50000);
if(!in_array($what,$what_arr)) die ($lang['error']."<br/><anchor>".$lang['back']."<prev/></anchor></small></p></card></wml>");
if(($money-$what*5)<=0) die ($lang['voo_no_money']."<br/><anchor>".$lang['back']."<prev/></anchor></small></p></card></wml>");
--$level;
if($level<0)$level=0;
$what2=$what*6;
mysql_query("update users set secur='".$what."',money='".$money."'-'".$what2."',level='".$level."' where id='".$id."';");
print $lang['sec_succ'];
}
}
print "><a href=\"security.php?id=$id&pass=$pass\">".$lang['el_security']."</a><br/>";
break;
case "u":
if(empty($money)) print $lang['voo_no_money'];
else
{
print $lang['sec_mes2'];
if(empty($what))
{
print $lang['cops_select_gun'].":<br/>";
echo "<form action=\"security.php?id=$id&pass=$pass&mode=u\" method=\"post\">";
print '<select name=\"what\">';
print '<option value=\"10\">Кастет(60 $$)</option>';
print '<option value=\"20\">Нож(120 $$)</option>';
print '<option value=\"50\">Дубинка(300 $$)</option>';
print '<option value=\"70\">ПМ(420 $$)</option>';
print '<option value=\"100\">Мачете(600 $$)</option>';
print '<option value=\"120\">Беретта(720 $$)</option>';
print '<option value=\"150\">Меч(900 $$)</option>';
print '<option value=\"200\">Калашников(1200 $$)</option>';
print '<option value=\"250\">Взрывчатка(1500 $$)</option>';
print '<option value=\"300\">Электрошокер(1800 $$)</option>';
print '<option value=\"500\">Напалм(3000 $$)</option>';
print '<option value=\"1000\">Базука(6000 $$)</option>';
print '<option value=\"1500\">Гранатомет(9000 $$)</option>';
print '<option value=\"2000\">ПЗРК(12000 $$)</option>';
print '<option value=\"3000\">Слонобой(18000 $$)</option>';
print '<option value=\"5000\">Ракетная установка(30000 $$)</option>';
print '<option value=\"8000\">МЕ 85 Combat(48000 $$)</option>';
print '<option value=\"10000\">Rohm 735(60000 $$)</option>';
print '<option value=\"20000\">Brunner CZ 75(120000 $$)</option>';
print '<option value=\"50000\">Лазерное оружие(300000 $$)</option>';
print '</select><br/>';
print '<postfield name="what" value="$(what)"/><br/>';
print "<input class=\"ibutton\" type=\"submit\" value=\"".$lang['ok']."\"/>
</form>";
}
else
{
$what_arr=array(10,20,50,70,100,120,150,200,250,300,500,1000,1500,2000,3000,5000,8000,10000,20000,50000);
if(!in_array($what,$what_arr)) die ($lang['error']."<br/><anchor>".$lang['back']."<prev/></anchor></small></p></card></wml>");
if(($money-$what*6)<=0) die ($lang['voo_no_money']."<br/><anchor>".$lang['back']."<prev/></anchor></small></p></card></wml>");
$sec_level=$what+$secur;
--$level;
if($level<0)$level=0;
$what2=$what*5;
mysql_query("update users set secur='".$sec_level."',money='".$money."'-'".$what2."',level='".$level."' where id='".$id."';");
print $lang['sec_mes3'];
}
}
print "><a href=\"security.php?id=$id&pass=$pass\">".$lang['el_security']."</a><br/>";
break;
default:
print "<u>[".$lang['el_security']."]</u><br/>";
print $lang['sec_enter'];
if($secur==0) print "<a href=\"security.php?id=$id&pass=$pass&mode=n\">".$lang['sec_get']."</a><br/>";
else print "<a href=\"security.php?id=$id&pass=$pass&mode=u\">".$lang['sec_more']."</a><br/>";
print "><a href=\"elite.php?id=$id&pass=$pass\">".$lang['area_elite']."</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/>---";
mysql_close();
include "./../includes/footer.php";
}
elseif($ban==1)
{
die ($lang['empty_login']."</small></p></card></wml>");
}
?>