Просмотр файла gta/city3/izdat.php

Размер файла: 3.36Kb
  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.  
  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,redaktor from users where id='".$id."';");
  27. }
  28. else
  29. {
  30. die ($lang['empty_login']."</body>
  31. </html>");
  32. }
  33.  
  34. $data = mysql_fetch_array($q);
  35.  
  36. $id=$data['id'];
  37. $login=$data['login'];
  38. $money=$data['money'];
  39. $level=$data['level'];
  40. $police=$data['police'];
  41. $stage=$data['stage'];
  42. $health=$data['health'];
  43. $cars=$data['cars'];
  44. $guns=$data['guns'];
  45. $nums=$data['nums'];
  46. $voo_por=$data['voodoo'];
  47. $golod=$data['golod'];
  48. $secur=$data['secur'];
  49. $zav=$data['zav'];
  50. $lsd=$data['lsd'];
  51. $ban=$data['ban'];
  52. $redaktor=$data['redaktor'];
  53.  
  54. if($pass!=$data['pass'])
  55. {
  56. die ($lang['empty_login']."</body>
  57. </html>");
  58. }
  59.  
  60. mysql_query("update users set last='".time()."',city='3' where id='".$id."';");
  61. if($ban==0)
  62. {
  63.  
  64. include "./../includes/inc_secur.php";
  65. include "./../includes/inc_golod.php";
  66. include "./../includes/inc_hospital.php";
  67. include "./../includes/inc_police.php";
  68. include "./../includes/inc_die.php";
  69. include "./../includes/inc_voodoo.php";
  70. include "./../includes/inc_attack.php";
  71. include "./../includes/inc_mes.php";
  72. print "<b>[Зд: $health %][Сыт: $golod %][Зщ: $secur %]</b><br/>";
  73. $result = mysql_query("SELECT * FROM `themes`");
  74. $ths = mysql_num_rows($result);
  75. $result = mysql_query("SELECT * FROM `posts`");
  76. $pts = mysql_num_rows($result);
  77. echo'<a href="./../forum.php?id='.$id.'&amp;pass='.$pass.'">Форум</a> (<b>'.$ths.'</b>|<b>'.$pts.'</b>)<br/>';
  78.  
  79. print "<b>".$lang['izdat']."</b><br/>";
  80. print "<u>".$lang['izdat1']."</u><br/>";
  81. print "<b>".$lang['glav_redaktor']."</b><br/>";
  82.  
  83. $pr_q=mysql_query("select login,redaktor from users where redaktor>0;");
  84.  
  85. while($pr_ar=mysql_fetch_array($pr_q))
  86. {
  87. ++$i;
  88. print "<b>".$i.".</b>".$pr_ar['login']." (".$pr_ar['redaktor'].")<br/>";
  89. }
  90. if($redaktor>=1)
  91. {
  92. print "<a href=\"add.php?newn&amp;id=$id&amp;pass=$pass\">".$lang['add']."</a><br/>";
  93.  
  94. }
  95.  
  96. if($redaktor==0)
  97. {
  98. print "<br/>---";
  99. print "<br/>&gt;&gt;<a href=\"vykup.php?id=$id&amp;pass=$pass\">".$lang['kupit_mesto']."</a><br/>";
  100. }
  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.  
  106. include "./../includes/footer2.php";
  107. }
  108.  
  109.  
  110.  
  111. mysql_close();
  112. ?>