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

Размер файла: 3.67Kb
  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 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.  
  50. if($pass!=$data['pass'])
  51. {
  52. die ($lang['empty_login']."</body>
  53. </html>");
  54. }
  55.  
  56. mysql_query("update users set last='".time()."',city='1' where id='".$id."';");
  57.  
  58. include "includes/inc_secur.php";
  59. include "includes/inc_golod.php";
  60. include "includes/inc_hospital.php";
  61. include "includes/inc_police.php";
  62. include "includes/inc_die.php";
  63. include "includes/inc_voodoo.php";
  64. include "includes/inc_attack.php";
  65. include "includes/inc_mes.php";
  66. $money=$money-5;
  67. mysql_query("update users set money='".$money."' where id='".$id."';");
  68. print "<b>Плата за вызов такси 5$!</b><br/>";
  69. print "Куда едем?<br/>";
  70. print "------<br/>";
  71. if($level>=0 && $level<35)
  72. {
  73. print "<a href=\"city1/index.php?id=$id&amp;pass=$pass\"><b>".$lang['game_city1']."</b></a><br/>";
  74. print "<a href=\"city1/univermag.php?id=$id&amp;pass=$pass\">>".$lang['city1_market']."</a><br/>";
  75. print "<a href=\"city1/slums.php?id=$id&amp;pass=$pass\">=>".$lang['city1_slums']."</a><br/>";
  76. print "<a href=\"city1/area.php?id=$id&amp;pass=$pass\">=>".$lang['city1_area']."</a><br/>";
  77. print "<a href=\"city1/police_house.php?id=$id&amp;pass=$pass\">=>".$lang['city1_police_house']."</a><br/>";
  78. }
  79.  
  80. elseif($level>=35)
  81. {
  82. print "<a href=\"city1/index.php?id=$id&amp;pass=$pass\"><b>".$lang['game_city1']."</b></a><br/>";
  83. print "<a href=\"city1/univermag.php?id=$id&amp;pass=$pass\">>".$lang['city1_market']."</a><br/>";
  84. print "<a href=\"city1/slums.php?id=$id&amp;pass=$pass\">=>".$lang['city1_slums']."</a><br/>";
  85. print "<a href=\"city1/area.php?id=$id&amp;pass=$pass\">=>".$lang['city1_area']."</a><br/>";
  86. print "<a href=\"city1/police_house.php?id=$id&amp;pass=$pass\">=>".$lang['city1_police_house']."</a><br/>";
  87. print "<a href=\"city2/index.php?id=$id&amp;pass=$pass\"><b>==>".$lang['game_city2']."</b></a><br/>";
  88. print "<a href=\"city2/gunman.php?id=$id&amp;pass=$pass\">".$lang['city2_gunman']."</a><br/>";
  89. print "<a href=\"city1/gunman.php?id=$id&amp;pass=$pass\">Подозpительный тип</a><br/>";
  90. print "<a href=\"city2/supermarket.php?id=$id&amp;pass=$pass\">".$lang['supermarket']."</a><br/>";
  91. }
  92.  
  93.  
  94. mysql_close();
  95. print "</body></html>";
  96. ?>