📄 conn.asp
字号:
<!--#include file="../inc/conn2.asp"--><%dim membername,mastermembername=Request.Cookies("NC")if membername <> Application("NC") or (Request.Cookies("NC")="" or Request.Cookies("NC")="访客") then master=false else master=trueend iffunction CloseDatabaseConn.closeSet conn = NothingEnd FunctionRem 判断数字是否整形function isInteger(para) on error resume next dim str dim l,i if isNUll(para) then isInteger=false exit function end if str=cstr(para) if trim(str)="" then isInteger=false exit function end if l=len(str) for i=1 to l if mid(str,i,1)>"9" or mid(str,i,1)<"0" then isInteger=false exit function end if next isInteger=true if err.number<>0 then err.clearend functionrem 过滤字符function ChkBadWords(fString) dim bwords,ii,BadWords if not(isnull(BadWords) or isnull(fString)) then bwords = split(BadWords, "|") for ii = 0 to ubound(bwords) fString = Replace(fString, bwords(ii), string(len(bwords(ii)),"*")) next ChkBadWords = fString end ifend functionRem 过滤HTML代码function HTMLEncode(fString)if not isnull(fString) then fString = replace(fString, ">", ">") fString = replace(fString, "<", "<") fString = Replace(fString, CHR(32), " ") fString = Replace(fString, CHR(9), " ") fString = Replace(fString, CHR(34), """) fString = Replace(fString, CHR(39), "'") fString = Replace(fString, CHR(13), "") fString = Replace(fString, CHR(10) & CHR(10), "</P><P> ") fString = Replace(fString, CHR(10), "<BR> ") fString=ChkBadWords(fString) HTMLEncode = fStringend ifend function%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -