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

Размер файла: 4.42Kb
  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 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.  
  53. if($pass!=$data['pass'])
  54. {
  55. die ($lang['empty_login']."</body>
  56. </html>");
  57. }
  58.  
  59. mysql_query("update users set last='".time()."',city='1' where id='".$id."';");
  60. if($ban==0)
  61. {
  62.  
  63. include "./../includes/inc_secur.php";
  64. include "./../includes/inc_golod.php";
  65. include "./../includes/inc_hospital.php";
  66. include "./../includes/inc_police.php";
  67. include "./../includes/inc_die.php";
  68. include "./../includes/inc_voodoo.php";
  69. include "./../includes/inc_attack.php";
  70. include "./../includes/inc_mes.php";
  71. print "<b>[Зд: $health %][Сыт: $golod %][Зщ: $secur %]</b><br/>";
  72. $result = mysql_query("SELECT * FROM `themes`");
  73. $ths = mysql_num_rows($result);
  74. $result = mysql_query("SELECT * FROM `posts`");
  75. $pts = mysql_num_rows($result);
  76. echo'<a href="./../forum.php?id='.$id.'&amp;pass='.$pass.'">Форум</a> (<b>'.$ths.'</b>|<b>'.$pts.'</b>)<br/>';
  77.  
  78. print "<b>".$lang['game_city3']."</b><br/>";
  79. print "<u>[".$lang['izdat']."]</u><br/>";
  80. print "<u>".$lang['news1']."</u><br/>";
  81.  
  82. if(!empty($p))
  83. {
  84. if(($money-$p)<=0) print $lang['voo_no_money'];
  85. else
  86. {
  87. if($p==1000000000)
  88. {
  89.  
  90. $redaktor=$redaktor+1;
  91. $money=$money-1000000000;
  92. mysql_query("update users set money='".$money."',redaktor='".$redaktor."' where id='".$id."';");
  93. print $lang['kupyes']." :-)<br/>";
  94.  
  95. }
  96. elseif($p==15)
  97. {
  98. $gol_rand=rand(10,20);
  99. $golod=$golod+$gol_rand;
  100. if($golod>150)print $lang['rest_golod_err'];
  101. else
  102. {
  103. $money=$money-15;
  104. mysql_query("update users set money='".$money."',golod='".$golod."' where id='".$id."';");
  105. print $lang['rest_now_yr_golod']." ".$golod."% :-)<br/>";
  106. }
  107. }
  108. elseif($p==10)
  109. {
  110. $gol_rand=rand(5,10);
  111. $golod=$golod+$gol_rand;
  112. if($golod>150)print $lang['rest_golod_err'];
  113. else
  114. {
  115. $money=$money-10;
  116. mysql_query("update users set money='".$money."',golod='".$golod."' where id='".$id."';");
  117. print $lang['rest_now_yr_golod']." ".$golod."% :-)<br/>";
  118. }
  119. }
  120. elseif($p==5)
  121. {
  122. $gol_rand=rand(1,5);
  123. $golod=$golod+$gol_rand;
  124. if($golod>150)print $lang['rest_golod_err'];
  125. else
  126. {
  127. $money=$money-5;
  128. mysql_query("update users set money='".$money."',golod='".$golod."' where id='".$id."';");
  129. print $lang['rest_now_yr_golod']." ".$golod."% :-)<br/>";
  130. }
  131. }
  132. }
  133. }
  134.  
  135. print $lang['city1_at_you']." <b>$money $$</b> ".$lang['city1_want_buy']."<br/>";
  136. print "<a href=\"vykup.php?id=$id&amp;pass=$pass&amp;p=1000000000\">".$lang['kup']."</a>(1000000000$$)<br/>";
  137.  
  138.  
  139.  
  140. print "&gt;<a href=\"index.php?id=$id&amp;pass=$pass\">".$lang['in_city']."</a><br/>";
  141.  
  142.  
  143. print "<br/>&gt;&gt;<a href=\"./../game.php?id=$id&amp;pass=$pass\">".$lang['menu']."</a>";
  144. print "<br/>---";
  145.  
  146. mysql_close();
  147. include "./../includes/footer2.php";
  148. echo '<br/><br/>-------<br/><div class="msg"><a href="http://wenz.net.ru">Сайт вап мастеру</a></div><br/>';
  149.  
  150. }
  151.  
  152. elseif($ban==1)
  153. {
  154. die ($lang['empty_login']."</body>
  155. </html>");
  156.  
  157. }
  158. ?>