soft_del.asp
来自「欢迎使用《雨点下载系统 2.0》! 本系统仅提供给个人网站免费使用」· ASP 代码 · 共 43 行
ASP
43 行
<!--#include file="conn.asp"-->
<!--#include file="chkadmin.asp"-->
<!--#include file="inc/char.asp"-->
<%dim id,classid,sType
id=CInt(Trim(Request.QueryString("id")))
classid=Trim(Request.QueryString("classid"))
sType=Trim(Request.QueryString("type"))
dim errmsg,founderr
founderr=false
if chkadmin=false or power(1)="0" then
founderr=true
errmsg=errmsg+"<li>您没有删除软件的权限</li>"
end if
dim sql,rs
sql="select Poster from Software where ID="&id
set rs=conn.execute(sql)
if chkadmin=false or (power(4)="0" and rs(0)<>session("adm_usr")) then
founderr=true
errmsg=errmsg+"<li>您没有删除他人软件的权限</li>"
end if
set rs=nothing
if founderr=false then
conn.execute("delete from Software where ID=" & id)
conn.execute("delete from Review where SoftID=" & id)
dim gourl,msg
if sType<>"" then
gourl="soft_"&sType&".asp"
else
gourl="soft_list.asp?id="&cint(classid)
end if
msg="此软件已删除!"
call ok()
else
call error()
end if
conn.close
set conn=nothing
%>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?