View file gta/city1/area.php

File size: 3.49Kb
  1. <?php
  2. #####################################################
  3. # mod by -=LesNIK=- #
  4. # icq 366244181 #
  5. # Официальный сайт мода http://wenz.net.ru #
  6. # все ответы на вопросы и помощь по скрипту #
  7. # вы можете получить только там! #
  8. # #
  9. # Вы не имеете право вносить #
  10. # свои изменения в данный мод!#
  11. # #
  12. # Уважайте труд автора! #
  13. #####################################################
  14.  
  15. include "./../ini3.php";
  16. include "./../includes/header2.php";
  17. include "./../includes/inc_online.php";
  18.  
  19.  
  20. $id=cyr(htmlspecialchars(stripslashes(trim($id))));
  21. $pass=cyr(htmlspecialchars(stripslashes(trim($pass))));
  22.  
  23. if(!empty($id))
  24. {
  25. $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."';");
  26. }
  27. else
  28. {
  29. die ($lang['empty_login']."</body>
  30. </html>");
  31. }
  32.  
  33. $data = mysql_fetch_array($q);
  34.  
  35. $id=$data['id'];
  36. $login=$data['login'];
  37. $money=$data['money'];
  38. $level=$data['level'];
  39. $police=$data['police'];
  40. $stage=$data['stage'];
  41. $health=$data['health'];
  42. $cars=$data['cars'];
  43. $guns=$data['guns'];
  44. $nums=$data['nums'];
  45. $voo_por=$data['voodoo'];
  46. $golod=$data['golod'];
  47. $secur=$data['secur'];
  48. $zav=$data['zav'];
  49. $lsd=$data['lsd'];
  50. $ban=$data['ban'];
  51.  
  52. if($pass!=$data['pass'])
  53. {
  54. die ($lang['empty_login']."</body>
  55. </html>");
  56. }
  57.  
  58. mysql_query("update users set last='".time()."',city='1' where id='".$id."';");
  59. if($ban==0)
  60. {
  61.  
  62. include "./../includes/inc_secur.php";
  63. include "./../includes/inc_golod.php";
  64. include "./../includes/inc_hospital.php";
  65. include "./../includes/inc_police.php";
  66. include "./../includes/inc_die.php";
  67. include "./../includes/inc_voodoo.php";
  68. include "./../includes/inc_attack.php";
  69. include "./../includes/inc_mes.php";
  70. print "<b>[Зд: $health %][Сыт: $golod %][Зщ: $secur %]</b><br/>";
  71. $result = mysql_query("SELECT * FROM `themes`");
  72. $ths = mysql_num_rows($result);
  73. $result = mysql_query("SELECT * FROM `posts`");
  74. $pts = mysql_num_rows($result);
  75. echo'<a href="./../forum.php?id='.$id.'&amp;pass='.$pass.'">Форум</a> (<b>'.$ths.'</b>|<b>'.$pts.'</b>)<br/>';
  76.  
  77. print "<b>".$lang['game_city1']."</b><br/>";
  78. print "<u>[".$lang['area_enter']."]</u><br/>";
  79. print $lang['area_mes']."<br/>";
  80.  
  81. print "<a href=\"bega.php?id=$id&amp;pass=$pass\">Тараканьи бега</a><br/>";
  82.  
  83. print "<a href=\"about.php?id=$id&amp;pass=$pass\">".$lang['area_chuv']."</a><br/>";
  84.  
  85. print "<a href=\"chuvak.php?id=$id&amp;pass=$pass\">".$lang['chuv_enter']."</a><br/>";
  86.  
  87. print "<a href=\"bank.php?id=$id&amp;pass=$pass\">".$lang['area_bank']."</a><br/>";
  88.  
  89. print "<a href=\"kasino.php?id=$id&amp;pass=$pass\">".$lang['area_kasino']."</a><br/>";
  90.  
  91. print "<a href=\"agentstvo.php?id=$id&amp;pass=$pass\">".$lang['area_ag']."</a><br/>";
  92.  
  93. print "<a href=\"elite.php?id=$id&amp;pass=$pass\">Элитный район</a><br/>";
  94.  
  95. print "<a href=\"safe.php?id=$id&amp;pass=$pass\">Взломать банковский сейф</a><br/>";
  96.  
  97. include("./../includes/inc_in_city.php");
  98.  
  99. mysql_close();
  100. include "./../includes/footer2.php";
  101. }
  102.  
  103. elseif($ban==1)
  104. {
  105. die ($lang['empty_login']."</body>
  106. </html>");
  107.  
  108. }
  109. ?>