exit.php
上传用户:m68239277
上传日期:2014-10-12
资源大小:824k
文件大小:1k
源码类别:

Web服务器

开发平台:

PHP

  1. <?php
  2. session_start();
  3. include("../inc/conn.php");
  4. if(isset($_SESSION["son"]))
  5. {
  6.  $userf=$_SESSION["aduser"];//
  7.  $sign=9;
  8. }else
  9.   $sign=8;
  10.   $userf=$_SESSION["aduser"];
  11. }
  12. mysql_query("delete from online where user_account='$userf'",$conn);
  13. mysql_query("delete from onuser where user_account='$userf' and sign='$sign'",$conn); 
  14. unset($_SESSION["adminuser"]);
  15. unset($_SESSION["aduser"]);
  16. unset($_SESSION["sign"]);
  17. unset($_SESSION["son"]);
  18. echo "<script language='javascript'>window.location='index.php'</script>";
  19. ?>