View file gta/adminy.php

File size: 2.87Kb
  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.  
  16. include "ini3.php";
  17. include "includes/header2.php";
  18. include "includes/inc_online.php";
  19. print "<small>";
  20.  
  21. $id=cyr(htmlspecialchars(stripslashes(trim($id))));
  22. $pass=cyr(htmlspecialchars(stripslashes(trim($pass))));
  23.  
  24. if(!empty($id))
  25. {
  26. $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."';");
  27. }
  28. else
  29. {
  30. die ($lang['empty_login']."</small></body></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. $zav=$data['zav'];
  49. $lsd=$data['lsd'];
  50. $ban=$data['ban'];
  51. $admin=$data['admin'];
  52.  
  53. if($pass!=$data['pass'])
  54. {
  55. die ($lang['empty_login']."</small></body></html>");
  56. }
  57.  
  58. mysql_query("update users set last='".time()."',city='1' where id='".$id."';");
  59. if($ban==0)
  60. {
  61.  
  62.  
  63.  
  64. print "<b>".$lang['administraciya']."</b><br/><br/>";
  65.  
  66.  
  67. if ($mode == "bands")
  68. {
  69. print '<b>'.$lang['polh_bands'].'</b><br/>';
  70. $pr_q=mysql_query("select name,boss,avtoritet from bands order by avtoritet desc limit 10;");
  71.  
  72. while($pr_ar=mysql_fetch_array($pr_q))
  73. {
  74. ++$i;
  75. print "<b>".$i.".</b>".$pr_ar['name']." (".$pr_ar['avtoritet'].")<br/>
  76. ".$lang['polh_boss'].": <b>".$pr_ar['boss']."</b><br/>";
  77. }
  78. }
  79. else
  80. {
  81.  
  82. print "".$lang['adm']."<br/>";
  83.  
  84. $pr_q=mysql_query("select login,admin from users where admin=7;");
  85.  
  86. while($pr_ar=mysql_fetch_array($pr_q))
  87. {
  88. ++$i;
  89. print "<b>".$pr_ar['login']."</b><br/>";
  90. }
  91. print "".$lang['modery']."<br/>";
  92.  
  93. $pr_o=mysql_query("select login,admin from users where admin=6;");
  94.  
  95. while($pr_ar=mysql_fetch_array($pr_o))
  96. {
  97. ++$i;
  98. print "<b>".$pr_ar['login']."</b><br/>";
  99. }
  100. }
  101.  
  102. print "<br/>---";
  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. print "</small></body></html>";
  108. }
  109.  
  110. elseif($ban==1)
  111. {
  112. die ($lang['empty_login']."</small></body></html>");
  113.  
  114. }
  115. ?>