<%@ LANGUAGE="VBSCRIPT" %> <% Rem ---------------------- Rem ------主程序开始------ Rem ---------------------- dim sql,rs dim Ers,Esql dim username dim bBoardEmpty dim boardid dim timeLimited,limitime,tl dim totalrec dim n,i,RowCount dim p dim currentpage dim skin dim guestlist dim boardtype,lockboard,boardskin dim master_1,master_2 dim strAllowForumCode,strAllowHTML,strIMGInPosts,strIcons,strflash dim todaynum dim announceIDRange1,announceIDRange2 dim arrRow1 if boardmaster or master then guestlist="" else guestlist=" lockboard=0 and " end if boardskin=1 stats="论坛版面" if founderr then call nav() call headline(1) call error() else Call getInput() call chkInput() if founderr then call nav() call headline(1) call error() else call boardinfo(boardid) if cint(boardskin)=6 then if membername="" then response.write "" response.end end if elseif cint(boardskin)=5 then if membername="" then founderr=true Errmsg=Errmsg+"
"+"
  • 本论坛为认证论坛,请登陆并确认您的用户名已经得到管理员的认证后进入。" else if chkboardlogin(boardid,membername)=false then founderr=true Errmsg=Errmsg+"
    "+"
  • 本论坛为认证论坛,请确认您的用户名已经得到管理员的认证后进入。" end if end if end if if founderr then call nav() call headline(1) call error() else call nav() call headline(1) call boardtop(boardid) call AnnounceList1() call listPages3() call boardlist() if founderr=true then call error() end if end if end if call endline() REM 显示版面信息---Headinfo sub boardtop(boardid) call activeuser() response.write "" response.write ""&_ ""&_ "
    本分论坛的公告!不可不看!!"&_ "" sql="select top 1 title,content,addtime from bbsnews where boardid="&boardid&" order by id desc" set rs=server.createobject("adodb.recordset") rs.open sql,conn,1,1 if rs.bof and rs.eof then response.write "当前没有公告 ("& now() &")" else response.write ""& rs("title") &" ("& rs("addtime") &")" end if rs.close set rs=nothing response.write "

    "&_ "

    "&_ ""&_ ""&_ "

    " response.write "
    "&_ ""&_ ""&_ ""&_ "" if request("action")<>"online" then response.write "
    目前论坛总在线"&allonline()&"人,其中"& boardtype &"上共有 "& online() &" 位会员与 "& guest() &" 位客人.今日贴子 "& todaynum &" " if request("action")<>"online" then response.write "[关闭详细列表]" else response.write "[显示详细列表]" end if response.write " [在线用户]"&_ "刷新
    " call onlineuser() response.write "
    " end if response.write "
    " response.write "
    "&_ ""&_ ""&_ "
    "&_ "发新帖"&_ "  "&_ "发起新投票 " if boardmaster or master then response.write "  版务管理" end if response.write "  "& boardmaster1 &"论坛精华  "&_ "论坛版主:"& master_2 &"
    " end sub sub boardlist() response.write ""&_ ""&_ "
    "&_ "
    " response.write ""&_ "
    "&_ ""&_ ""&_ "
     -=> "& ForumName &"图例所有时间均为 - 北京时间  
    "&_ ""&_ ""&_ ""&_ ""&_ ""&_ ""&_ "
    开放的主题 回复超过10贴 锁定的主题 固定顶端的主题 精华帖子
    " if strAllowHTML=0 then response.write "HTML标签:OFF." else response.write "HTML标签:ON." end if if strAllowForumCode=0 then response.write " UBB标签:OFF." else response.write " UBB标签:ON." end if if strIcons=0 then response.write " 贴图标签:OFF." else response.write " 贴图标签:ON." end if if strflash=0 then response.write " Flash标签:OFF." else response.write " Flash标签:ON." end if if strIMGInPosts=0 then response.write " 表情字符转换:OFF." else response.write " 表情字符转换:ON." end if if Uploadpic<>1 then response.write " 上传图片:OFF." else response.write " 上传图片:ON." end if if not UploadFlag then response.write " 头像上传:OFF." else response.write " 头像上传:ON." end if if not titleFlag then response.write " 用户头衔:OFF." else response.write " 用户头衔:ON." end if response.write "

    " end sub sub onlineuser() guests="客人" dim sip dim acip dim grade18,grade19,grade20 grade18=grade(18) grade19=grade(19) grade20=grade(20) '用户信息 sql="select username,startime,lastimebk,ip,stats,userclass,browser,actforip,comefrom,actCome from online where username<>'"&guests&"'" set rs=server.createobject("adodb.recordset") rs.open sql,conn,1,1 if rs.eof and rs.bof then rs.close : set rs=nothing else arrRow=rs.getRows rs.close : set rs=nothing for i=0 to Ubound(arrRow,2) if instr(arrRow(4,i),boardtype)>0 then sip=arrRow(3,i) acip=arrRow(7,i) if arrRow(5,i)=grade20 or arrRow(5,i)=grade19 then response.write "特殊人物 " elseif arrRow(5,i)=grade18 then response.write "&user_level18& " else response.write " " end if arrRow(0,i)=htmlencode(arrRow(0,i)) response.write "" response.write " "" then response.write acip else response.write sip end if else response.write "已设置保密" end if else if acip <> "" then response.write acip else response.write sip end if end if response.write " 来源鉴定:" if FromFlag=0 then if boardmaster or master then if acip <> "" then response.write arrRow(9,i) else response.write arrRow(8,i) end if else response.write "已设置保密" end if else if acip <> "" then response.write arrRow(9,i) else response.write arrRow(8,i) end if end if if acip <> "" then response.write " 代理IP:" if IpFlag=0 then if boardmaster or master then response.write sip else response.write "已设置保密" end if else response.write sip end if response.write " 代理鉴定:" if FromFlag=0 then if boardmaster or master then response.write arrRow(8,i) else response.write "已设置保密" end if else response.write arrRow(8,i) end if end if response.write """>"&arrRow(0,i)&" " end if next arrRow=null end if if guestuser=1 then '客人信息 sql="select username,startime,lastimebk,ip,stats,userclass,browser,actforip,comefrom,actCome from online where username='"&guests&"'" set rs=server.createobject("adodb.recordset") rs.open sql,conn,1,1 if rs.eof and rs.bof then rs.close : set rs=nothing else arrRow=rs.getrows rs.close : set rs=nothing for i=0 to Ubound(arrRow,2) if instr(arrRow(4,i),boardtype)>0 then sip=arrRow(3,i) acip=arrRow(7,i) response.write " " response.write "" response.write " "" then response.write acip else response.write sip end if else response.write "已设置保密" end if else if acip <> "" then response.write acip else response.write sip end if end if response.write " 来源鉴定:" if FromFlag=0 then if boardmaster or master then if acip <> "" then response.write arrRow(9,i) else response.write arrRow(8,i) end if else response.write "已设置保密" end if else if acip <> "" then response.write arrRow(9,i) else response.write arrRow(8,i) end if end if if acip <> "" then response.write " 代理IP:" if IpFlag=0 then if boardmaster or master then response.write sip else response.write "已设置保密" end if else response.write sip end if response.write " 代理鉴定:" if FromFlag=0 then if boardmaster or master then response.write arrRow(8,i) else response.write "已设置保密" end if else response.write arrRow(8,i) end if end if response.write """>客人 " end if next arrRow=null end if end if end sub function online() guests="客人" tmprs=conn.execute("Select count(id) from online where username<>'"&guests&"' and stats like '%"&boardtype&"%'") online=tmprs(0) set tmprs=nothing if isnull(online) then online=0 end function function allonline() tmprs=conn.execute("Select count(id) from online") allonline=tmprs(0) set tmprs=nothing if isnull(allonline) then allonline=0 end function function guest() guests="客人" tmprs=conn.execute("Select count(id) from online where username='"&guests&"' and stats like '%"&boardtype&"%'") guest=tmprs(0) set tmprs=nothing if isnull(guest) then guest=0 end function Sub getInput() 'On Error Resume Next Rem ------获取版面ID------ BoardID = Request("BoardID") Rem ------获取页次------ currentPage=request.form("page") End Sub sub chkInput 'on error resume next if BoardID="" or not isInteger(BoardID) then BoardID=1 else BoardID=clng(BoardID) if err then BoardID=1 err.clear end if end if if currentpage="" or not isInteger(currentpage) then currentpage=1 else currentpage=clng(currentpage) if err then currentpage=1 err.clear end if end if if request("selTimeLimit")="all" then tl="" elseif request("selTimeLimit")="" then tl="" else limitime=request("selTimeLimit") tl=" and dateandtime>=#"&cstr(cdate(now()-limitime))&"# " end if end sub sub activeuser() if session("userid")<>"" then conn.execute("update online set stats='"&boardtype&"' where id="&cstr(session("userid"))) end if if membername<>"" then conn.execute("update online set stats='"&boardtype&"' where username='"&membername&"'") end if end sub %>