亚洲欧美第一页_禁久久精品乱码_粉嫩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)'>&lt;&lt; 返回上一頁</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:window.close()'>【關 閉】</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一区二区三区免费野_久草精品视频
欧美丰满嫩嫩电影| 亚洲午夜在线视频| 亚洲综合在线观看视频| 免费在线观看一区二区三区| 成人ar影院免费观看视频| 正在播放一区二区| 亚洲男同1069视频| 国产精品一区在线观看乱码| 欧美三级日韩在线| 亚洲天天做日日做天天谢日日欢| 日韩高清不卡在线| 91久久人澡人人添人人爽欧美| 久久久久久日产精品| 日本欧美一区二区在线观看| 一本大道综合伊人精品热热| 国产视频一区二区三区在线观看| 免费高清在线一区| 欧美色爱综合网| 亚洲女性喷水在线观看一区| 成人精品视频.| 久久久久久久综合| 久久精品国产亚洲5555| 欧美一区二区私人影院日本| 亚洲成a人在线观看| 色一区在线观看| 亚洲天堂免费看| 一本到不卡免费一区二区| 国产精品久久三| www.激情成人| 国产精品三级久久久久三级| 国产精品亚洲成人| 欧美国产精品久久| 成人高清视频在线| 亚洲日本一区二区三区| 91丝袜美腿高跟国产极品老师 | 国产乱码一区二区三区| 日韩欧美一二三| 麻豆91精品91久久久的内涵| 欧美一区二区三区免费大片| 青青草91视频| 精品国产乱码久久久久久老虎| 日本vs亚洲vs韩国一区三区二区 | 色先锋资源久久综合| 中文字幕日本不卡| 色噜噜久久综合| 亚洲午夜av在线| 日韩一二三四区| 国内精品自线一区二区三区视频| 精品动漫一区二区三区在线观看| 国产精品一区久久久久| 国产精品视频第一区| 91麻豆国产在线观看| 亚洲电影一级片| 欧美成人一区二区三区在线观看| 国产一区二区调教| 综合欧美亚洲日本| 欧美性欧美巨大黑白大战| 天堂va蜜桃一区二区三区漫画版| 欧美xxxxx牲另类人与| 国产91丝袜在线播放| 亚洲精品少妇30p| 欧美日韩成人综合| 国产成人午夜精品5599| 亚洲日本在线天堂| 日韩一级黄色大片| 波多野结衣在线aⅴ中文字幕不卡| 亚洲品质自拍视频| 欧美一区二区三区色| 国产1区2区3区精品美女| 亚洲一区二区av电影| 精品国产精品网麻豆系列| 不卡大黄网站免费看| 日本午夜一本久久久综合| 国产日韩欧美不卡在线| 欧美日韩精品免费| 国产精品一卡二卡| 午夜精品一区二区三区免费视频| 欧美精品一区视频| 在线精品观看国产| 国产精品1区2区3区在线观看| 亚洲美女少妇撒尿| 国产亚洲精品中文字幕| aaa国产一区| 黄色日韩网站视频| 亚洲成人av在线电影| 国产精品丝袜在线| 日韩欧美视频在线| 在线欧美一区二区| 成人精品高清在线| 久久精品国产99久久6| 夜色激情一区二区| 中文字幕成人网| 欧美不卡激情三级在线观看| 欧美亚洲综合一区| 97久久超碰国产精品| 韩国欧美国产一区| 蜜桃在线一区二区三区| 亚洲一区二区影院| 亚洲欧美在线观看| 国产精品人成在线观看免费| 日韩欧美视频一区| 91精品视频网| 欧美日韩另类国产亚洲欧美一级| 91在线观看视频| 成人的网站免费观看| 国产精品白丝jk黑袜喷水| 看片网站欧美日韩| 久久国产日韩欧美精品| 日韩成人午夜电影| 青青草97国产精品免费观看无弹窗版 | 91国内精品野花午夜精品| 国产成人一级电影| 国产成人精品一区二区三区网站观看| 美腿丝袜在线亚洲一区| 丝袜脚交一区二区| 亚洲第一成人在线| 亚洲国产aⅴ成人精品无吗| 亚洲精品成人精品456| 国产精品毛片大码女人| 国产精品美女久久久久久久网站| 一区二区日韩av| 有码一区二区三区| 亚洲与欧洲av电影| 亚洲午夜在线电影| 丝袜诱惑制服诱惑色一区在线观看| 亚洲成av人片在www色猫咪| 午夜免费久久看| 亚洲国产精品一区二区久久 | 日韩成人av影视| 裸体一区二区三区| 国产一区在线观看视频| 成人小视频在线| 色网站国产精品| 3d动漫精品啪啪一区二区竹菊| 欧美一区国产二区| 国产三级一区二区| 一区二区三区四区精品在线视频| 夜夜亚洲天天久久| 美女高潮久久久| 成人午夜视频网站| 欧美中文一区二区三区| 一区二区三区av电影| 亚洲视频一二区| 日韩中文字幕亚洲一区二区va在线| 天堂成人免费av电影一区| 国内精品久久久久影院色| 成人综合在线观看| 欧美性受xxxx| 久久婷婷久久一区二区三区| 国产亚洲欧美一级| 亚洲国产日韩av| 国产裸体歌舞团一区二区| 91麻豆国产香蕉久久精品| 欧美一区二区三区白人| 中文字幕av在线一区二区三区| 亚洲激情校园春色| 国内成人免费视频| 欧亚一区二区三区| 欧美成人video| 一区二区在线观看视频在线观看| 亚洲成年人影院| 丰满岳乱妇一区二区三区| 欧美日韩国产系列| 久久九九国产精品| 亚洲午夜电影网| 日本精品免费观看高清观看| 7777精品伊人久久久大香线蕉的| 国产欧美视频一区二区三区| 一区二区在线观看不卡| 激情综合网av| 欧美性猛交xxxx乱大交退制版| www国产精品av| 天堂久久久久va久久久久| 99九九99九九九视频精品| 日韩精品一区二区三区swag | 欧美精品一二三| 成人欧美一区二区三区白人| 看国产成人h片视频| 欧美性受xxxx黑人xyx性爽| 国产日本亚洲高清| 麻豆精品一区二区三区| 欧美亚男人的天堂| 亚洲图片你懂的| 国产不卡视频一区二区三区| 日韩精品专区在线影院重磅| 午夜私人影院久久久久| 一本大道久久a久久精品综合| 久久精品免费在线观看| 精品一区在线看| 51精品国自产在线| 午夜电影一区二区三区| 日本高清无吗v一区| 中文字幕一区二区三区四区不卡 | 久久久久久一二三区| 美腿丝袜亚洲综合| 日韩午夜av电影| 奇米精品一区二区三区在线观看一| 欧美在线三级电影| 亚洲制服欧美中文字幕中文字幕| 99久久精品免费|