📄 setadmin.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<%Response.ContentType = "text/vnd.wap.wml; charset=utf-8"%>
<!-- #include file="conn.asp" -->
<!-- #include file="onlines.asp" --><?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<%
dim id,pid,objj,rsad,pno
id=request.QueryString("id")
pid=request.QueryString("pID")
objj=request.QueryString("obj")
set rsad=Server.CreateObject("ADODB.Recordset")
rsad.open "select phone from login where id='"&request("shouji")&"'",conn,1,3
if rsad.bof and rsad.eof then
response.redirect "index.asp"
else
pno=rsad("phone")
end if
rsad.close
set rsad=nothing
dim rsmi,bz,rsp
set rsmi=Server.CreateObject("ADODB.Recordset")
rsmi.open "select bz from sheet where shouji='" & pno & "'",conn,1,2
bz=rsmi("bz")
rsmi.close
set rsmi=nothing
if instr(bz,"-99-")>0 or instr(bz,"-98-")>0 or instr(bz,"-97-")>0 then
set rsp=Server.CreateObject("ADODB.Recordset")
rsp.open "select bz from sheet where ID=" & pid,conn,1,2
if rsp.recordcount>0 then
if objj="u" then
rsp("bz")=rsp("bz") & cint(id) &"-"
else
rsp("bz")=replace(rsp("bz"),"-"&id&"-","-")
end if
rsp.update
end if
rsp.close
set rsp=nothing
end if
conn.close
set conn=nothing
%><wml>
<head>
<meta http-equiv="Cache-Control" content="no-Cache"/>
</head>
<card title="升为版主" ontimer="look.asp?id=<%=id%>&pID=<%=pid%>&shouji=<%=request("shouji")%>">
<timer value="3"/>
<p align="center">
更改成功!<br/><br/>
<a href="look.asp?id=<%=id%>&pID=<%=pid%>&shouji=<%=request("shouji")%>">[返回资料]</a><br/>
<a href="list.asp?id=<%=id%>&shouji=<%=request("shouji")%>">[返回该版]</a><br/>
<a href="bbs.asp?shouji=<%=request("shouji")%>">[论坛首页]</a><br/>
<a href="../index.asp?shouji=<%=request("shouji")%>">[网站首页]</a><br/></p>
</card>
</wml>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -