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

Размер файла: 3.49Kb
  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,zav,lsd,ban,admin 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. $admin=$data['admin'];
  51.  
  52. if($pass!=$data['pass'])
  53. {
  54. die ($lang['empty_login']."</body>
  55. </html>");
  56. }
  57.  
  58. mysql_query("update users set last='".time()."',city='1' where id='".$id."';");
  59. if($ban==0)
  60. {
  61.  
  62. include "./../includes/inc_secur.php";
  63. include "./../includes/inc_golod.php";
  64. include "./../includes/inc_hospital.php";
  65. include "./../includes/inc_police.php";
  66. include "./../includes/inc_die.php";
  67. include "./../includes/inc_voodoo.php";
  68. include "./../includes/inc_attack.php";
  69. include "./../includes/inc_mes.php";
  70. print "<b>[Зд: $health %][Сыт: $golod %][Зщ: $secur %]</b><br/>";
  71. print "<b>".$lang['game_city1']."</b><br/>";
  72. print "<u>[".$lang['in_meriya']."]</u><br/>";
  73.  
  74. if ($mode == "bands")
  75. {
  76. print '<b>'.$lang['polh_bands'].'</b><br/>';
  77. $pr_q=mysql_query("select name,boss,avtoritet from bands order by avtoritet desc limit 10;");
  78.  
  79. while($pr_ar=mysql_fetch_array($pr_q))
  80. {
  81. ++$i;
  82. print "<b>".$i.".</b>".$pr_ar['name']." (".$pr_ar['avtoritet'].")<br/>
  83. ".$lang['polh_boss'].": <b>".$pr_ar['boss']."</b><br/>";
  84. }
  85. }
  86. else
  87. {
  88.  
  89. print "".$lang['s_mer']."<br/>";
  90.  
  91. $pr_q=mysql_query("select login,zav from users where zav=1;");
  92.  
  93. while($pr_ar=mysql_fetch_array($pr_q))
  94. {
  95. ++$i;
  96. print "<b>".$pr_ar['login']."</b><br/>";
  97. }
  98. }
  99. print '---<br/><a href="./../golos/index.php?id='.$id.'&amp;pass='.$pass.'">'.$lang['Vybory'].'</a><br/>';
  100. print '<a href="faq.php?id='.$id.'&amp;pass='.$pass.'&amp;mode=bands">'.$lang['faqm'].'</a><br/>';
  101. print "---<br/>&gt;<a href=\"index.php?id=$id&amp;pass=$pass\">".$lang['in_city']."</a>";
  102. print "<br/>&gt;&gt;<a href=\"./../game.php?id=$id&amp;pass=$pass\">".$lang['menu']."</a>";
  103. print "<br/>---";
  104.  
  105. mysql_close();
  106. include "./../includes/footer2.php";
  107. }
  108.  
  109. elseif($ban==1)
  110. {
  111. die ($lang['empty_login']."</body>
  112. </html>");
  113.  
  114. }
  115. ?>