exit.php
上传用户:m68239277
上传日期:2014-10-12
资源大小:824k
文件大小:1k
- <?php
- session_start();
- include("../inc/conn.php");
- if(isset($_SESSION["son"]))
- {
- $userf=$_SESSION["aduser"];//
- $sign=9;
- }else
- {
- $sign=8;
- $userf=$_SESSION["aduser"];
- }
- mysql_query("delete from online where user_account='$userf'",$conn);
- mysql_query("delete from onuser where user_account='$userf' and sign='$sign'",$conn);
- unset($_SESSION["adminuser"]);
- unset($_SESSION["aduser"]);
- unset($_SESSION["sign"]);
- unset($_SESSION["son"]);
- echo "<script language='javascript'>window.location='index.php'</script>";
- ?>