📄 logout.php
字号:
<?
/////////////////////////////////////
// //
// 制 作 :宇海网络 //
// 主 页 :http://www.yhai.com //
// 邮 件 :support@yhai.com //
// //
/////////////////////////////////////
require("include/config.php");
require($datapath."/prepare.php");
require("global.php");
if($_POST['act'] == "addto"){
if($_POST['pass']=="") error("登陆密码不能为空");
if($_POST['pass'] == $config[pass]){
setcookie("abc",md5($config[pass]));
success("成功登陆","已登陆,你将可以管理留言","./");
}else{
error("你的密码错误");
}
}else{
setcookie("abc","",0);
header("Expires: 0");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<meta HTTP-EQUIV="REFRESH" CONTENT="3;URL=index.php">
<style>
a{text-decoration:none;font-size:9pt; color:#000000}
a:visited {text-decoration:none; color:000000}
a:hover {color:ff00ff; text-decoration:underline}
p{font-size:9pt;line-height:14pt}
</style>
<title>成功退出</title>
</head>
<body bgcolor="#9BCBFB">
<p align="center"> </p>
<p align="center"> </p>
<p align="center"> </p>
<div align="center">
<center>
<table border="0" cellpadding="0" cellspacing="1" width="350" height="51" bgcolor="#000000">
<tr>
<td width="100%" align="center" height="23" background="images/table.gif" style="font-size:9pt;"><font color="#FFFF00"><?echo$config[bookname];?></font></td>
</tr>
<tr>
<td width="100%" align="center" height="51" bgcolor="#FFFFFF" style="font-size:11pt;"><font color="#008000">你已退出留言板的管理模式</font></td>
</tr>
</table>
</center>
</div>
<p align="center">如你的浏览器没自动返回,<a href="index.php">请点这里</a></p>
</body>
</html>
<?
exit;
}
?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -