<% If Dvbbs.BoardID < 1 Then Response.Write "参数错误" Response.End End If Dvbbs.LoadTemplates("dispbbs") Dim AnnounceID,ReplyID,Star,Skin,followup Dim CanReply,IsTop,IsVote,TopicCount,PollID,TotaluseTable,ViewNum,Topic,TopicMode Dim PostBuyUser,abgcolor,bgcolor,UserName,CanRead,PostUserName Dim T_GetMoney,T_UseTools,T_GetMoneyType,TopicInfo,IsTopicUser Dim FoundUseMagic,iMagicFace Dim ReplyID_a,AnnounceID_a,RootID_a '当前贴子相关ID,给出售贴用 by 轻飘飘 FoundUseMagic = 0 Chk_Topic_Err Dvbbs.Showerr() Dvbbs.Nav() Dvbbs.Showerr() Dvbbs.Head_var 1,"","","" GetForumTextAd(2) Dvbbs.ActiveOnline() Dim Page,LockTopic,action,TopicNum,n,SplitPageNum,EmotPath EmotPath=Split(Dvbbs.Forum_emot,"|||")(0) 'em心情路径 action=Request("action") Page=Request("Page") If isNumeric(Page) = 0 or Page="" Then Page=1 Page=Clng(Page) Show_Topic_Top() Dvbbs.ShowErr() Dim dv_ubb Set dv_ubb=new Dvbbs_UbbCode dv_ubb.PostType=1 Show_Topic_HTML() Set dv_ubb=Nothing If Skin=1 and CanRead Then showtree() If CanReply Then Show_Topic_FastRe If Dvbbs.UserID>0 Then Show_Topic_ManageAction Dvbbs.NewPassword() Dvbbs.Footer() Sub Chk_Topic_Err AnnounceID=Request("ID") If AnnounceID="" Or Not IsNumeric(AnnounceID) Then Dvbbs.AddErrCode(30) ReplyID=Request("ReplyID") If ReplyID="" Or Not IsNumeric(ReplyID) Then ReplyID=AnnounceID Star=Request("Star") If Star="" Or Not IsNumeric(Star) Then Star=1 Star=Clng(Star) Skin=Request("Skin") If Skin="" Or Not IsNumeric(Skin) Then Skin=Dvbbs.Board_setting(42) If Dvbbs.ErrCodes<>"" Then Exit Sub Dim SQl,Rs Dim MyCanReply '浏览购买帖权限 CanRead=False If Dvbbs.Master or Dvbbs.SuperBoardMaster or Dvbbs.BoardMaster Then CanRead=True Set Rs=Server.CreateObject("Adodb.RecordSet") SQL="Select title,istop,isbest,PostUserName,PostUserid,hits,isvote,child,pollid,LockTopic,PostTable,BoardID,TopicMode,GetMoney,UseTools,GetMoneyType,DateAndTime,Expression From DV_topic where topicID="&Announceid If Not IsObject(Conn) Then ConnectionDatabase Rs.Open SQL,Conn,3,2 Dvbbs.SqlQueryNum=Dvbbs.SqlQueryNum+1 'Set Rs=Dvbbs.Execute(SQL) If Not(Rs.BOF and Rs.EOF) then If Rs(11)<>Dvbbs.BoardID Then Dvbbs.AddErrCode(29) Rs(5)=Rs(5)+1 Rs.Update Topic=Rs(0) istop=Rs(1) isVote=Rs(6) TopicCount=Rs(7)+1 pollid=Rs(8) '锁定多少天前的帖子判断 2004-9-16 Dv.Yz If Not Ubound(Dvbbs.Board_Setting) > 70 Then Locktopic = Rs(9) Else If Not Clng(Dvbbs.Board_Setting(71)) = 0 And Datediff("d", Rs(16), Now()) > Clng(Dvbbs.Board_Setting(71)) Then Locktopic = 1 Else Locktopic = Rs(9) End If End If TotalUseTable=rs(10) TopicMode=rs(12) ViewNum=Rs(5) T_GetMoney = cCur(Rs(13)) T_UseTools = Rs(14) T_GetMoneyType = Cint(Rs(15)) PostUserName = Rs(3) If Rs(4)=Dvbbs.UserID then IsTopicUser = True '是楼主 MyCanReply=Dvbbs.GroupSetting(4) CanRead=True Else MyCanReply=Dvbbs.GroupSetting(5) If Cint(Dvbbs.GroupSetting(2))=0 Then Dvbbs.AddErrcode(31) End If If Len(Topic) > Cint(Dvbbs.Board_Setting(25)) And Not TopicMode>0 Then Topic=Left(Topic,Dvbbs.Board_Setting(25))&"..." End If If TopicMode>0 Then If TopicMode=1 Then Topic = Replace(Topic,"