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

Размер файла: 2.41Kb
  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 secur,golod,voodoo,nums,guns,cars,id,login,pass,money,level,police,health,zav,lsd,ban 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.  
  39. if($pass!=$data['pass'])
  40. {
  41. die ($lang['empty_login']."</body>
  42. </html>");
  43. }
  44.  
  45. mysql_query("update users set last='".time()."',city='1' where id='".$id."';");
  46. if($ban==0)
  47. {
  48.  
  49. include "./../langpack/russian/lang_texts.php";
  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.  
  61.  
  62. switch ($mode)
  63. {
  64. case "ab":
  65.  
  66. if(empty($page))
  67. {
  68. print $lang['ab1']."<a href=\"about.php?id=$id&amp;pass=$pass&amp;mode=ab&amp;page=2\">".$lang['next']."</a><br/>";
  69. }
  70. else
  71. {
  72. print $lang['ab2'];
  73. }
  74. print "&gt;<a href=\"about.php?id=$id&amp;pass=$pass\">".$lang['lans']."</a><br/>";
  75. break;
  76. case "pr":
  77.  
  78. print $lang['pravila'];
  79. print "&gt;<a href=\"about.php?id=$id&amp;pass=$pass\">".$lang['lans']."</a><br/>";
  80. break;
  81. default:
  82. print "<u>[".$lang['lans']."]</u><br/>";
  83. print $lang['abo_mes'];
  84. print "<a href=\"about.php?id=$id&amp;pass=$pass&amp;mode=ab\">".$lang['abo_sluh']."</a><br/>";
  85. print "<a href=\"about.php?id=$id&amp;pass=$pass&amp;mode=pr\">".$lang['abo_rules']."</a><br/>";
  86. break;
  87. }
  88.  
  89.  
  90. include("./../includes/inc_in_city.php");
  91.  
  92. mysql_close();
  93. include "./../includes/footer2.php";
  94. }
  95.  
  96. elseif($ban==1)
  97. {
  98. die ($lang['empty_login']."</body>
  99. </html>");
  100.  
  101. }
  102.  
  103. ?>