📄 actdel.asp
字号:
<%@ LANGUAGE=VBScript%>
<%Server.ScriptTimeout=600
Response.Expires=0
if Session("a_c_user_name")="" then
Response.write "<b>[操作失败]</b><p>您尚未登录(或已经超时退出),不能进行此操作!"
Response.end
end if
if Session("a_c_user_level")<10 then
Response.Write "<b>[操作失败]</b><p>您没有管理动作库的权限!"
Response.End
end if
dim act()
actfile = server.mappath("actdata.asp")
Set fs = CreateObject("Scripting.FileSystemObject")
set thisfile = fs.OpenTextFile(actfile,1,False)
countact = 0
do while not thisfile.AtEndOfStream
thisline = thisfile.readline
Redim preserve act(countact)
act(countact) = thisline
countact = countact + 1
loop
thisfile.Close
line=Request.QueryString("line")
if int(line) <= int(act(2)) then
Response.Write "<b>[操作失败]</b><p>不能删除内置动作!"
Response.End
end if
set outfile = fs.CreateTextFile(actfile,TRUE,FALSE)
for i=0 to line-1
outfile.WriteLine act(i)
next
for i=line+3 to countact-1
outfile.WriteLine act(i)
next
outfile.Close%><html>
<head>
<title>删除动作</title>
<style type='text/css'>
<!--
.p9 {line-height: 150%; font-size: 9pt;}
.p12 {line-height: 150%; font-size: 12pt;}
body {line-height: 150%;font-size : 12pt;}
A {text-decoration: none;}
A:Hover {text-decoration : none;}
a:visited { color: #0000FF}
-->
</style>
</head>
<body bgcolor="#FFFFFF">
<h1 align="center"><font color="#0099FF">【删除动作】</font></h1>
<div align="center"></div>
<hr noshade size="1" color=#009900>
<p><b>[操作完成]</b></p>
<blockquote>
<p>已经将下述动作删除!<a href="javascript:history.go(-1)">【返回】</a></p>
<p><% Response.Write act(line) & " " & act(line+1) & " " & act(line+2) %></p>
</blockquote>
<hr noshade size="1" color=#009900>
<div align="center" class="p9"><script src="use.asp"></script> <script src="sn.asp"></script><br><script src="copyright.asp"></script></div>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -