Просмотр файла gta/city1/area.php

Размер файла: 2.37Kb
  1. <?php
  2.  
  3. include "./../ini3.php";
  4. include "./../includes/header2.php";
  5. include "./../includes/inc_online.php";
  6.  
  7.  
  8. $id=cyr(htmlspecialchars(stripslashes(trim($id))));
  9. $pass=cyr(htmlspecialchars(stripslashes(trim($pass))));
  10.  
  11. if(!empty($id))
  12. {
  13. $q = mysql_query("select * from users where id='".$id."';");
  14. }
  15. else
  16. {
  17. die ($lang['empty_login']."</body>
  18. </html>");
  19. }
  20.  
  21. $data = mysql_fetch_array($q);
  22.  
  23. $id=$data['id'];
  24. $login=$data['login'];
  25. $money=$data['money'];
  26. $level=$data['level'];
  27. $police=$data['police'];
  28. $stage=$data['stage'];
  29. $health=$data['health'];
  30. $cars=$data['cars'];
  31. $guns=$data['guns'];
  32. $nums=$data['nums'];
  33. $voo_por=$data['voodoo'];
  34. $golod=$data['golod'];
  35. $secur=$data['secur'];
  36. $zav=$data['zav'];
  37. $lsd=$data['lsd'];
  38. $ban=$data['ban'];
  39. $lox=$data['lox'];
  40.  
  41. if($pass!=$data['pass'])
  42. {
  43. die ($lang['empty_login']."</body>
  44. </html>");
  45. }
  46.  
  47. mysql_query("update users set last='".time()."',city='1' where id='".$id."';");
  48. if($ban==0)
  49. {
  50.  
  51. include "./../includes/inc_secur.php";
  52. include "./../includes/inc_golod.php";
  53. include "./../includes/inc_hospital.php";
  54. include "./../includes/inc_police.php";
  55. include "./../includes/inc_die.php";
  56. include "./../includes/inc_voodoo.php";
  57. include "./../includes/inc_attack.php";
  58. include "./../includes/inc_mes.php";
  59. print "<b>[Зд: $health %][Сыт: $golod %][Зщ: $secur %]</b><br/>";
  60. print "<b>".$lang['game_city1']."</b><br/>";
  61. print "<u>[".$lang['area_enter']."]</u><br/>";
  62. print $lang['area_mes']."<br/>";
  63.  
  64. print "<a href=\"bega.php?id=$id&amp;pass=$pass\">Тараканьи бега</a><br/>";
  65.  
  66. print "<a href=\"about.php?id=$id&amp;pass=$pass\">".$lang['area_chuv']."</a><br/>";
  67.  
  68. print "<a href=\"chuvak.php?id=$id&amp;pass=$pass\">".$lang['chuv_enter']."</a><br/>";
  69.  
  70. print "<a href=\"bank.php?id=$id&amp;pass=$pass\">".$lang['area_bank']."</a><br/>";
  71.  
  72. print "<a href=\"kasino.php?id=$id&amp;pass=$pass\">".$lang['area_kasino']."</a><br/>";
  73.  
  74. print "<a href=\"agentstvo.php?id=$id&amp;pass=$pass\">".$lang['area_ag']."</a><br/>";
  75.  
  76. print "<a href=\"elite.php?id=$id&amp;pass=$pass\">Элитный район</a><br/>";
  77.  
  78. print "<a href=\"safe.php?id=$id&amp;pass=$pass\">Взломать банковский сейф</a><br/>";
  79.  
  80. include("./../includes/inc_in_city.php");
  81.  
  82. mysql_close();
  83. include "./../includes/footer2.php";
  84. }
  85.  
  86. elseif($ban==1)
  87. {
  88. die ($lang['empty_login']."</body>
  89. </html>");
  90.  
  91. }
  92. ?>