亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? char.asp

?? 這是一個非常好的留言版程序
?? ASP
字號:
<%
 function rechar(string)
 ON ERROR RESUME NEXT
 string = Replace(string ,"'","’")
 string = Replace(string ,"&","&")
 string = Replace(string ,"<","<") 
 string = Replace(string ,">",">") 
 string = Replace(string ,"0x","Ox") 
 string = Replace(string ,"0X","Ox")
 string = Replace(string ,"#","#") 
 rechar=string
 end function 
 
Function killbad(strChar)
if strChar="" then
killbad=""
else
killbad=replace(replace(replace(replace(replace(replace(replace(replace(strChar,"'","’"),"*","×"),"?","?"),"(","("),")",")"),"<","〈"),".","。"),";",";")
end if
End Function 
%>
<%
Rem ==========通用函數(shù)=========
Rem 判斷數(shù)字是否整形
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.clear
end function

function IsValidTel(para)
       on error resume next
       dim str
       dim l,i
       if isNUll(para) then 
          IsValidTel=false
          exit function
       end if
       str=cstr(para)
       if len(trim(str))<7 then
          IsValidTel=false
          exit function
       end if
       l=len(str)
       for i=1 to l
           if not (mid(str,i,1)>="0" and mid(str,i,1)<="9" or mid(str,i,1)="-") then
              IsValidTel=false 
              exit function
           end if
       next
       IsValidTel=true
       if err.number<>0 then err.clear
   end function
   
function isPrice(para)
       on error resume next
       dim str
       dim l,i
       if isNUll(para) then 
          isPrice=false
          exit function
       end if
       str=cstr(para)
       l=len(str)
       for i=1 to l
           if not (mid(str,i,1)>="0" and mid(str,i,1)<="9" or mid(str,i,1)=".") then
              isPrice=false 
              exit function
           end if
       next
	   	names = Split(para, ".")
	    if UBound(names) <> 1 then
	   		isPrice = false
   		exit function
		end if
		
		i = Len(names(1)) - InStrRev(names(1), ".")
		if i <> 2 then
   			isPrice = false
   			exit function
		end if
       isPrice=true
       if err.number<>0 then err.clear
   end function
   
Rem 判斷是否為生日1979-08-28
function IsBirthday(para)
       on error resume next
       dim str
       dim l,i
       if isNUll(para) then 
          IsBirthday=false
          exit function
       end if
       str=cstr(para)
       if len(trim(str))<>10 then
          IsBirthday=false
          exit function
       end if
       l=len(str)
       for i=1 to l
           if not (mid(str,i,1)>="0" and mid(str,i,1)<="9" or mid(str,i,1)="-") then
              IsBirthday=false 
              exit function
           end if
       next
       IsBirthday=true
       if err.number<>0 then err.clear
   end function
   
Rem 判斷OICQ號碼
function IsOICQ(para)
       on error resume next
       dim str,oicqnum
       dim l,i
       if isNUll(para) then 
          IsOICQ=false
          exit function
       end if
       str=cstr(para)
       if len(trim(str))<5 then
          IsOICQ=false
          exit function
       end if
       l=len(str)
       for i=1 to l
           if not (mid(str,i,1)>="0" and mid(str,i,1)<="9") then
              IsOICQ=false 
              exit function
           end if
       next
		if int(para)<10000 then
          IsOICQ=false
          exit function
       end if
       IsOICQ=true
       if err.number<>0 then err.clear
   end function

function IsValidEmail(email)

dim names, name, i, c

'Check for valid syntax in an email address.

IsValidEmail = true
names = Split(email, "@")
if UBound(names) <> 1 then
   IsValidEmail = false
   exit function
end if
for each name in names
   if Len(name) <= 0 then
     IsValidEmail = false
     exit function
   end if
   for i = 1 to Len(name)
     c = Lcase(Mid(name, i, 1))
     if InStr("abcdefghijklmnopqrstuvwxyz_-.", c) <= 0 and not IsNumeric(c) then
       IsValidEmail = false
       exit function
     end if
   next
   if Left(name, 1) = "." or Right(name, 1) = "." then
      IsValidEmail = false
      exit function
   end if
next
if InStr(names(1), ".") <= 0 then
   IsValidEmail = false
   exit function
end if
i = Len(names(1)) - InStrRev(names(1), ".")
if i <> 2 and i <> 3 then
   IsValidEmail = false
   exit function
end if
if InStr(email, "..") > 0 then
   IsValidEmail = false
end if

