📄 delfoallow.asp
字号:
<%
Response.ExpiresAbsolute=now()-1
Response.CacheControl="no-cache"
%>
<%
MM_authorizedUsers=""
MM_authFailedURL="../adminlogin666.asp"
MM_grantAccess=false
If Session("MM_Usernamesyslogin") <> "" Then
If (true 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
%>
<!--#include file="../../Connections/oavbsconn.asp" -->
<%
Dim Recordset1__MMColParam
Recordset1__MMColParam = "1"
If (Request("id") <> "") Then
Recordset1__MMColParam = Request("id")
End If
%>
<%
if(request("id") <> "") then Command1__varid = request("id")
%>
<%
Dim Recordset1
Dim Recordset1_numRows
Set Recordset1 = Server.CreateObject("ADODB.Recordset")
Recordset1.ActiveConnection = MM_oavbsconn_STRING
Recordset1.Source = "SELECT * FROM xztypfilealooswtoacessdsfgfsg WHERE ID = " + Replace(Recordset1__MMColParam, "'", "''") + " ORDER BY 添加时间 DESC"
Recordset1.CursorType = 0
Recordset1.CursorLocation = 3
Recordset1.LockType = 3
Recordset1.Open()
if not Recordset1.eof or not Recordset1.bof then
dim oldxztype
oldxztype="|"&Recordset1("允许文件类型")&"|"
Recordset1_numRows = 0
end if
%>
<%
Recordset1.Close()
Set Recordset1 = Nothing
%>
<%
set Command1 = Server.CreateObject("ADODB.Command")
Command1.ActiveConnection = MM_oavbsconn_STRING
Command1.CommandText = "DELETE FROM xztypfilealooswtoacessdsfgfsg WHERE id=" + Replace(Command1__varid, "'", "''") + ""
Command1.CommandType = 1
Command1.CommandTimeout = 0
Command1.Prepared = true
Command1.Execute()
%>
<%
Dim xianzhi
Dim xianzhi_numRows
Set xianzhi = Server.CreateObject("ADODB.Recordset")
xianzhi.ActiveConnection = MM_oavbsconn_STRING
xianzhi.Source = "SELECT * FROM xzfilesuploadasfdgsdgrwt WHERE 类别 = 'allow'"
xianzhi.CursorType = 0
xianzhi.CursorLocation = 2
xianzhi.LockType = 3
xianzhi.Open()
xianzhi_numRows = 0
%>
<%if not xianzhi.eof or not xianzhi.bof then
xianzhi("xzfupload")=replace(xianzhi("xzfupload"),oldxztype,"|")
xianzhi.update
end if
%>
<%
xianzhi.Close()
Set xianzhi = Nothing
%>
<%response.redirect("allowtoaccess.asp")%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -