  番茄蛋汤 
                        职务:普通成员 
                        等级:3 
                        金币:10.0 
                        发贴:807 
                        注册:2002/2/17 1:39:03 
                     | 
                    
                        
                            
                            #22002/10/27 19:22:58 
                            
                                代码如下: <% function DvBCode(strContent,PostUserGroup) if Cint(Forum_Setting(35)) <> 1 then     strContent = dvHTMLEncode(strContent) else     strContent = HTMLcode(strContent) end if if Cint(Forum_Setting(34))<>1 and PostUserGroup>2 then     DvBCode=strContent     exit function end if dim re dim po,ii dim reContent Set re=new RegExp re.IgnoreCase =true re.Global=True po=0 ii=0 re.Pattern="(javascript)" strContent=re.Replace(strContent,"javascript") re.Pattern="(jscript:)" strContent=re.Replace(strContent,"jscript:") re.Pattern="(js:)" strContent=re.Replace(strContent,"js:") re.Pattern="(value)" strContent=re.Replace(strContent,"value") re.Pattern="(about:)" strContent=re.Replace(strContent,"about:") re.Pattern="(file:)" strContent=re.Replace(strContent,"file:") re.Pattern="(documents.cookie)" strContent=re.Replace(strContent,"documents.cookie") re.Pattern="(vbscript:)" strContent=re.Replace(strContent,"vbscript:") re.Pattern="(vbs:)" strContent=re.Replace(strContent,"vbs:") re.Pattern="(on(mouse|exit|error|click|key))" strContent=re.Replace(strContent,"on$2")     if Cint(Forum_Setting(36)) = 1 or PostUserGroup<4 then     re.Pattern="\[IMG\](http|https|ftp):\/\/(.[^\[]*)\[\/IMG\]"     strContent=re.Replace(strContent,"  screen.width-333)this.width=screen.width-333"">")     re.Pattern="\[UPLOAD=(gif|jpg|jpeg|bmp|png)\](.[^\[]*)(gif|jpg|jpeg|bmp|png)\[\/UPLOAD\]"     strContent= re.Replace(strContent," ![]() 此主题相关图片如下:  screen.width-333)this.width=screen.width-333"">") end if re.Pattern="\[UPLOAD=(.[^\[]*)\](.[^\[]*)\[\/UPLOAD\]" strContent= re.Replace(strContent,"   点击浏览该文件") if cint(Forum_Setting(67))=1 or PostUserGroup<4 then     re.Pattern="\[DIR=*([0-9]*),*([0-9]*)\](.[^\[]*)\[\/DIR]"     strContent=re.Replace(strContent," ")     re.Pattern="\[QT=*([0-9]*),*([0-9]*)\](.[^\[]*)\[\/QT]"     strContent=re.Replace(strContent,"  
                            
                            
                         
                     |