user_del.asp
来自「欢迎使用《雨点下载系统 2.0》! 本系统仅提供给个人网站免费使用」· ASP 代码 · 共 32 行
ASP
32 行
<!--#include file="conn.asp"-->
<!--#include file="chkadmin.asp"-->
<!--#include file="inc/char.asp"-->
<%dim usr,utype
usr=Trim(Request.QueryString("usr"))
utype=Trim(Request.QueryString("type"))
dim errmsg,founderr
founderr=false
if chkadmin=false or power(5)="0" then
founderr=true
errmsg=errmsg+"<li>您没有删除用户的权限</li>"
end if
if usr="admin" then
founderr=true
errmsg=errmsg+"<li>默认的管理员账号不能删除</li>"
end if
if founderr=false then
conn.execute("delete from UserInfo where USR='"&usr&"'")
dim gourl,msg
gourl="user_list.asp?type="&utype&""
msg="此用户已删除!"
call ok()
else
call error()
end if
conn.close
set conn=nothing%>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?