LVAL ò tTime="&SqlNowString&",LastPost='"&LastPost&"' where TopicID="&RootID Else SQL="update Dv_topic set child=child+1,LastPost='"&LastPost&"' where TopicID="&RootID End If Else SQL="update Dv_topic set child=child+1,LastPostTime="&SqlNowString&",LastPost='"&LastPost&"' where TopicID="&RootID End If Dvbbs.Execute(SQL) Child=Child+2 If Child mod Dvbbs.Board_Setting(27)=0 Then star=Child\Dvbbs.Board_Setting(27) Else star=(Child\Dvbbs.Board_Setting(27))+1 End If Else Dvbbs.Execute("update Dv_topic set LastPost='"&LastPost&"' where topicid="&RootID) End If Else Rem ´ýÉóºËÈ¡Ïû»Ø¸´¸üÐÂ×îºó·¢Ìù¡£ If Action = 5 Or Action = 7 Then Dvbbs.Execute("update Dv_topic set LastPost='"&LastPost&"' where topicid="&RootID) End If If Action = 5 Or Action = 7 Then toptopic=Replace(cutStr(topic,20),"$","$") Else toptopic=Replace(cutStr(toptopic,20),"$","$") End If 'toptopic =Ö÷±êÌâ,Content=ÄÚÈÝ 'ÅжÏÊÇ·ñÊǼÓÃܵÄÂÛ̳£¬Èç¹ûÊÇ£¬Ôò²»ÏÔʾ×îºó·¢ÌùÄÚÈÝ¡£ If Dvbbs.Board_Setting(2)="1" Then LastPost_1="±£ÃÜ$" & AnnounceID & "$" & DateTimeStr & "$ÇëÈÏÖ¤Óû§½øÈë²é¿´$" & uploadpic_n & "$" & Dvbbs.UserID & "$" & RootID & "$" & Dvbbs.BoardID ElseIf signflag=2 Then LastPost_1=Replace("ÄäÃûÓû§","$","") & "$" & AnnounceID & "$" & DateTimeStr & "$" & toptopic & "$" & uploadpic_n & "$" & " " & "$" & RootID & "$" & Dvbbs.BoardID Else LastPost_1=Replace(username,"$","") & "$" & AnnounceID & "$" & DateTimeStr & "$" & toptopic & "$" & uploadpic_n & "$" & Dvbbs.UserID & "$" & RootID & "$" & Dvbbs.BoardID End If LastPost_1=reubbcode(Replace(LastPost_1,"'","")) LastPost_1=Dvbbs.ChkBadWords(LastPost_1) If IsAudit=0 Then UpDate_BoardInfoAndCache() UpDate_ForumInfoAndCache() End If Response.Cookies("Dvbbs")=Dvbbs.BoardID End Sub 'ÅжÏÓû§ÊÇ·ñÓбà¼È¨ÏÞÇÒÌáÈ¡Ïà¹ØÐÅÏ¢ Public Function Get_Edit_PermissionInfo() Dim old_user If Action = 4 Then Set Rs=Dvbbs.Execute("select b.username,b.topic,b.body,b.dateandtime,u.UserGroupID,b.signflag,b.emailflag from "&TotalUseTable&" b left outer join [dv_user] u on b.postuserid=u.userid where b.RootID="&AnnounceID&" and b.AnnounceID="&replyID) Else Set Rs=Dvbbs.Execute("select b.username,b.topic,b.body,b.dateandtime,u.UserGroupID,b.signflag,b.emailflag from "&TotalUseTable&" b left outer join [dv_user] u on b.postuserid=u.userid where b.RootID="&RootID&" and b.AnnounceID="&AnnounceID) End If If Rs.Eof And Rs.Bof Then Dvbbs.AddErrCode(48) Else If Action = 4 Then signflag=Rs("signflag") mailflag=Rs("emailflag") Topic=rs("topic") If Topic<>"" Then Topic = Server.HtmlEncode(Topic) Content=rs("body") old_user=rs("username") Else If Clng(Dvbbs.forum_setting(50))>0 then If Datediff("s",rs("dateandtime"),Now())>Clng(Dvbbs.forum_setting(50))*60 then Content = Content+chr(13)+chr(10)+char_changed+chr(13) End If Else Content = Content+chr(13)+chr(10)+char_changed+chr(13) End If End If If Clng(Dvbbs.forum_setting(51))>0 and not (Dvbbs.master or Dvbbs.boardmaster or Dvbbs.superboardmaster) Then If DateDiff("s",rs("dateandtime"),Now())>Clng(Dvbbs.forum_setting(51))*60 then parameter="showerr.asp?ErrCodes=