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

Размер файла: 2.55Kb
  1. <?php
  2. include "./../ini.php";
  3. include "./../includes/header.php";
  4. include "./../includes/inc_online.php";
  5. print "<p><small>";
  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 from users where id='".$id."';");
  13. }
  14. else
  15. {
  16. die ($lang['empty_login']."</small></p></card></wml>");
  17. }
  18.  
  19. $data = mysql_fetch_array($q);
  20.  
  21. $id=$data['id'];
  22. $login=$data['login'];
  23. $money=$data['money'];
  24. $level=$data['level'];
  25. $police=$data['police'];
  26. $stage=$data['stage'];
  27. $health=$data['health'];
  28. $cars=$data['cars'];
  29. $guns=$data['guns'];
  30. $nums=$data['nums'];
  31. $voo_por=$data['voodoo'];
  32. $golod=$data['golod'];
  33. $secur=$data['secur'];
  34.  
  35. if($pass!=$data['pass'])
  36. {
  37. die ($lang['empty_login']."</small></p></card></wml>");
  38. }
  39.  
  40. mysql_query("update users set last='".time()."',city='1' where id='".$id."';");
  41.  
  42. include "./../includes/inc_secur.php";
  43. include "./../includes/inc_golod.php";
  44. include "./../includes/inc_hospital.php";
  45. include "./../includes/inc_police.php";
  46. include "./../includes/inc_die.php";
  47. include "./../includes/inc_voodoo.php";
  48. include "./../includes/inc_attack.php";
  49. include "./../includes/inc_mes.php";
  50. print "<b>".$lang['game_city1']."</b><br/>";
  51. print "<u>[".$lang['polh_house']."]</u><br/>";
  52.  
  53. if ($mode == "bands")
  54. {
  55. print '<b>'.$lang['polh_bands'].'</b><br/>';
  56. $pr_q=mysql_query("select name,boss,avtoritet from bands order by avtoritet desc limit 10;");
  57.  
  58. while($pr_ar=mysql_fetch_array($pr_q))
  59. {
  60. ++$i;
  61. print "<b>".$i.".</b>".$pr_ar['name']." (".$pr_ar['avtoritet'].")<br/>
  62. ".$lang['polh_boss'].": <b>".$pr_ar['boss']."</b><br/>";
  63. }
  64. }
  65. else
  66. {
  67. print '<a href="police_house.php?id='.$id.'&amp;pass='.$pass.'&amp;mode=bands">'.$lang['polh_bands'].'</a><br/>';
  68. print '<a href="sud.php?id='.$id.'&amp;pass='.$pass.'&amp;mode=bands">'.$lang['plc_sud'].'</a><br/>';
  69. print "Их разыскивает полиция: <br/>";
  70.  
  71. $pr_q=mysql_query("select login,police from users order by police desc limit 10;");
  72.  
  73. while($pr_ar=mysql_fetch_array($pr_q))
  74. {
  75. ++$i;
  76. print "<b>".$i.".</b>".$pr_ar['login']." (".$pr_ar['police'].")<br/>";
  77. }
  78. }
  79.  
  80. print "---<br/>&gt;<a href=\"index.php?id=$id&amp;pass=$pass\">".$lang['in_city']."</a>";
  81. print "<br/>&gt;&gt;<a href=\"./../game.php?id=$id&amp;pass=$pass\">".$lang['menu']."</a>";
  82. print "<br/>---";
  83.  
  84. mysql_close();
  85. include "./../includes/footer.php";
  86. ?>