📄 admin_authorsave.asp
字号:
<!--#include file="../conn.asp"--><!--#include file="../inc/config.asp"-->
<!-- #include file="session.asp" -->
<%
page=replace(trim(request("page")),"'","")
id=request.QueryString("id")
act=request("act")
if act="lock" then
set rs=server.CreateObject("ADODB.RecordSet")
sql="select author_lock from author where author_id="&id
rs.open sql,conn,1,1
if not rs.eof then
if rs("author_lock")=0 then
conn.execute ("update author set author_lock=1 where author_id="&id)
else
conn.execute ("update author set author_lock=0 where author_id="&id)
end if
end if
rs.close
set rs=nothing
elseif act="author" then
conn.execute ("update userinfo set GOauthor=0 where authorid="&id)
conn.execute ("update author set author_addpost=0,author_lock=1 where author_id="&id)
elseif act="goauthor" then
conn.execute ("update userinfo set GOauthor=1 where authorid="&id)
conn.execute ("update author set author_writing='',author_lock=0,author_addpost=1 where author_id="&id)
if makeJS=1 then
temauthoradd(authorNum)
end if
end if
conn.close
response.write ("<script>opener.location.reload();</script>")
Call ShowAdminSuccessMsg("操作成功!","javascript:window.close()")
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -