📄 dodel.php
字号:
<?
/*
-------------------------------------------------------- */
?>
<html>
<head>
<title><? echo $gbookname; ?></title>
<style type="text/css">
<!--
a:hover { font-family: "宋体"; font-size: 12px; color: #0000FF; text-decoration: none}
a:link { font-family: "宋体"; font-size: 12px; text-decoration: none; color: #333333}
a:visited { font-family: "宋体"; font-size: 12px; text-decoration: none; color: #333333}
td { font-family: "宋体"; font-size: 12px}
-->
</style>
</head>
<body topMargin=5 bgcolor="#ffffff" text="#000000" link="#4682B4" vlink="#4682B4" background="img/lines.gif">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="15"><img alt="" src="img/imac_scrn_1.gif" width="15" height="16" /></td>
<td background="img/imac_scrn_3.gif" width="100%"><img alt=""
src="img/spacer.gif" width="10" height="16" /></td>
<td width="16"><img alt="" src="img/imac_scrn_5.gif" width="16" height="16" /></td>
</tr>
<tr>
<td width="15" background="img/imac_scrn_9.gif"><img alt=""
src="img/spacer.gif" width="15" height="60" /></td>
<td align="center">
<?
require("config.php");
if (empty($id)||empty($pass)||empty($user))
{
echo "<br><br><center>信息不全<br><a href='javascript:history.back();'>
返回</a></center>";
exit();
}
if ($pass!=$adminpass){ echo "你不是管理员"; exit(); }
if (!file_exists("data/$user")) {
echo "<br><br><center>无该用户</center>";
exit();
}
$msg=file("data/$user");
$num=count($msg);
$fp=fopen("data/$user","w");
flock($fp,1);
for ($i=0;$i<$num;$i++){
list($time,$name,$url,$text,$mail,$oicq,$date,$img,$ip)=explode("|",$msg[$i]);
if($id!=$time){ fputs($fp,$msg[$i]); }
}
fclose($fp);
print "<br><br><center>应该删除了<br><a href=gbook.php?user=".$user.">
返回留言本看看</a></center>";
?>
</td>
<td width="16" background="img/imac_scrn_10.gif"><img alt=""
src="img/spacer.gif" width="15" height="60" /></td>
</tr>
<tr>
<td width="15"><img alt="" src="img/imac_scrn_13.gif" width="15" height="16" /></td>
<td background="img/imac_scrn_14.gif" width="100%"><img alt=""
src="img/spacer.gif" width="10" height="16" /></td>
<td width="16"><img alt="" src="img/imac_scrn_11.gif" width="16" height="16" /></td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -