setadmin.asp
来自「admin/admin.asp是WAP的后台管理登陆页面」· ASP 代码 · 共 27 行
ASP
27 行
<!-- #include file="conn.asp" -->
<%
id=saferequest("id",1)
set rs=server.createobject("adodb.recordset")
sql = "select * from sheet where id="&id
rs.open sql,conn,1,2
if rs.bof and rs.eof then
response.write "<script>window.alert('该会员帐号不存在或已经被管理员删除');window.location='bbsuser.asp';</script>"
else
if instr(rs("bz"),"-99-")>0 then
response.write "<script>window.alert('职位是站长,不能更改!');window.location='editbbsuser.asp?id="&id&"';</script>"
else
if instr(rs("bz"),"-97-")>0 then
rs("bz")=replace(rs("bz"),"-97-","-")
rs.update
else
rs("bz")=""&rs("bz")&"97-"
rs.update
end if
response.write "<script>window.alert('更改成功');window.location='editbbsuser.asp?id="&id&"';</script>"
end if
end if
rs.close
set rs=nothing
conn.close
set conn=nothing
%>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?