end function

 function strLength(str)
       ON ERROR RESUME NEXT
       dim WINNT_CHINESE
       WINNT_CHINESE    = (len("同學錄")=3)
       if WINNT_CHINESE then
          dim l,t,c
          dim i
          l=len(str)
          t=l
          for i=1 to l
             c=asc(mid(str,i,1))
             if c<0 then c=c+65536
             if c>255 then
                t=t+1
             end if
          next
          strLength=t
       else 
          strLength=len(str)
       end if
       if err.number<>0 then err.clear
   end function 

Rem 錯誤提示
sub error()
response.write "<br><table cellpadding=0 cellspacing=0 border=0 width="&TableWidth&" bgcolor="&tablebackcolor&" align=center>"&_
		"<tr><td><table cellpadding=3 cellspacing=1 border=0 width=""100%""><tr align=center>"&_
		"<td width=""100%"" bgcolor="&tabletitlecolor&"><font color="&TableFontColor&"><b>論壇錯誤信息</b></font></td>"&_
		"</tr><tr><td width=""100%"" bgcolor="&tablebodycolor&">"&_
		"<font color="&TableContentColor&"><b>產(chǎn)生錯誤的可能原因:</b><br><br>"&_
		"<li>您是否仔細閱讀了<a href=boardhelp.asp?boardid="&boardid&"><font color="&TableContentColor&">幫助文件</font></a>"&_
		""&errmsg&"</font></td></tr><tr align=center><td width=""100%"" bgcolor="&tabletitlecolor&">"&_
		"<a href=javascript:history.go(-1)><font color="&TableFontColor&"> << 返回上一頁</font></a>"&_
		"</td></tr>   </table>   </td></tr></table>"
end sub
rem 檢查是否為英文/數(shù)字/中文組成
function iszhuce(para)
       on error resume next
       dim str
       dim i
       if isNUll(para) then 
          iszhuce=false
          exit function
       end if
       str=cstr(para)
       if trim(str)="" then
          iszhuce=false
          exit function
       end if
       for i=1 to len(str)
     b = Lcase(Mid(str, i, 1))
     if InStr("abcdefghijklmnopqrstuvwxyz0123456789", b) <= 0  then
	 		c=asc(mid(str,i,1))
             if c>=0 then 
			 	iszhuce=false 
              	exit function
             end if
       'iszhuce = false
       'exit function
     end if
       next
       iszhuce=true
       if err.number<>0 then err.clear
   end function

function isChinese(para)
       on error resume next
       dim str
       dim i
       if isNUll(para) then 
          isChinese=false
          exit function
       end if
       str=cstr(para)
       if trim(str)="" then
          isChinese=false
          exit function
       end if
       for i=1 to len(str)
		   c=asc(mid(str,i,1))
             if c>=0 then 
			 isChinese=false 
              exit function
           end if
       next
       isChinese=true
       if err.number<>0 then err.clear
   end function

rem 過濾字符
function ChkBadWords(fString)
    dim bwords
    if not(isnull(BadWords) or isnull(fString)) then
    bwords = split(BadWords, "|")
    for i = 0 to ubound(bwords)
        fString = Replace(fString, bwords(i), string(len(bwords(i)),"*")) 
    next
    ChkBadWords = fString
    end if
end function

Rem 過濾HTML代碼
function HTMLEncode(fString)
if not isnull(fString) then
    fString = replace(fString, ">", "&gt;")
    fString = replace(fString, "<", "&lt;")

    fString = Replace(fString, CHR(32), "&nbsp;")
    fString = Replace(fString, CHR(9), "&nbsp;")
    fString = Replace(fString, CHR(34), "&quot;")
    fString = Replace(fString, CHR(39), "&#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 = fString
end if
end function

Rem 過濾表單字符
function HTMLcode(fString)
if not isnull(fString) then
    fString = Replace(fString, CHR(13), "")
    fString = Replace(fString, CHR(10) & CHR(10), "</P><P>")
    fString = Replace(fString, CHR(10), "<BR>")
    HTMLcode = fString
end if
end function

'用戶IP限制
function LockIP(sip)
	dim str1,str2,str3,str4
	dim num
	LockIP=false
	if isnumeric(left(sip,2)) then
		str1=left(sip,instr(sip,".")-1)
		sip=mid(sip,instr(sip,".")+1)
		str2=left(sip,instr(sip,".")-1)
		sip=mid(sip,instr(sip,".")+1)
		str3=left(sip,instr(sip,".")-1)
		str4=mid(sip,instr(sip,".")+1)
		if isNumeric(str1)=0 or isNumeric(str2)=0 or isNumeric(str3)=0 or isNumeric(str4)=0 then
	
		else
			num=cint(str1)*256*256*256+cint(str2)*256*256+cint(str3)*256+cint(str4)-1
			sql="select count(*) from LockIP where ip1 <="&num&" and ip2 >="&num&""
			set rs=server.createobject("adodb.recordset")
			rs.open sql,conn,1,1
			if rs(0)>0 then 
				LockIP=true
			end if
			rs.close
			set rs=nothing
		end if
	end if
end function

Rem 判斷發(fā)言是否來自外部
function ChkPost()
	dim server_v1,server_v2
	chkpost=false
	server_v1=Cstr(Request.ServerVariables("HTTP_REFERER"))
	server_v2=Cstr(Request.ServerVariables("SERVER_NAME"))
	if mid(server_v1,8,len(server_v2))<>server_v2 then
		chkpost=false
	else
		chkpost=true
	end if
end function

Rem 過濾SQL非法字符
function checkStr(str)
	if isnull(str) then
		checkStr = ""
		exit function 
	end if
	checkStr=replace(str,"'","''")
end function

Rem 判斷用戶來源
function address(sip)
	dim str1,str2,str3,str4
	dim num
	dim country,city
	dim irs
	if isnumeric(left(sip,2)) then
	if sip="127.0.0.1" then sip="192.168.0.1"
	str1=left(sip,instr(sip,".")-1)
	sip=mid(sip,instr(sip,".")+1)
	str2=left(sip,instr(sip,".")-1)
	sip=mid(sip,instr(sip,".")+1)
	str3=left(sip,instr(sip,".")-1)
	str4=mid(sip,instr(sip,".")+1)
	if isNumeric(str1)=0 or isNumeric(str2)=0 or isNumeric(str3)=0 or isNumeric(str4)=0 then

	else
		num=cint(str1)*256*256*256+cint(str2)*256*256+cint(str3)*256+cint(str4)-1
		sql="select Top 1 country,city from address where ip1 <="&num&" and ip2 >="&num&""
		set irs=server.createobject("adodb.recordset")
		irs.open sql,conn,1,1
		if irs.eof and irs.bof then 
		country="亞洲"
		city=""
		else
		country=irs(0)
		city=irs(1)
		end if
		irs.close
		set irs=nothing
	end if
	address=country&city
	else
	address="未知"
	end if
end function
%>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美午夜寂寞影院| 欧美色区777第一页| 亚洲1区2区3区视频| 久久综合视频网| 欧美喷水一区二区| 99久久综合99久久综合网站| 麻豆国产一区二区| 夜夜嗨av一区二区三区网页 | 亚洲成av人片在线| 欧美国产一区二区| 日韩欧美资源站| 欧美亚洲综合在线| 91丨porny丨蝌蚪视频| 国产精品综合在线视频| 免费xxxx性欧美18vr| 一区二区成人在线观看| 成人欧美一区二区三区小说| 精品三级在线看| 欧美性xxxxxx少妇| 一本久久综合亚洲鲁鲁五月天| 国产成人99久久亚洲综合精品| 日本91福利区| 日日骚欧美日韩| 亚洲午夜在线视频| 亚洲精品日日夜夜| 亚洲视频一二三区| 国产精品久久久久久户外露出| 国产亚洲短视频| 久久久美女毛片| 亚洲精品在线观看视频| 精品久久国产老人久久综合| 日韩欧美一区二区久久婷婷| 欧美电影一区二区三区| 欧美日韩精品一区二区三区 | 国产精品资源网站| 精品一区二区综合| 老司机精品视频导航| 青娱乐精品视频在线| 免费在线看一区| 精品一区二区免费视频| 久久精品理论片| 国内精品不卡在线| 东方aⅴ免费观看久久av| 国产成人精品免费在线| 高清久久久久久| 成人免费视频网站在线观看| 99精品视频一区| 91麻豆精品视频| 欧美日韩国产在线播放网站| 在线不卡一区二区| 欧美一区2区视频在线观看| 日韩一卡二卡三卡国产欧美| 精品国一区二区三区| 精品99一区二区| 欧美激情在线观看视频免费| 国产精品无码永久免费888| 国产精品欧美精品| 亚洲精品免费看| 日韩高清在线观看| 精品一区二区三区免费播放| 国产高清一区日本| eeuss鲁片一区二区三区| 色综合久久中文字幕综合网| 欧美日韩一区二区不卡| 欧美一区三区二区| 国产三级精品在线| 一区二区三区精品| 六月丁香婷婷色狠狠久久| 福利一区二区在线观看| 在线国产亚洲欧美| 精品国产乱码久久久久久久久| 国产精品免费观看视频| 亚洲一区二区三区在线| 久久精品国产999大香线蕉| 豆国产96在线|亚洲| 欧美日韩视频专区在线播放| 久久久久久久久久久黄色| 亚洲欧美经典视频| 久久精品国产秦先生| 91亚洲国产成人精品一区二三| 欧美人狂配大交3d怪物一区| 久久久久国产精品麻豆| 亚洲激情图片qvod| 经典三级一区二区| 在线观看免费成人| 国产亚洲精久久久久久| 亚洲国产日韩精品| 高清国产午夜精品久久久久久| 欧美日免费三级在线| 久久综合狠狠综合| 亚洲妇女屁股眼交7| 成人国产精品免费网站| 91精品国产综合久久福利| 中文字幕在线一区免费| 蜜臀99久久精品久久久久久软件| 91在线你懂得| 国产亚洲精品aa午夜观看| 天天免费综合色| 94色蜜桃网一区二区三区| 欧美一级一级性生活免费录像| 日韩理论片在线| 国产在线乱码一区二区三区| 欧美日韩一区二区在线视频| 国产精品福利在线播放| 韩国女主播一区| 欧美精品少妇一区二区三区| 1024国产精品| 国产很黄免费观看久久| 欧美不卡一二三| 五月综合激情婷婷六月色窝| 99久久综合精品| 久久精品亚洲乱码伦伦中文| 麻豆国产精品官网| 欧美日韩国产高清一区二区| 日韩一区中文字幕| 本田岬高潮一区二区三区| 久久人人爽人人爽| 久久成人久久爱| 91精选在线观看| 亚洲国产精品自拍| 色综合久久六月婷婷中文字幕| 国产欧美一区在线| 国产乱妇无码大片在线观看| 欧美成人精品福利| 蜜臀av一区二区在线观看| 在线不卡a资源高清| 午夜av一区二区| 欧美精品久久久久久久多人混战 | 91免费观看国产| 欧美国产乱子伦| 国产白丝精品91爽爽久久 | 久久久久久久久久久久电影| 久久99久久精品| 日韩精品资源二区在线| 日日摸夜夜添夜夜添亚洲女人| 91成人看片片| 一区二区三区国产| 欧美三级电影网站| 日韩电影网1区2区| 日韩欧美一卡二卡| 激情综合网天天干| 久久久久久久综合色一本| 高清不卡在线观看| 亚洲欧美一区二区三区极速播放| 91美女精品福利| 亚洲综合色区另类av| 欧美日韩久久不卡| 久国产精品韩国三级视频| 久久嫩草精品久久久精品一| 国产乱码精品1区2区3区| 国产精品天天看| 色哟哟国产精品免费观看| 亚洲自拍偷拍麻豆| 欧美日韩国产天堂| 精品一二三四在线| 国产精品乱人伦一区二区| 一本大道av一区二区在线播放| 一区二区国产视频| 日韩欧美一区电影| 成人免费视频视频| 亚洲va欧美va人人爽| 精品久久99ma| 99久免费精品视频在线观看| 亚洲福利国产精品| 欧美精品一区二区久久婷婷 | 日韩一级片在线观看| 国产一区二区视频在线| 亚洲欧美视频在线观看| 制服丝袜一区二区三区| 国产精品一区三区| 亚洲综合色自拍一区| 精品国产污污免费网站入口| 成人午夜电影久久影院| 亚洲 欧美综合在线网络| 精品99999| 欧美色爱综合网| 国产在线播精品第三| 亚洲人成小说网站色在线| 51精品国自产在线| 成人动漫一区二区在线| 亚洲成人资源网| 日本一区二区三区dvd视频在线| 欧美曰成人黄网| 国产麻豆一精品一av一免费| 亚洲一区精品在线| 欧美国产在线观看| 日韩一区二区三区视频在线观看| av在线不卡电影| 久久精品国产亚洲高清剧情介绍| 亚洲蜜臀av乱码久久精品蜜桃| 欧美mv日韩mv亚洲| 欧美午夜电影在线播放| 国产白丝网站精品污在线入口 | 不卡的av网站| 麻豆久久久久久久| 亚洲电影在线播放| 成人免费在线观看入口| 精品欧美一区二区久久| 欧美日韩精品欧美日韩精品一 | 国产精品成人免费精品自在线观看 |