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

Размер файла: 6.29Kb
  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. include "ini3.php";
  16. include "includes/header2.php";
  17. include "includes/inc_online.php";
  18.  
  19.  
  20. $id=htmlspecialchars($id);
  21. $login=htmlspecialchars($login);
  22. $pass=htmlspecialchars($pass);
  23.  
  24. if(!empty($login))
  25. {
  26. $q = mysql_query("select secur,golod,admin,band,guns,cars,id,login,pass,status,reg_data,money,level,police,health,ban,zav,lsd from users where login='".cyr($login)."';");
  27. }
  28. elseif(!empty($id))
  29. {
  30. $q = mysql_query("select secur,golod,admin,band,guns,cars,id,login,pass,status,reg_data,money,level,police,health,ban,zav,lsd from users where id='".$id."';");
  31. }
  32. else
  33. {
  34. die ($lang['empty_login']."</body></html>");
  35. }
  36.  
  37. $data = mysql_fetch_array($q);
  38.  
  39. $id=$data['id'];
  40. $login=$data['login'];
  41. $status=$data['status'];
  42. $reg_data=$data['reg_data'];
  43. $money=$data['money'];
  44. $level=$data['level'];
  45. $police=$data['police'];
  46. $health=$data['health'];
  47. $cars=$data['cars'];
  48. $guns=$data['guns'];
  49. $band=$data['band'];
  50. $golod=$data['golod'];
  51. $secur=$data['secur'];
  52. $admin=$data['admin'];
  53. $ban=$data['ban'];
  54. $lsd=$data['lsd'];
  55. $zav=$data['zav'];
  56.  
  57. if($pass!=$data['pass'])
  58. {
  59. die ($lang['empty_login']."</body></html>");
  60. }
  61. $result = mysql_query("SELECT * FROM `gb`");
  62. $pts = mysql_num_rows($result);
  63. mysql_query("update users set last='".time()."',city='0' where id='".$id."';");
  64. $asp = mysql_query("SELECT date FROM news ORDER BY dbid DESC LIMIT 1");
  65. $news = mysql_fetch_array($asp);
  66.  
  67. print "<a href=\"news/index.php?id=$id&amp;pass=$pass\">Новости</a>[".($news['date'])."]<br/>";
  68. $asd = mysql_query("SELECT date FROM gb ORDER BY dbid DESC LIMIT 1");
  69. $gb = mysql_fetch_array($asd);
  70. echo'<a href="gb/index.php?id='.$id.'&amp;pass='.$pass.'">Общение по игpe</a>('.$pts.')<br/>';
  71. echo'<a href="adminy.php?id='.$id.'&amp;pass='.$pass.'">Администрация Игры</a><br/><br/>';
  72. if($admin==7)
  73. {
  74. echo'<a href="cpan/admina.php?id='.$id.'&amp;pass='.$pass.'">АДМИНКА</a><br/>';
  75. echo'<a href="city4/admin.php?id='.$id.'&amp;pass='.$pass.'">АДМИНКА Увал Сити</a><br/>';
  76. }
  77. elseif($admin==6)
  78. {
  79. echo'<a href="cpan/moder.php?id='.$id.'&amp;pass='.$pass.'">Модерка</a><br/>';
  80. }
  81. if($zav==1)
  82. {
  83. echo'<a href="cpan/mer.php?id='.$id.'&amp;pass='.$pass.'">Мэр понель</a><br/>';
  84. }
  85. print "<u>".$lang['header']."</u><br/>";
  86. print "<b>---------------</b><br/>";
  87. if($ban==0)
  88. {
  89. print $lang['game_hello1'].", $login! ".$lang['game_hello2']."<br/>";
  90.  
  91.  
  92.  
  93.  
  94. print "<b>[".$lang['game_towns']."]</b><br/>";
  95. if($level<50)
  96. {
  97. echo'<a href="city1/index.wml?id='.$id.'&amp;pass='.$pass.'">'.$lang['game_city1'].'</a><br/>';
  98. print $lang['game_city2']."<br/>".$lang['game_city3']."<br/>".$lang['game_city4']."<br/>";
  99. }
  100. elseif($level>50 && $level<100)
  101. {
  102. echo'<a href="city1/index.wml?id='.$id.'&amp;pass='.$pass.'">'.$lang['game_city1'].'</a><br/>';
  103. echo'<a href="city2/index.wml?id='.$id.'&amp;pass='.$pass.'">'.$lang['game_city2'].'</a><br/>';
  104. print $lang['game_city3']."<br/>";
  105. print $lang['game_city4']."<br/>";
  106. }
  107. elseif($level>=100 && $level<200)
  108. {
  109. echo'<a href="city1/index.wml?id='.$id.'&amp;pass='.$pass.'">'.$lang['game_city1'].'</a><br/>';
  110. echo'<a href="city2/index.wml?id='.$id.'&amp;pass='.$pass.'">'.$lang['game_city2'].'</a><br/>';
  111. echo'<a href="city3/index.wml?id='.$id.'&amp;pass='.$pass.'">'.$lang['game_city3'].'</a><br/>';
  112. print $lang['game_city4']."<br/>";
  113. }
  114. elseif($level>=200)
  115. {
  116. echo'<a href="city1/index.wml?id='.$id.'&amp;pass='.$pass.'">'.$lang['game_city1'].'</a><br/>';
  117. echo'<a href="city2/index.wml?id='.$id.'&amp;pass='.$pass.'">'.$lang['game_city2'].'</a><br/>';
  118. echo'<a href="city3/index.wml?id='.$id.'&amp;pass='.$pass.'">'.$lang['game_city3'].'</a><br/>';
  119. echo'<a href="city4/index.wml?id='.$id.'&amp;pass='.$pass.'">'.$lang['game_city4'].'</a><br/>';
  120. }
  121. if(!empty($band))
  122. {
  123. $band_q=mysql_query("select members from bands where name='".$band."';");
  124. $band_array=mysql_fetch_array($band_q);
  125. $members=$band_array['members'];
  126. $band_members = explode(".", $members);
  127. if(empty($members) || !in_array($login,$band_members))
  128. mysql_query("update users set band='' where id='".$id."';");
  129. else
  130. {
  131. print "<b>[".$lang['game_your_band']."]</b><br/>";
  132. echo'<a href="bands/band_panel.php?id='.$id.'&amp;pass='.$pass.'">'.$band.'</a><br/>';
  133. }
  134. }
  135.  
  136. include("includes/inc_statusy.php");
  137.  
  138. print "<b>[".$lang['game_stats']."]</b><br/>";
  139.  
  140. print $lang['uv_money'].": <b>$money $$</b><br/>";
  141. print $lang['uv_health'].": <b>$health %</b><br/>";
  142. print $lang['uv_golod'].": <b>$golod %</b><br/>";
  143. print $lang['uv_police'].": <b>$police</b><br/>";
  144. print $lang['uv_level'].": <b>$level</b><br/>";
  145. print $lang['uv_status'].": <b>$status</b><br/>";
  146. print $lang['uv_secur'].": <b>$secur</b><br/>";
  147.  
  148.  
  149.  
  150. if(!empty($cars))
  151. {
  152. $cars_count = explode(".", $cars);
  153. $count_cars=count($cars_count);
  154. print "<br/>".$lang['game_cars']." <b>($count_cars)</b>:<br/>";
  155. for($i=0;$i<$count_cars;$i++)
  156. {
  157. print $cars_count[$i].",";
  158. }
  159. }
  160. if(!empty($guns))
  161. {
  162. $guns_count = explode(".", $guns);
  163. $count_guns=count($guns_count);
  164. print "<br/>".$lang['game_guns']." <b>($count_guns)</b>:<br/>";
  165. for($i=0;$i<$count_guns;$i++)
  166. {
  167. print $guns_count[$i].",";
  168. }
  169.  
  170.  
  171.  
  172.  
  173. }
  174.  
  175. }
  176.  
  177. elseif($ban==1)
  178. {
  179. echo'<a href="http://wenz.net.ru/gta">вы отбываете cpок в тюpьме.Попpобyйте ввеcти данные еще paз.</a><br/>';
  180.  
  181. }
  182. print " <br/>";
  183. echo'<a href="profile.php?id='.$id.'&amp;pass='.$pass.'">Изменение пpофиля</a><br/>';
  184. echo'<a href="exit.php?id='.$id.'&amp;pass='.$pass.'">Выход</a><br/>';
  185.  
  186.  
  187. mysql_close();
  188. print "</body></html>";
  189. ?>