%
'=========================================================
' File: allpaper.asp
' Version:5.0
' Date: 2002-9-10
' Script Written by satan
'=========================================================
' Copyright (C) 2001,2002 AspSky.Net. All rights reserved.
' Web: http://www.aspsky.net,http://www.dvbbs.net
' Email: info@aspsky.net,eway@aspsky.net
'=========================================================
if boardid=0 then
stats="全部小字报"
call nav()
call head_var(2,0,"","")
else
stats="小字报列表"
call nav()
call head_var(1,BoardDepth,0,0)
end if
if Forum_Setting(56)=0 then
Errmsg=Errmsg+"
"+"
该版面未开放小子报,请浏览其他版面!"
Founderr=true
end if
if founderr then
call dvbbs_error()
else
if request("action")="delpaper" then
call batch()
else
call boardeven()
end if
if founderr then call dvbbs_error()
call activeonline()
end if
call footer()
sub boardeven()
dim totalrec
dim n
dim currentpage,page_count,Pcount
currentPage=request("page")
if currentpage="" or not isInteger(currentpage) then
currentpage=1
else
currentpage=clng(currentpage)
end if
if Cint(GroupSetting(27))=1 then
%>
请点击人气切换到管理状态
<%end if%>
"
end sub
sub batch()
dim sid
dim adminpaper
adminpaper=false
if not founduser then
founderr=true
Errmsg=Errmsg+"
"+"请登陆后进行操作。"
end if
if (master or superboardmaster or boardmaster) and Cint(GroupSetting(27))=1 then
adminpaper=true
else
adminpaper=false
end if
if UserGroupID>3 and Cint(GroupSetting(27))=1 then
adminpaper=true
end if
if FoundUserPer and Cint(GroupSetting(27))=1 then
adminpaper=true
elseif FoundUserPer and Cint(GroupSetting(27))=0 then
adminpaper=false
end if
if not adminpaper then
founderr=true
Errmsg=Errmsg+"
"+"您没有权限执行本操作。"
end if
if request.form("sid")="" then
founderr=true
Errmsg=Errmsg+"
"+"请指定相关小字报。"
else
sid=replace(request.Form("sid"),"'","")
sid=replace(sid,";","")
sid=replace(sid,"--","")
sid=replace(sid,")","")
end if
if founderr then exit sub
conn.execute("delete from smallpaper where s_boardid="&boardid&" and s_id in ("&sid&")")
sucmsg="您选择的小字报已经删除。"
call dvbbs_suc()
end sub
%>