📄 admin_friendsite_del.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="Connections/connDB.asp" -->
<%
' *** Restrict Access To Page: Grant or deny access to this page
MM_authorizedUsers="999"
MM_authFailedURL="index.asp"
MM_grantAccess=false
If Session("MM_Username") <> "" Then
If (false Or CStr(Session("MM_UserAuthorization"))="") Or _
(InStr(1,MM_authorizedUsers,Session("MM_UserAuthorization"))>=1) Then
MM_grantAccess = true
End If
End If
If Not MM_grantAccess Then
MM_qsChar = "?"
If (InStr(1,MM_authFailedURL,"?") >= 1) Then MM_qsChar = "&"
MM_referrer = Request.ServerVariables("URL")
if (Len(Request.QueryString()) > 0) Then MM_referrer = MM_referrer & "?" & Request.QueryString()
MM_authFailedURL = MM_authFailedURL & MM_qsChar & "accessdenied=" & Server.URLEncode(MM_referrer)
Response.Redirect(MM_authFailedURL)
End If
%>
<%
if(Request("fID") <> "") then CommDel__strID = Request("fID")
%>
<%
set CommDel = Server.CreateObject("ADODB.Command")
CommDel.ActiveConnection = MM_connDB_STRING
CommDel.CommandText = "DELETE FROM tFriendSite WHERE fID =" + Replace(CommDel__strID, "'", "''") + ""
CommDel.CommandType = 1
CommDel.CommandTimeout = 0
CommDel.Prepared = true
CommDel.Execute()
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<meta http-equiv="refresh" content="2;URL=admin_friendsite_admin.asp">
</head>
<body>
<p> </p>
<table width="760" border="0" cellspacing="1" cellpadding="4">
<tr bgcolor="#66CC99">
<td width="100%"> </td>
</tr>
<tr bgcolor="#E8FFE8">
<td height="150"><div align="center">
<p>成功删除友情连接网站</p>
<p>3 秒后自动返回到友情连接管理页</p>
</div></td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -