% if usertype<3 or (usertype=3 and instr("|"&adminbd&"|","|"&bd&"|")=0) then tl=" 操 作 失 败" mes="对不起!权限不够。" call sendinfo(tl,mes) call down response.end end if function gettop() idtop=conn.execute("select top 1 top from topic where id="&id&" and bd="&bd&"")(0) end function %>
<% dim action,content,content2,contentok,ggtitle,ggok,bad,b,paper,sql,markn,umarkuserid,rs1 function umark(markn) umarkuserid=conn.execute("select top 1 userid from topic where id="&id&"")(0) set rs1=server.createobject("adodb.recordset") sql="Select top 1 mark,del from [user] where userid="&umarkuserid&"" rs1.open sql,conn,1,3 rs1("mark")=rs1("mark")+int(markn) if rs1("mark")<0 then rs1("del")=true application(prefix&"deluser")=application(prefix&"deluser")&"|"&umarkuserid&"|" end if rs1.Update rs1.close set rs1=nothing end function function umark2(markn) umarkuserid=conn.execute("select top 1 userid from bbs"&totable&" where bbsid="&bbsid&"")(0) set rs1=server.createobject("adodb.recordset") sql="Select top 1 mark,del from [user] where userid="&umarkuserid&"" rs1.open sql,conn,1,3 rs1("mark")=rs1("mark")+int(markn) if rs1("mark")<0 then rs1("del")=true end if rs1.Update rs1.close set rs1=nothing end function function checkbad(str) if isnull(str) then exit function bad=split(application(prefix&"badcontent"), "|") for b=0 to ubound(bad) str=Replace(str,bad(b),string(len(bad(b)),"*")) next checkbad=str end function action=request.querystring("action") select case action %> <%case"gonggao"%>| 公告标题: | 发表者: | 发表时间: | 公告操作: |
| <%=checktitle(paper(1))%> | <%=paper(2)%> | &bd=<%=bd%>">删除 | &bd=<%=bd%>">编辑 |