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

Размер файла: 908B
  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. $dbid=cyr(htmlspecialchars(stripslashes(trim($_GET[dbid]))));
  10.  
  11. if(!empty($id))
  12. {
  13. $q = mysql_query("select id,login,pass from users where id='".$id."';");
  14. }
  15. else
  16. {
  17. die ($lang['empty_login']."</small></p></card></wml>");
  18. }
  19.  
  20.  
  21. $data = mysql_fetch_array($q);
  22. $id=$data['id'];
  23. $login=$data['login'];
  24.  
  25.  
  26.  
  27. if($pass!=$data['pass'])
  28. {
  29. die ($lang['empty_login']."</small></p></card></wml>");
  30. }
  31.  
  32.  
  33. mysql_query("update users set last='".time()."',city='0' where id='".$id."';");
  34.  
  35. print $lang['exit_ok']."<br/>";
  36.  
  37. print "&gt;<a href=\"http://wenz.org.ru/gta/index.php/?url=\">".$lang['home_page']."</a><br/>";
  38.  
  39. mysql_close();
  40. print "</small></p></card></wml>";
  41. ?>