⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 admin_pburl.asp

📁 这是一个非常好的留言版程序
💻 ASP
字号:
<!--#include file=conn.asp--> 
<!--#include file=char.asp--> 
<!--#include file=Admin_page.asp--> 

<%

if session("AdminName") = "" then
	Session.Abandon
    response.Redirect "Admin_Login.asp"
end if

if Session("AdminName")<>"admin" then
			response.write"<SCRIPT language=JavaScript>alert('对不起您无权访问本页!');"
			response.write"javascript:location.href='Admin_login.asp';</SCRIPT>"
			response.end
   end if

%>
<html>

<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../index.css" rel="stylesheet" type="text/css">
<title>后台管理</title>
</head>

<body>
<br>
<%
zt=request("zt")
if zt="pb" then
	url=trim(request("url"))
	if url="" then
		response.write "屏蔽地址不能为空"
		response.end
	end if
	sql="update zhai set ispub=0 where fromurl like '%"&url&"%'"
	conn.execute(sql)

end if
if zt="hf" then
	url=trim(request("url"))
	if url="" then
		response.write "屏蔽地址不能为空"
		response.end
	end if
	sql="update zhai set ispub=1 where fromurl like '%"&url&"%'"
	conn.execute(sql)

end if
%>
<br>
<div align="center">
	<table border="1" width="95%" cellspacing="0" cellpadding="3" bordercolorlight="#C0C0C0" bordercolordark="#FFFFFF" id="table3">
		<tr height =30>
			<td bgcolor="#C0C0C0">&nbsp;屏蔽恶意网站</td>
		</tr>
		<form method="POST" action="admin_pburl.asp?zt=pb">
		<tr height =30>
			<td bgcolor="#EAEAEA">·<input type="text" name="url" size="27">
			<input type="submit" value="屏蔽" name="B1"> 格式:ezhai.net
			不要http://www.</td>
		</tr>
		</form>
		<tr height =30>
			<td bgcolor="#EAEAEA">                                                                                                                                 
			 </td>
		</tr>
		</table>
</div>
<p></p>
<div align="center">
	<table border="1" width="95%" cellspacing="0" cellpadding="3" bordercolorlight="#C0C0C0" bordercolordark="#FFFFFF" id="table3">
		<tr height =30>
			<td bgcolor="#C0C0C0">&nbsp;恢复网站</td>
		</tr>
		<form method="POST" action="admin_pburl.asp?zt=hf">
		<tr height =30>
			<td bgcolor="#EAEAEA">·<input type="text" name="url" size="27">
			<input type="submit" value="恢复" name="B1"> 格式:ezhai.net 
			不要http://www.</td>
		</tr>
		</form>
		<tr height =30>
			<td bgcolor="#EAEAEA">                                                                                                                                 
			 </td>
		</tr>
		</table>
</div>
</body>

</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -