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

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