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

Размер файла: 2.12Kb
  1. <?php
  2. include "./../ini.php";
  3. include "./../includes/header.php";
  4. include "./../includes/inc_online.php";
  5. print "<p><small>";
  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 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.  
  35. if($pass!=$data['pass'])
  36. {
  37. die ($lang['empty_login']."</small></p></card></wml>");
  38. }
  39.  
  40. mysql_query("update users set last='".time()."',city='1' where id='".$id."';");
  41.  
  42. include "./../includes/inc_secur.php";
  43. include "./../includes/inc_golod.php";
  44. include "./../includes/inc_hospital.php";
  45. include "./../includes/inc_police.php";
  46. include "./../includes/inc_die.php";
  47. include "./../includes/inc_voodoo.php";
  48. include "./../includes/inc_attack.php";
  49. include "./../includes/inc_mes.php";
  50. print "<b>".$lang['game_city1']."</b><br/>";
  51. print "<u>[".$lang['sl_enter']."]</u><br/>";
  52. print $lang['sl_mes']."<br/>";
  53. print "<a href=\"user_home.php?id=$id&amp;pass=$pass\">".$lang['sl_your_home']."</a><br/>";
  54. print "<a href=\"fastfood.php?id=$id&amp;pass=$pass\">".$lang['sl_fastfood']."</a><br/>";
  55. print "<a href=\"black_sale.php?id=$id&amp;pass=$pass\">".$lang['sl_black_sale']."</a><br/>";
  56. print "<a href=\"set.php?id=$id&amp;pass=$pass\">".$lang['set_sale']."</a><br/>";
  57. print "<a href=\"voodoo.php?id=$id&amp;pass=$pass\">".$lang['sl_kol_voodoo']."</a><br/>";
  58. print "<a href=\"public_house.php?id=$id&amp;pass=$pass\">".$lang['ph_enter']."</a><br/>";
  59. print "<a href=\"sklad.php?id=$id&amp;pass=$pass\">".$lang['sl_sklad']."</a><br/>";
  60.  
  61. include("./../includes/inc_in_city.php");
  62.  
  63. mysql_close();
  64. include "./../includes/footer.php";
  65. ?>