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

Размер файла: 2.46Kb
  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 * from users where id='".$id."';");
  13. }
  14. else
  15. {
  16. die ($lang['empty_login']."</body>
  17. </html>");
  18. }
  19.  
  20. $data = mysql_fetch_array($q);
  21.  
  22. $id=$data['id'];
  23. $login=$data['login'];
  24. $money=$data['money'];
  25. $level=$data['level'];
  26. $police=$data['police'];
  27. $stage=$data['stage'];
  28. $health=$data['health'];
  29. $cars=$data['cars'];
  30. $guns=$data['guns'];
  31. $nums=$data['nums'];
  32. $voo_por=$data['voodoo'];
  33. $golod=$data['golod'];
  34. $secur=$data['secur'];
  35. $zav=$data['zav'];
  36. $lsd=$data['lsd'];
  37. $ban=$data['ban'];
  38. $lox=$data['lox'];
  39. $maska=$data['maska'];
  40.  
  41. if($pass!=$data['pass'])
  42. {
  43. die ($lang['empty_login']."</body>
  44. </html>");
  45. }
  46.  
  47. mysql_query("update users set last='".time()."',city='1' where id='".$id."';");
  48. if($ban==0)
  49. {
  50.  
  51. include "./../includes/inc_secur.php";
  52. include "./../includes/inc_golod.php";
  53. include "./../includes/inc_hospital.php";
  54. include "./../includes/inc_police.php";
  55. include "./../includes/inc_die.php";
  56. include "./../includes/inc_voodoo.php";
  57. include "./../includes/inc_attack.php";
  58. include "./../includes/inc_mes.php";
  59. print "<b>[Зд: $health %][Сыт: $golod %][Зщ: $secur %]</b><br/>";
  60. print "<b>".$lang['game_city1']."</b><br/>";
  61. print "<u>[".$lang['chuv_enter']."]</u><br/>";
  62.  
  63. switch ($mode)
  64. {
  65. case "e":
  66. if(empty($p))
  67. {
  68. print 'Да,есть экстази.Ты можешь купить его за 2000 баксов<br/>';
  69. print "<a href=\"chuvak.php?id=$id&amp;pass=$pass&amp;mode=e&amp;p=k\">Купить</a><br/>";
  70. }
  71. else
  72. {
  73. if($money<100) die($lang['bands_user_without_money_for']."<br/><anchor>".$lang['back']."<prev/></anchor></p></card></wml>");
  74. $money=$money-2000;
  75. if($maska<time())++$police;
  76. mysql_query("update users set money='".$money."',police='".$police."',health='1500' where id='".$id."';");
  77. print $lang['chuv_warning'];
  78. }
  79. break;
  80. default:
  81. print $lang['chuv_mes'];
  82. print "<a href=\"chuvak.php?id=$id&amp;pass=$pass&amp;mode=e\">".$lang['chuv_vopros']."</a><br/>";
  83. print "<a href=\"area.php?id=$id&amp;pass=$pass\">".$lang['chuv_ok']."</a><br/>";
  84. break;
  85. }
  86.  
  87.  
  88. include("./../includes/inc_in_city.php");
  89.  
  90. mysql_close();
  91. include "./../includes/footer2.php";
  92. }
  93.  
  94. elseif($ban==1)
  95. {
  96. die ($lang['empty_login']."</body>
  97. </html>");
  98.  
  99. }
  100. ?>