📄 del.php
字号:
<?php
include("wish.php");
if (!is_file("$datadir/$filename")) {
die ("<script>alert(\"找不到您要删除的文章!\");history.back();</script>");
}
if ($action=="del") {
if ($adminpsd==$password) {
unlink("$datadir/$filename");
echo "<meta http-equiv='Refresh' content='2; URL=javascript:self.close()'><p align=\"center\">已成功删除了!";
}
else {
die ("<script>alert(\"密码错误!\");history.back();</script>");
}
}
?>
<html>
<head>
<style>
<!--
body{font-size:9pt;font-family:verdana}
td{font-size:9pt;font-family:verdana}
p{font-size:9pt;font-family:verdana}
A:link{text-decoration:none; color:#666666}
A:visited{text-decoration:none; color:#666666}
A:hover{text-decoration:underline; color:#51bfe0;border-bottom:2px dotted}
-->
</style>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><?php echo "$name--删除文章"; ?></title>
</head>
<body background="images/bg.jpg">
<center>
<p align="center"><font size="+2" color="orange" face="仿宋"><?php echo "$name"; ?></font></p>
<form action="del.php?action=del&filename=<?php echo "$filename"; ?>" method="post">
请输入管理密码: <br>
<input name="password" size="20" type="password" style="border: 1 dashed #51bfe0"><br>
<input style="border:1px dotted #51bfe0;background-color:#ffffff;font-size:9pt" type="submit" value="删 除"> <input style="border:1px dotted #51bfe0;background-color:#ffffff;font-size:9pt" type="reset" value="取 消" onclick="javascript:history.back();">
</form>
<td align="center"><a href="http://wish.xaboy.cn"><b>▃◣http://wish.xaboy.cn鱼鱼的个人文章.</b></a></td>
</center>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -