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

Размер файла: 2.35Kb
  1. <?php
  2. include "./../ini3.php";
  3. include "./../includes/header2.php";
  4. include "./../includes/inc_online.php";
  5.  
  6.  
  7. $id=cyr(htmlspecialchars(stripslashes(trim($id))));
  8. $pass=cyr(htmlspecialchars(stripslashes(trim($pass))));
  9.  
  10. if(!empty($id))
  11. {
  12. $q = mysql_query("select * from users where id='".$id."';");
  13. }
  14. else
  15. {
  16. die ($lang['empty_login']."</body>
  17. </html>");
  18. }
  19.  
  20. $data = mysql_fetch_array($q);
  21.  
  22. $id=$data['id'];
  23. $login=$data['login'];
  24. $money=$data['money'];
  25. $level=$data['level'];
  26. $police=$data['police'];
  27. $stage=$data['stage'];
  28. $health=$data['health'];
  29. $cars=$data['cars'];
  30. $guns=$data['guns'];
  31. $nums=$data['nums'];
  32. $voo_por=$data['voodoo'];
  33. $golod=$data['golod'];
  34. $secur=$data['secur'];
  35. $zav=$data['zav'];
  36. $lsd=$data['lsd'];
  37. $ban=$data['ban'];
  38. $lox=$data['lox'];
  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 "./../langpack/russian/lang_texts.php";
  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.  
  62.  
  63. switch ($mode)
  64. {
  65. case "ab":
  66.  
  67. if(empty($page))
  68. {
  69. print $lang['ab1']."<a href=\"about.php?id=$id&amp;pass=$pass&amp;mode=ab&amp;page=2\">".$lang['next']."</a><br/>";
  70. }
  71. else
  72. {
  73. print $lang['ab2'];
  74. }
  75. print "&gt;<a href=\"about.php?id=$id&amp;pass=$pass\">".$lang['lans']."</a><br/>";
  76. break;
  77. case "pr":
  78.  
  79. print $lang['pravila'];
  80. print "&gt;<a href=\"about.php?id=$id&amp;pass=$pass\">".$lang['lans']."</a><br/>";
  81. break;
  82. default:
  83. print "<u>[".$lang['lans']."]</u><br/>";
  84. print $lang['abo_mes'];
  85. print "<a href=\"about.php?id=$id&amp;pass=$pass&amp;mode=ab\">".$lang['abo_sluh']."</a><br/>";
  86. print "<a href=\"about.php?id=$id&amp;pass=$pass&amp;mode=pr\">".$lang['abo_rules']."</a><br/>";
  87. break;
  88. }
  89.  
  90.  
  91. include("./../includes/inc_in_city.php");
  92.  
  93. mysql_close();
  94. include "./../includes/footer2.php";
  95. }
  96.  
  97. elseif($ban==1)
  98. {
  99. die ($lang['empty_login']."</body>
  100. </html>");
  101.  
  102. }
  103.  
  104. ?>