修改savepost.asp中
在
'不再把内容保存到session
'Dvbbs.UserSession.documentElement.selectSingleNode("userinfo").attributes.setNamedItem(Dvbbs.UserSession.createNode(2,"postdata","")).text= Request.Form("body")
'验证码校验
在其下面添加
Dim niutouchkbadwords
niutouchkbadwords="台独|成人电影"
niutouchkbadwords=Split(niutouchkbadwords,"|")
Dim niutou_i
For niutou_i=0 To UBound(niutouchkbadwords)
If InStr(Dvbbs.Checkstr(unescape(Request.Form("body"))),niutouchkbadwords(niutou_i))>0 Then Response.redirect "showerr.asp?ErrCodes=<li>系统检测您发表的话题中含有非法字符<b>"&niutouchkbadwords(niutou_i)&"</b>禁止提交。&action=OtherErr"
If InStr(topic,niutouchkbadwords(niutou_i))>0 Then Response.redirect "showerr.asp?ErrCodes=<li>系统检测您发表的话题中含有非法字符<b>"&niutouchkbadwords(niutou_i)&"</b>禁止提交。&action=OtherErr"
Next
niutouchkbadwords="台独|成人电影"这里的改成您想要的过滤的关键词
[此贴子已经被作者于2008-4-2 15:02:55编辑过]