/conn.inc代码页
<%
'#############################################################################
'升级文件时候请去掉前面的点
'response.redirect "ssjj.asp"
accsql=0 '(数据库类型,0为ACC1为SQL)
'#############################################################################
if accsql=1 then
set conn=server.createobject("adodb.connection")
connstr="driver={sql server};database=#%#%#%#%#%#%#%#;server=localhost;uid=sa;pwd=123456"
conn.open connstr
else
'#############################################################################
set conn=Createobject("ADODB.Connection")
conn.ConnectionString="DBQ="& server.mappath("cnscu.cn/lp")& ";DRIVER={Microsoft Access Driver (*.mdb)};"
conn.open
sub endConnection()
conn.close
set conn=nothing
end sub
end if
%>
<%
Function c2u(sGBStr)
Dim i,c
if sGBStr<>"" then
For i = 1 to Len(sGBStr)
c = Mid(sGBStr,i,1)
if c=chr(13) then
c2u = c2u & "<br/>"
else
c2u = c2u & "&#x" & Hex(AscW(c)) & ";"
end if
Next
end if
End Function
'过滤字符写入数据库Usb
function usb(str)
str=trim(str)
if IsNull(str) then exit function
str=replace(str,"","")
str=replace(str,"execute","")
str=replace(str," ","")
str=replace(str,"Λ","")
str=replace(str,"Ψ","")
str=replace(str,"","")
str=replace(str,Chr(13),"[br]")
str=replace(str,Chr(14),"(br)")
usb=str
end function
'标题和编辑UBB
function ubb(str)
str=trim(str)
if IsNull(str) then exit function
str=replace(str,"&","&")
str=replace(str,"<","<")
str=replace(str,">",">")
str=replace(str,"'","'")
str=replace(str,"""",""")
str=replace(str,"$","$$")
str=replace(str," ","")
str=replace(str,Chr(13),"<br/>")
str=replace(str,Chr(14),"<br/>")
ubb=str
end function
'登陆UBB
function dlubb(str)
if IsNull(str) then exit function
str=trim(str)
str=replace(str,"&","&")
str=replace(str,"<","<")
str=replace(str,">",">")
str=replace(str,"'","'")
str=replace(str,"""",""")
str=replace(str,"$","$$")
str=replace(str," ","")
str=replace(str,"'or'='or'","")
set re=Nothing
dlubb=str
end function
'内容UBB2
function ubb2(str)
if IsNull(str) then exit function
str=trim(str)
str=replace(str,"&","&")
str=replace(str,"<","<")
str=replace(str,">",">")
str=replace(str,"'","'")
str=replace(str,"""",""")
str=replace(str,"$","$$")
str=replace(str,"¥","*")
str=replace(str," ","")
str=replace(str,"草","*")
str=replace(str,"我日","**")
str=replace(str,"法轮功","***")
str=replace(str,"共产党","***")
str=replace(str,"强奸","**")
str=replace(str,"鸡巴","**")
str=replace(str,"我靠","**")
str=replace(str,"我操","**")
str=replace(str,"他妈的","***")
str=replace(str,"滚","*")
str=replace(str,"(br)","<br/>")
str=replace(str,"[date]",""&date&"")
str=replace(str,"[time]",""&time&"")
str=replace(str,"[username]",""&myni&"")
str=replace(str,"[userid]",""&myid&"")
str=replace(str,"(date)",""&date&"")
str=replace(str,"(time)",""&time&"")
str=replace(str,"[now]",""&now&"")
str=replace(str,"(now)",""&now&"")
str=replace(str,"(username)",""&myni&"")
str=replace(str,"(userid)",""&myid&"")
str=replace(str,"[br]","<br/>")
str=replace(str,Chr(13),"<br/>")
Set re=new RegExp
re.IgnoreCase =true
re.Global=True
re.pattern="(\(img)\)(.{5,}?)\(/img\)"
str= re.Replace(str,"<img src=""$2"" alt=''/>")
re.pattern="(\[img\])(.[^\[]*)(\[\/img\])"
str= re.Replace(str,"<img src=""$2"" alt=''/>")
re.pattern="(\(url\))([A-Za-z0-9\./=\?%\-&_~`@':+!;*()#]+)(\(\/url\))"
str= re.Replace(str,"<a href=""$2"" >$2</a>")
re.pattern="(\(url=)([A-Za-z0-9\./=\?%\-&_~`@':+!;*()#]+)\)(.+?)(\(\/url\))"
str= re.Replace(str,"<a href=""$2"" >$3</a>")
re.pattern="(\[url\])(.[^\[]*)(\[\/url\])"
str= re.Replace(str,"<a href=""$2"" >$2</a>")
re.pattern="(\[url=(.[^\]]*)\])(.[^\[]*)(\[\/url\])"
str= re.Replace(str,"<a href=""$2"" >$3</a>")
re.pattern="(\(wtai\))(.[^\[]*)(\(\/wtai\))"
str= re.Replace(str,"<a href=""wtai://wp/mc;$2"" >$2</a>")
re.pattern="(\(wtai=(.[^\]]*)\))(.[^\[]*)(\(\/wtai\))"
str= re.Replace(str,"<a href=""wtai://wp/mc;$2"" >$3</a>")
re.pattern="(\[wtai\])(.[^\[]*)(\[\/wtai\])"
str= re.Replace(str,"<a href=""wtai://wp/mc;$2"" >$2</a>")
re.pattern="(\[wtai=(.[^\]]*)\])(.[^\[]*)(\[\/wtai\])"
str= re.Replace(str,"<a href=""wtai://wp/mc;$2"" >$3</a>")
re.pattern="(\(u\))(.[^\[]*)(\(\/u\))"
str= re.Replace(str,"<u>$2</u>")
re.pattern="(\(b\))(.[^\[]*)(\(\/b\))"
str= re.Replace(str,"<b>$2</b>")
re.pattern="(\(i\))(.[^\[]*)(\(\/i\))"
str= re.Replace(str,"<i>$2</i>")
re.pattern="(\[u\])(.[^\[]*)(\[\/u\])"
str= re.Replace(str,"<u>$2</u>")
re.pattern="(\[b\])(.[^\[]*)(\[\/b\])"
str= re.Replace(str,"<b>$2</b>")
re.pattern="(\[i\])(.[^\[]*)(\[\/i\])"
str= re.Replace(str,"<i>$2</i>")
re.Pattern="(\\\\)"
str= re.Replace(str,"<br/>")
re.Pattern="(\\)"
str= re.Replace(str,"<br/>")
set re=Nothing
ubb2=str
end function
%>
<%sb=dlubb(request("sb"))
fs=dlubb(request("fs"))
if fs="" then fs="2"%>
对应源码下载地址
相关源码
- /webadmin/sc_lm.asp
- /tjyou.asp
- /admin/bkcl.asp
- /bbs/dyccl.asp
- /admin/tzgl.asp
- /bbs/lt_list.asp
- /admin/hy_gl.asp
- /bbs/room_sz.asp
- /admin/szsz.asp
- /webadmin/admin_lbfs.asp
- /bbs/up.asp
- /admin/xg.asp
- /bbs/room_qkhy.asp
- /bbs/room_xg.asp
- /admin/bfsj.asp
- /admin/cnscu_cn.asp
- /admin/yd_lm.asp
- /bbs/qkxx.asp
- /bbs/tzbj.asp
- /zxwz.asp
- /bbs/gmtxcl.asp
- /webadmin/admin_fileinfo.asp
- /admin/bj_ly.asp
- /webadmin/inc/chkadmin.asp
- /webadmin/admin_searchfiles.asp
- /bbs/j_hy.asp
- /bbs/tzzd.asp
- /webadmin/admin_main.asp
- /ly.asp
- /admin/you_gl.asp
- /bbs/qksc.asp
- /admin/xgsz.asp
- /webadmin/lmc2l.asp
- /bbs/ttpp.asp
- /admin/roomcl.asp
- /admin/mn_cl.asp
- /admin/sqsz.asp
- /admin/delok.asp
- /webadmin/Plugins/secdir.asp
- /bbs/tzsc.asp
- /zxsc.asp
- /bbs/js_list.asp



