📄 delfiels.asp
字号:
<%
Response.ExpiresAbsolute=now()-1
Response.CacheControl="no-cache"
%>
<%
' *** Restrict Access To Page: Grant or deny access to this page
MM_authorizedUsers=""
MM_authFailedURL="../../index.asp"
MM_grantAccess=false
If Session("userssdfgfhtrh") <> "" 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 objFSO '声明一个名称为 objFSO 的变量以存放对象实例
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
If objFSO.FileExists(Server.MapPath(Session("sharefilesmapth"))) Then
objFSO.DeleteFile Server.MapPath(Session("filesmapth")),True
Response.Write "已经成功地对文件"&Session("filesmapth")&"进行了删除"
'Response.Write "已经成功地对文件"&Server.MapPath(Session("filesmapth"))&"进行了删除"
Else
Response.Write Server.MapPath(session("tempnames"))&"不存在,无法进行删除"
End If
Set objFSO = Nothing '释放 FileSystemObject 对象实例内存空间
%>
<%
if(Session("shareIDS") <> "") then Command1__varid = Session("shareIDS")
%>
<%
set Command1 = Server.CreateObject("ADODB.Command")
Command1.ActiveConnection = MM_oavbsconn_STRING
Command1.CommandText = "DELETE FROM 文件共享 WHERE id=" + Replace(Command1__varid, "'", "''") + " "
Command1.CommandType = 1
Command1.CommandTimeout = 0
Command1.Prepared = true
Command1.Execute()
%>
<link href="/css/link.css" rel="stylesheet" type="text/css">
<body>
<script language="javascript">
<!--
alert("文件删除成功!");window.location.href="/toall/jfoanet/mysharefiles.asp"
-->
</script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -