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

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

?? function.asp

?? 關于網絡滲透技術的詳細講解
?? ASP
字號:
<%
'*************************************************
'函數名:gotTopic
'作  用:截字符串,漢字一個算兩個字符,英文算一個字符
'參  數:str   ----原字符串
'       strlen ----截取長度
'返回值:截取后的字符串
'*************************************************
function gotTopic(str,strlen)
	if str="" then
		gotTopic=""
		exit function
	end if
	dim l,t,c, i
	str=replace(replace(replace(replace(str,"&nbsp;"," "),"&quot;",chr(34)),"&gt;",">"),"&lt;","<")
	l=len(str)
	t=0
	for i=1 to l
		c=Abs(Asc(Mid(str,i,1)))
		if c>255 then
			t=t+2
		else
			t=t+1
		end if
		if t>=strlen then
			gotTopic=left(str,i) & "…"
			exit for
		else
			gotTopic=str
		end if
	next
	gotTopic=replace(replace(replace(replace(gotTopic," ","&nbsp;"),chr(34),"&quot;"),">","&gt;"),"<","&lt;")
end function

'***********************************************
'函數名:JoinChar
'作  用:向地址中加入 ? 或 &
'參  數:strUrl  ----網址
'返回值:加了 ? 或 & 的網址
'***********************************************
function JoinChar(strUrl)
	if strUrl="" then
		JoinChar=""
		exit function
	end if
	if InStr(strUrl,"?")<len(strUrl) then 
		if InStr(strUrl,"?")>1 then
			if InStr(strUrl,"&")<len(strUrl) then 
				JoinChar=strUrl & "&"
			else
				JoinChar=strUrl
			end if
		else
			JoinChar=strUrl & "?"
		end if
	else
		JoinChar=strUrl
	end if
end function

'***********************************************
'過程名:showpage
'作  用:顯示“上一頁 下一頁”等信息
'參  數:sfilename  ----鏈接地址
'       totalnumber ----總數量
'       maxperpage  ----每頁數量
'       ShowTotal   ----是否顯示總數量
'       ShowAllPages ---是否用下拉列表顯示所有頁面以供跳轉。有某些頁面不能使用,否則會出現JS錯誤。
'       strUnit     ----計數單位
'***********************************************
sub showpage(sfilename,totalnumber,maxperpage,ShowTotal,ShowAllPages,strUnit)
	dim n, i,strTemp,strUrl
	if totalnumber mod maxperpage=0 then
    	n= totalnumber \ maxperpage
  	else
    	n= totalnumber \ maxperpage+1
  	end if
  	strTemp= "<table align='center'><form name='showpages' method='Post' action='" & sfilename & "'><tr><td>"
	if ShowTotal=true then 
		strTemp=strTemp & "共 <b>" & totalnumber & "</b> " & strUnit & "&nbsp;&nbsp;"
	end if
	strUrl=JoinChar(sfilename)
  	if CurrentPage<2 then
    		strTemp=strTemp & "首頁 上一頁&nbsp;"
  	else
    		strTemp=strTemp & "<a href='" & strUrl & "page=1'>首頁</a>&nbsp;"
    		strTemp=strTemp & "<a href='" & strUrl & "page=" & (CurrentPage-1) & "'>上一頁</a>&nbsp;"
  	end if

  	if n-currentpage<1 then
    		strTemp=strTemp & "下一頁 尾頁"
  	else
    		strTemp=strTemp & "<a href='" & strUrl & "page=" & (CurrentPage+1) & "'>下一頁</a>&nbsp;"
    		strTemp=strTemp & "<a href='" & strUrl & "page=" & n & "'>尾頁</a>"
  	end if
   	strTemp=strTemp & "&nbsp;頁次:<strong><font color=red>" & CurrentPage & "</font>/" & n & "</strong>頁 "
    strTemp=strTemp & "&nbsp;<b>" & maxperpage & "</b>" & strUnit & "/頁"
	if ShowAllPages=True then
		strTemp=strTemp & "&nbsp;轉到:<select name='page' size='1' onchange='javascript:submit()'>"   
    	for i = 1 to n   
    		strTemp=strTemp & "<option value='" & i & "'"
			if cint(CurrentPage)=cint(i) then strTemp=strTemp & " selected "
			strTemp=strTemp & ">第" & i & "頁</option>"   
	    next
		strTemp=strTemp & "</select>"
	end if
	strTemp=strTemp & "</td></tr></form></table>"
	response.write strTemp
end sub

'********************************************
'函數名:IsValidEmail
'作  用:檢查Email地址合法性
'參  數:email ----要檢查的Email地址
'返回值:True  ----Email地址合法
'       False ----Email地址不合法
'********************************************
function IsValidEmail(email)
	dim names, name, i, c
	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

'***************************************************
'函數名:IsObjInstalled
'作  用:檢查組件是否已經安裝
'參  數:strClassString ----組件名
'返回值:True  ----已經安裝
'       False ----沒有安裝
'***************************************************
Function IsObjInstalled(strClassString)
	On Error Resume Next
	IsObjInstalled = False
	Err = 0
	Dim xTestObj
	Set xTestObj = Server.CreateObject(strClassString)
	If 0 = Err Then IsObjInstalled = True
	Set xTestObj = Nothing
	Err = 0
End Function

'**************************************************
'函數名:strLength
'作  用:求字符串長度。漢字算兩個字符,英文算一個字符。
'參  數:str  ----要求長度的字符串
'返回值:字符串長度
'**************************************************
function strLength(str)
	ON ERROR RESUME NEXT
	dim WINNT_CHINESE
	WINNT_CHINESE    = (len("中國")=2)
	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

'****************************************************
'函數名:SendMail
'作  用:用Jmail組件發送郵件
'參  數:ServerAddress  ----服務器地址
'        AddRecipient  ----收信人地址
'        Subject       ----主題
'        Body          ----信件內容
'        Sender        ----發信人地址
'****************************************************
function SendMail(MailServerAddress,AddRecipient,Subject,Body,Sender,MailFrom)
	on error resume next
	Dim JMail
	Set JMail=Server.CreateObject("JMail.SMTPMail")
	if err then
		SendMail= "<br><li>沒有安裝JMail組件</li>"
		err.clear
		exit function
	end if
	JMail.Logging=True
	JMail.Charset="gb2312"
	JMail.ContentType = "text/html"
	JMail.ServerAddress=MailServerAddress
	JMail.AddRecipient=AddRecipient
	JMail.Subject=Subject
	JMail.Body=MailBody
	JMail.Sender=Sender
	JMail.From = MailFrom
	JMail.Priority=1
	JMail.Execute 
	Set JMail=nothing 
	if err then 
		SendMail=err.description
		err.clear
	else
		SendMail="OK"
	end if
end function

'****************************************************
'過程名:WriteErrMsg
'作  用:顯示錯誤提示信息
'參  數:無
'****************************************************
sub WriteErrMsg()
	dim strErr
	strErr=strErr & "<html><head><title>錯誤信息</title><meta http-equiv='Content-Type' content='text/html; charset=gb2312'>" & vbcrlf
	strErr=strErr & "<link href='style.css' rel='stylesheet' type='text/css'></head><body>" & vbcrlf
	strErr=strErr & "<table cellpadding=2 cellspacing=2 border=0 width=400 class='border' align=center>" & vbcrlf
	strErr=strErr & "  <tr align='center'><td height='20' class='title'><strong>錯誤信息</strong></td></tr>" & vbcrlf
	strErr=strErr & "  <tr><td height='100' class='tdbg' valign='top'><b>產生錯誤的可能原因:</b><br>" & errmsg &"</td></tr>" & vbcrlf
	strErr=strErr & "  <tr align='center'><td class='title'><a href='javascript:history.go(-1)'>【返回】</a></td></tr>" & vbcrlf
	strErr=strErr & "</table>" & vbcrlf
	strErr=strErr & "</body></html>" & vbcrlf
	response.write strErr
end sub

'****************************************************
'過程名:WriteSuccessMsg
'作  用:顯示成功提示信息
'參  數:無
'****************************************************
sub WriteSuccessMsg(SuccessMsg)
	dim strSuccess
	strSuccess=strSuccess & "<html><head><title>成功信息</title><meta http-equiv='Content-Type' content='text/html; charset=gb2312'>" & vbcrlf
	strSuccess=strSuccess & "<link href='style.css' rel='stylesheet' type='text/css'></head><body>" & vbcrlf
	strSuccess=strSuccess & "<table cellpadding=2 cellspacing=2 border=0 width=400 class='border' align=center>" & vbcrlf
	strSuccess=strSuccess & "  <tr align='center'><td height='20' class='title'><strong>恭喜你!</strong></td></tr>" & vbcrlf
	strSuccess=strSuccess & "  <tr><td height='100' class='tdbg' valign='top'><br>" & SuccessMsg &"</td></tr>" & vbcrlf
	strSuccess=strSuccess & "  <tr align='center'><td class='title'><a href='javascript:history.go(-1)'>【返回】</a></td></tr>" & vbcrlf
	strSuccess=strSuccess & "</table>" & vbcrlf
	strSuccess=strSuccess & "</body></html>" & vbcrlf
	response.write strSuccess
end sub

%>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
蜜桃一区二区三区在线观看| 久久嫩草精品久久久久| 国产精品一区免费视频| 久久精品国产久精国产爱| 丝袜美腿成人在线| 午夜亚洲国产au精品一区二区| 中文字幕永久在线不卡| 亚洲欧洲另类国产综合| 亚洲欧洲日韩女同| 亚洲午夜激情av| 日日欢夜夜爽一区| 久久国产麻豆精品| 国产一区二区三区电影在线观看| 捆绑紧缚一区二区三区视频 | 国产精品一区二区三区乱码| 久久国产尿小便嘘嘘尿| 豆国产96在线|亚洲| 99热国产精品| 91国偷自产一区二区三区观看| 欧美网站一区二区| 欧美一级在线视频| 国产视频一区在线观看| 1000部国产精品成人观看| 亚洲在线观看免费| 国内一区二区视频| 色综合亚洲欧洲| 日韩欧美中文字幕一区| 欧美激情一区二区三区蜜桃视频| 亚洲图片激情小说| 日韩国产欧美一区二区三区| 国产九色sp调教91| 欧美亚一区二区| 2020国产成人综合网| 亚洲欧洲日产国码二区| 日韩电影一区二区三区四区| 国产成人精品三级麻豆| 欧美无砖专区一中文字| 久久久91精品国产一区二区三区| 最新不卡av在线| 韩国v欧美v亚洲v日本v| 99久久综合精品| 欧美xxx久久| 一区二区三区成人| 国产一区久久久| 91精品视频网| 一区二区三区中文在线| 国产麻豆精品一区二区| 欧美久久久久久久久久| 国产精品久久久久三级| 久久精品国产99久久6| 色婷婷久久99综合精品jk白丝| 欧美mv日韩mv亚洲| 五月婷婷综合激情| 91视频观看视频| 国产日韩欧美在线一区| 久久er99精品| 69成人精品免费视频| 亚洲欧美日韩一区| 不卡视频在线观看| 久久午夜色播影院免费高清| 免播放器亚洲一区| 欧美日韩国产区一| 亚洲国产精品久久人人爱 | 国产精品午夜在线观看| 麻豆精品在线播放| 欧美高清激情brazzers| 亚洲免费观看高清在线观看| 丰满亚洲少妇av| 久久久久久麻豆| 国产成人在线视频网站| 精品国产伦一区二区三区观看体验| 亚洲成人av在线电影| 在线观看91精品国产入口| 亚洲日本va午夜在线电影| 不卡一区二区在线| 日韩理论片在线| 在线观看国产一区二区| 亚洲国产日韩a在线播放性色| 色网站国产精品| 一区二区三区四区激情| 日本道免费精品一区二区三区| 国产精品第四页| 色天天综合久久久久综合片| 一区二区三区**美女毛片| 欧美亚洲国产一卡| 日本不卡中文字幕| 久久久久久**毛片大全| 成人av手机在线观看| 中文字幕综合网| 欧美色中文字幕| 另类调教123区| 国产色产综合产在线视频| www.久久久久久久久| 亚洲线精品一区二区三区| 4438x亚洲最大成人网| 久久99久久99精品免视看婷婷| 精品福利一区二区三区免费视频| 国精产品一区一区三区mba视频 | 99综合电影在线视频| 亚洲国产欧美日韩另类综合| 7777精品久久久大香线蕉| 久久精品二区亚洲w码| 国产日韩av一区二区| 91小视频在线| 免费高清在线视频一区·| 久久麻豆一区二区| 91网上在线视频| 麻豆国产一区二区| 亚洲色图制服诱惑 | 亚洲天堂av老司机| 91精品啪在线观看国产60岁| 国产福利一区二区三区在线视频| 中文字幕在线不卡视频| 9191精品国产综合久久久久久 | 亚洲三级免费电影| 欧美日韩国产中文| 国产成a人亚洲精品| 亚洲一级二级在线| 国产精品久久久久久久久免费桃花 | 国产精品久久久久影院亚瑟| 在线不卡中文字幕| 成人avav影音| 国产在线视视频有精品| 亚洲精品v日韩精品| 久久久久久9999| 日韩一区二区三区四区五区六区| av男人天堂一区| 国产在线不卡视频| 人人精品人人爱| 亚洲成人手机在线| 亚洲男同1069视频| 久久精品视频免费| 日韩欧美国产综合| 91精品国产综合久久婷婷香蕉| 91原创在线视频| 国产91露脸合集magnet| 久久丁香综合五月国产三级网站 | 久久国产乱子精品免费女| 亚洲成人免费电影| 亚洲精品国产高清久久伦理二区| 国产女同性恋一区二区| 久久免费看少妇高潮| 日韩一级二级三级| 日韩一区二区三区免费看| 欧美日韩一区高清| 在线观看日韩高清av| 日本精品裸体写真集在线观看| 成人性色生活片免费看爆迷你毛片| 国模少妇一区二区三区| 狠狠色丁香久久婷婷综| 日韩电影一二三区| 午夜精品久久久久久久99水蜜桃| 一区二区三区在线不卡| 亚洲欧美一区二区三区孕妇| 亚洲啪啪综合av一区二区三区| 国产精品对白交换视频 | 日韩不卡一区二区| 日韩精品一级二级 | www.亚洲人| 不卡欧美aaaaa| 99国产精品久久久久久久久久| 成人国产精品视频| 色哟哟欧美精品| 6080午夜不卡| 欧美变态tickling挠脚心| 久久久精品日韩欧美| 国产精品萝li| 亚洲自拍偷拍麻豆| 热久久国产精品| 国产精品一二三| 91在线观看美女| 69久久99精品久久久久婷婷 | 大白屁股一区二区视频| 91视频免费播放| 91精品国产一区二区| xnxx国产精品| 综合激情成人伊人| 日韩国产欧美三级| 国产91露脸合集magnet| 欧美日韩中文字幕一区二区| 精品少妇一区二区三区免费观看 | 亚洲高清不卡在线| 久久成人av少妇免费| 色综合久久久久综合体桃花网| 欧美日韩国产综合视频在线观看 | 成人97人人超碰人人99| 欧美日韩激情在线| 国产精品欧美一区喷水| 亚洲超碰97人人做人人爱| 国产在线视频不卡二| 在线欧美小视频| 精品国产凹凸成av人导航| 亚洲欧美偷拍卡通变态| 九九久久精品视频| 色噜噜狠狠色综合欧洲selulu| 久久伊99综合婷婷久久伊| 香蕉久久夜色精品国产使用方法| 国产精品123区| 欧美成人vps| 石原莉奈在线亚洲三区|