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

Размер файла: 2.18Kb
  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. $golod=$data['golod'];
  32. $secur=$data['secur'];
  33.  
  34. if($pass!=$data['pass'])
  35. {
  36. die ($lang['empty_login']."</small></p></card></wml>");
  37. }
  38.  
  39. mysql_query("update users set last='".time()."',city='1' where id='".$id."';");
  40.  
  41. include "./../langpack/russian/lang_texts.php";
  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.  
  52.  
  53. switch ($mode)
  54. {
  55. case "ab":
  56.  
  57. if(empty($page))
  58. {
  59. print $lang['ab1']."<a href=\"about.php?id=$id&amp;pass=$pass&amp;mode=ab&amp;page=2\">".$lang['next']."</a><br/>";
  60. }
  61. else
  62. {
  63. print $lang['ab2'];
  64. }
  65. print "&gt;<a href=\"about.php?id=$id&amp;pass=$pass\">".$lang['lans']."</a><br/>";
  66. break;
  67. case "pr":
  68.  
  69. print $lang['pravila'];
  70. print "&gt;<a href=\"about.php?id=$id&amp;pass=$pass\">".$lang['lans']."</a><br/>";
  71. break;
  72. default:
  73. print "<u>[".$lang['lans']."]</u><br/>";
  74. print $lang['abo_mes'];
  75. print "<a href=\"about.php?id=$id&amp;pass=$pass&amp;mode=ab\">".$lang['abo_sluh']."</a><br/>";
  76. print "<a href=\"about.php?id=$id&amp;pass=$pass&amp;mode=pr\">".$lang['abo_rules']."</a><br/>";
  77. break;
  78. }
  79.  
  80.  
  81. include("./../includes/inc_in_city.php");
  82.  
  83. mysql_close();
  84. include "./../includes/footer.php";
  85. ?>