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

Размер файла: 2.41Kb
  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 secur,golod,voodoo,nums,guns,cars,id,login,pass,money,level,police,health,zav,lsd,ban 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.  
  40. if($pass!=$data['pass'])
  41. {
  42. die ($lang['empty_login']."</body>
  43. </html>");
  44. }
  45.  
  46. mysql_query("update users set last='".time()."',city='1' where id='".$id."';");
  47. if($ban==0)
  48. {
  49.  
  50. include "./../includes/inc_secur.php";
  51. include "./../includes/inc_golod.php";
  52. include "./../includes/inc_hospital.php";
  53. include "./../includes/inc_police.php";
  54. include "./../includes/inc_die.php";
  55. include "./../includes/inc_voodoo.php";
  56. include "./../includes/inc_attack.php";
  57. include "./../includes/inc_mes.php";
  58. print "<b>[Зд: $health %][Сыт: $golod %][Зщ: $secur %]</b><br/>";
  59. print "<b>".$lang['game_city1']."</b><br/>";
  60. print "<u>[".$lang['area_enter']."]</u><br/>";
  61. print $lang['area_mes']."<br/>";
  62.  
  63. print "<a href=\"bega.php?id=$id&amp;pass=$pass\">Тараканьи бега</a><br/>";
  64.  
  65. print "<a href=\"about.php?id=$id&amp;pass=$pass\">".$lang['area_chuv']."</a><br/>";
  66.  
  67. print "<a href=\"chuvak.php?id=$id&amp;pass=$pass\">".$lang['chuv_enter']."</a><br/>";
  68.  
  69. print "<a href=\"bank.php?id=$id&amp;pass=$pass\">".$lang['area_bank']."</a><br/>";
  70.  
  71. print "<a href=\"kasino.php?id=$id&amp;pass=$pass\">".$lang['area_kasino']."</a><br/>";
  72.  
  73. print "<a href=\"agentstvo.php?id=$id&amp;pass=$pass\">".$lang['area_ag']."</a><br/>";
  74.  
  75. print "<a href=\"elite.php?id=$id&amp;pass=$pass\">Элитный район</a><br/>";
  76.  
  77. print "<a href=\"safe.php?id=$id&amp;pass=$pass\">Взломать сейф</a><br/>";
  78.  
  79. include("./../includes/inc_in_city.php");
  80.  
  81. mysql_close();
  82. include "./../includes/footer2.php";
  83. }
  84.  
  85. elseif($ban==1)
  86. {
  87. die ($lang['empty_login']."</body>
  88. </html>");
  89.  
  90. }
  91. ?>