forked from Meituan-Dianping/SQLAdvisor
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathmain.php
More file actions
30 lines (29 loc) · 1.13 KB
/
Copy pathmain.php
File metadata and controls
30 lines (29 loc) · 1.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?php
session_start();
//检测是否登录,若没登录则转向登录界面
if(!isset($_SESSION['userid'])){
header("Location:index.html");
exit("你还没登录呢。");
}
//注销登录
if($_GET['action'] == "logout"){
unset($_SESSION['userid']);
unset($_SESSION['username']);
echo '注销登录成功!';
exit('<script>top.location.href="index.html"</script>');
}
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>首页</title>
</head>
<frameset rows="30,*" cols="*" scrolling="No" framespacing="0"
frameborder="no" border="0"> <frame src="header.php"
name="headmenu" id="mainFrame" title="mainFrame"> <!-- 引用头部 -->
<!-- 引用左边和主体部分 --> <frameset rows="100*" cols="220,*" scrolling="No"
framespacing="0" frameborder="no" border="0"> <frame
src="left.php" name="leftmenu" id="mainFrame" title="mainFrame">
<frame src="sql_interface.php" name="main" scrolling="yes" noresize="noresize"
id="rightFrame" title="rightFrame"></frameset></frameset>
</html>