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

Размер файла: 3Kb
  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. print "<p><small>";
  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']."</small></p></card></wml>");
  30. }
  31.  
  32. $data = mysql_fetch_array($q);
  33.  
  34. $id=$data['id'];
  35. $login=$data['login'];
  36. $money=$data['money'];
  37. $level=$data['level'];
  38. $police=$data['police'];
  39. $stage=$data['stage'];
  40. $health=$data['health'];
  41. $cars=$data['cars'];
  42. $guns=$data['guns'];
  43. $nums=$data['nums'];
  44. $voo_por=$data['voodoo'];
  45. $golod=$data['golod'];
  46. $secur=$data['secur'];
  47. $zav=$data['zav'];
  48. $lsd=$data['lsd'];
  49. $ban=$data['ban'];
  50.  
  51. if($pass!=$data['pass'])
  52. {
  53. die ($lang['empty_login']."</small></p></card></wml>");
  54. }
  55.  
  56. mysql_query("update users set last='".time()."',city='1' where id='".$id."';");
  57. if($ban==0)
  58. {
  59.  
  60. include "./../includes/inc_secur.php";
  61. include "./../includes/inc_golod.php";
  62. include "./../includes/inc_hospital.php";
  63. include "./../includes/inc_police.php";
  64. include "./../includes/inc_die.php";
  65. include "./../includes/inc_voodoo.php";
  66. include "./../includes/inc_attack.php";
  67. include "./../includes/inc_mes.php";
  68. print "<b>[Зд: $health %][Сыт: $golod %][Зщ: $secur %]</b><br/>";
  69. $result = mysql_query("SELECT * FROM `themes`");
  70. $ths = mysql_num_rows($result);
  71. $result = mysql_query("SELECT * FROM `posts`");
  72. $pts = mysql_num_rows($result);
  73. echo'<a href="./../forum.php?id='.$id.'&amp;pass='.$pass.'">Форум</a> (<b>'.$ths.'</b>|<b>'.$pts.'</b>)<br/>';
  74.  
  75. print "<b>".$lang['game_city1']."</b><br/>";
  76. print "<u>[SeT]</u><br/>";
  77. print "<b>Нyжен автоpитет?!1000$ - 5 автоpитета!</b><br/>";
  78. print "<a href=\"set_yes.php?id=$id&amp;pass=$pass\">Давай!</a><br/>";
  79. print "<a href=\"slums.php?id=$id&amp;pass=$pass\">Не, доpого!</a><br/>";
  80. include("./../includes/inc_in_city.php");
  81.  
  82.  
  83. mysql_close();
  84. include "./../includes/footer.php";
  85. }
  86.  
  87. elseif($ban==1)
  88. {
  89. die ($lang['empty_login']."</small></p></card></wml>");
  90.  
  91. }
  92. ?>