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

Размер файла: 3.66Kb
  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.  
  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 from users where id='".$id."';");
  26. }
  27. else
  28. {
  29. die ($lang['empty_login']."</body>
  30. </html>");
  31. }
  32.  
  33. $data = mysql_fetch_array($q);
  34.  
  35. $id=$data['id'];
  36. $login=$data['login'];
  37. $money=$data['money'];
  38. $level=$data['level'];
  39. $police=$data['police'];
  40. $stage=$data['stage'];
  41. $health=$data['health'];
  42. $cars=$data['cars'];
  43. $guns=$data['guns'];
  44. $nums=$data['nums'];
  45. $voo_por=$data['voodoo'];
  46. $golod=$data['golod'];
  47. $secur=$data['secur'];
  48.  
  49. if($pass!=$data['pass'])
  50. {
  51. die ($lang['empty_login']."</body>
  52. </html>");
  53. }
  54.  
  55. mysql_query("update users set last='".time()."',city='1' where id='".$id."';");
  56.  
  57. include "./../includes/inc_secur.php";
  58. include "./../includes/inc_golod.php";
  59. include "./../includes/inc_hospital.php";
  60. include "./../includes/inc_police.php";
  61. include "./../includes/inc_die.php";
  62. include "./../includes/inc_voodoo.php";
  63. include "./../includes/inc_attack.php";
  64. include "./../includes/inc_mes.php";
  65. print "<b>[Зд: $health %][Сыт: $golod %][Зщ: $secur %]</b><br/>";
  66. $result = mysql_query("SELECT * FROM `themes`");
  67. $ths = mysql_num_rows($result);
  68. $result = mysql_query("SELECT * FROM `posts`");
  69. $pts = mysql_num_rows($result);
  70. echo'<a href="./../forum.php?id='.$id.'&amp;pass='.$pass.'">Форум</a> (<b>'.$ths.'</b>|<b>'.$pts.'</b>)<br/>';
  71.  
  72. print "<b>".$lang['game_city1']."</b><br/>";
  73. print "<u>[".$lang['polh_house']."]</u><br/>";
  74.  
  75. if ($mode == "bands")
  76. {
  77. print '<b>'.$lang['polh_bands'].'</b><br/>';
  78. $pr_q=mysql_query("select name,boss,avtoritet from bands order by avtoritet desc limit 10;");
  79.  
  80. while($pr_ar=mysql_fetch_array($pr_q))
  81. {
  82. ++$i;
  83. print "<b>".$i.".</b>".$pr_ar['name']." (".$pr_ar['avtoritet'].")<br/>
  84. ".$lang['polh_boss'].": <b>".$pr_ar['boss']."</b><br/>";
  85. }
  86. }
  87. else
  88. {
  89. print '<a href="police_house.php?id='.$id.'&amp;pass='.$pass.'&amp;mode=bands">'.$lang['polh_bands'].'</a><br/>';
  90. print '<a href="../sud/index.php?id='.$id.'&amp;pass='.$pass.'&amp;act=spis">'.$lang['plc_sud'].'</a><br/>';
  91. print "Их разыскивает полиция: <br/>";
  92.  
  93. $pr_q=mysql_query("select login,police from users order by police desc limit 10;");
  94.  
  95. while($pr_ar=mysql_fetch_array($pr_q))
  96. {
  97. ++$i;
  98. print "<b>".$i.".</b>".$pr_ar['login']." (".$pr_ar['police'].")<br/>";
  99. }
  100. }
  101.  
  102. print "---<br/>&gt;<a href=\"index.php?id=$id&amp;pass=$pass\">".$lang['in_city']."</a>";
  103. print "<br/>&gt;&gt;<a href=\"./../game.php?id=$id&amp;pass=$pass\">".$lang['menu']."</a>";
  104. print "<br/>---";
  105.  
  106. mysql_close();
  107. include "./../includes/footer2.php";
  108. ?>