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

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

?? functions_format_post.asp

?? 快速、可設定管理權限等級的論壇程序
?? ASP
?? 第 1 頁 / 共 3 頁
字號:

		'Get the start and end in the message of the author who is being coded
		lngStartPos = InStr(1, strMessage, "[CODE]", 1) + 6
		lngEndPos = InStr(lngStartPos, strMessage, "[/CODE]", 1)

		'Make sure the end position is not in error
		If lngEndPos < lngStartPos Then lngEndPos = lngStartPos + 6

		'If there is something returned get message to code block
		If lngEndPos > lngStartPos Then

			'Get the message to be coded
			strCodeMessage = Trim(Mid(strMessage, lngStartPos, lngEndPos-lngStartPos))
			
			'Format the message
			strCodeMessage = Replace(strCodeMessage, "       ", "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;", 1, -1, 1)
			strCodeMessage = Replace(strCodeMessage, "      ", "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;", 1, -1, 1)
			strCodeMessage = Replace(strCodeMessage, "     ", "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;", 1, -1, 1)
			strCodeMessage = Replace(strCodeMessage, "    ", "&nbsp;&nbsp;&nbsp;&nbsp;", 1, -1, 1)
			strCodeMessage = Replace(strCodeMessage, "   ", "&nbsp;&nbsp;&nbsp;", 1, -1, 1)
			strCodeMessage = Replace(strCodeMessage, vbTab, "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;", 1, -1, 1)
			strCodeMessage = Replace(strCodeMessage, chr(9), "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;", 1, -1, 1)
			'strCodeMessage = Replace(strCodeMessage, Chr(10), "<br />", 1, -1, 1)


			'Build the HTML for the displying of the coded message
			strBuildCodeBlock = "<table width=""95%"" border=""0"" align=""center"" cellpadding=""0"" cellspacing=""0"">"
			strBuildCodeBlock = strBuildCodeBlock & vbCrLf & "<tr><td class=""bold"">" & strTxtCode & ":<br>"
			strBuildCodeBlock = strBuildCodeBlock & vbCrLf & "   <table width=""100%"" border=""0"" cellpadding=""1"" cellspacing=""0"" bgcolor=""" & strTableQuoteBorderColour & """>"
			strBuildCodeBlock = strBuildCodeBlock & vbCrLf & "    <tr>"
			strBuildCodeBlock = strBuildCodeBlock & vbCrLf & "    <td><table width=""100%"" border=""0"" cellpadding=""2"" cellspacing=""0"" bgcolor=""" & strTableQuoteColour & """>"
			strBuildCodeBlock = strBuildCodeBlock & vbCrLf & "      <tr>"
			strBuildCodeBlock = strBuildCodeBlock & vbCrLf & "       <td class=""text"" style=""font-family: Courier New, Courier, mono;"">" & strCodeMessage & "</td>"
			strBuildCodeBlock = strBuildCodeBlock & vbCrLf & "      </tr>"
			strBuildCodeBlock = strBuildCodeBlock & vbCrLf & "     </table></td>"
			strBuildCodeBlock = strBuildCodeBlock & vbCrLf & "   </tr>"
			strBuildCodeBlock = strBuildCodeBlock & vbCrLf & "  </table></td>"
			strBuildCodeBlock = strBuildCodeBlock & vbCrLf & "</tr>"
			strBuildCodeBlock = strBuildCodeBlock & vbCrLf & "</table>"
		End If


		'Get the start and end position in the start and end position in the message of the code block
		lngStartPos = InStr(1, strMessage, "[CODE]", 1)
		lngEndPos = InStr(lngStartPos, strMessage, "[/CODE]", 1) + 7

		'Make sure the end position is not in error
		If lngEndPos < lngStartPos Then lngEndPos = lngStartPos + 6

		'Get the original code to be replaced in the message
		strOriginalCodeBlock = Trim(Mid(strMessage, lngStartPos, lngEndPos-lngStartPos))

		'Replace the code codes in the message with the new formated code block
		If strBuildCodeBlock <> "" Then
			strMessage = Replace(strMessage, strOriginalCodeBlock, strBuildCodeBlock, 1, -1, 1)
		Else
			strMessage = Replace(strMessage, strOriginalCodeBlock, Replace(strOriginalCodeBlock, "[", "&#91;", 1, -1, 1), 1, -1, 1)
		End If
	Loop

	'Return the function
	formatCode = strMessage

End Function





'******************************************
'***   	Format Flash File Support	***
'******************************************

'This function formats falsh codes
Function formatFlash(ByVal strMessage)


	'Declare variables
	Dim lngStartPos		'Holds search start postions
	Dim lngEndPos		'Holds end start postions
	Dim saryFlashAttributes 'Holds the features of the input flash file
	Dim intAttrbuteLoop	'Holds the attribute loop counter
	Dim strFlashWidth	'Holds the string value of the width of the Flash file
	Dim intFlashWidth	'Holds the interger value of the width of the flash file
	Dim strFlashHeight	'Holds the string value of the height of the Flash file
	Dim intFlashHeight	'Holds the interger value of the height of the flash file
	Dim strBuildFlashLink	'Holds the converted BBcode for the flash file
	Dim strTempFlashMsg	'Tempoary store for the BBcode
	Dim strFlashLink	'Holds the link to the flash file



	'Loop through all the codes in the message and convert them to formated flash links
	Do While InStr(1, strMessage, "[FLASH", 1) > 0 AND InStr(1, strMessage, "[/FLASH]", 1) > 0

		'Initiliase variables
		intFlashWidth = 50
		intFlashHeight = 50
		strFlashLink = ""
		strBuildFlashLink = ""
		strTempFlashMsg = ""

		'Get the Flash BBcode from the message
		lngStartPos = InStr(1, strMessage, "[FLASH", 1)
		lngEndPos = InStr(lngStartPos, strMessage, "[/FLASH]", 1) + 8

		'Make sure the end position is not in error
		If lngEndPos < lngStartPos Then lngEndPos = lngStartPos + 6

		'Get the original Flash BBcode from the message
		strTempFlashMsg = Trim(Mid(strMessage, lngStartPos, lngEndPos-lngStartPos))




		'Get the start and end in the message of the attributes of the Flash file
		lngStartPos = InStr(1, strTempFlashMsg, "[FLASH", 1) + 6
		lngEndPos = InStr(lngStartPos, strTempFlashMsg, "]", 1)

		'Make sure the end position is not in error
		If lngEndPos < lngStartPos Then lngEndPos = lngStartPos

		'If there is something returned get the details (eg. dimensions) of the flash file
		If strTempFlashMsg <> "" Then

			'Place any attributes for the flash file in an array
			saryFlashAttributes = Split(Trim(Mid(strTempFlashMsg, lngStartPos, lngEndPos-lngStartPos)), " ")

			'Get the dimensions of the Flash file
			'Loop through the array of atrributes that are for the falsh file to get the dimentions
			For intAttrbuteLoop = 0 To UBound(saryFlashAttributes)

				'If this is the width attribute then read in the width dimention
				If InStr(1, saryFlashAttributes(intAttrbuteLoop), "WIDTH=", 1) Then

					'Get the width dimention
					strFlashWidth = Replace(saryFlashAttributes(intAttrbuteLoop), "WIDTH=", "", 1, -1, 1)

					'Make sure we are left with a numeric number if so convert to an interger and place in an interger variable
					If isNumeric(strFlashWidth) Then intFlashWidth = CInt(strFlashWidth)
				End If

				'If this is the height attribute then read in the height dimention
				If InStr(1, saryFlashAttributes(intAttrbuteLoop), "HEIGHT=", 1) Then

					'Get the height dimention
					strFlashHeight = Replace(saryFlashAttributes(intAttrbuteLoop), "HEIGHT=", "", 1, -1, 1)

					'Make sure we are left with a numeric number if so convert to an interger and place in an interger variable
					If isNumeric(strFlashHeight) Then intFlashHeight = CInt(strFlashHeight)
				End If
			Next



			'Get the link to the flash file
			lngStartPos = InStr(1, strTempFlashMsg, "]", 1) + 1
			lngEndPos = InStr(lngStartPos, strTempFlashMsg, "[/FLASH]", 1)

			'Make sure the end position is not in error
			If lngEndPos < lngStartPos Then lngEndPos = lngStartPos + 8

			'Read in the code to be converted into a hyperlink from the message
			strFlashLink = Trim(Mid(strTempFlashMsg, lngStartPos, (lngEndPos - lngStartPos)))


			'Build the HTML for the displying of the flash file
			If strFlashLink <> "" Then
				strBuildFlashLink = "<embed src=""" & strFlashLink & """"
				strBuildFlashLink = strBuildFlashLink & " quality=high width=" & intFlashWidth & " height=" & intFlashHeight & " type=""application/x-shockwave-flash"" pluginspage=""http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash""></embed>"
			End If
		End If



		'Replace the flash codes in the message with the new formated flash link
		If strBuildFlashLink <> "" Then
			strMessage = Replace(strMessage, strTempFlashMsg, strBuildFlashLink, 1, -1, 1)
		Else
			strMessage = Replace(strMessage, strTempFlashMsg, Replace(strTempFlashMsg, "[", "&#91;", 1, -1, 1), 1, -1, 1)
		End If
	Loop

	'Return the function
	formatFlash = strMessage

End Function




'******************************************
'***        Display edit author		***
'******************************************

Function editedXMLParser(ByVal strMessage)

		'Declare variables
		Dim strEditedAuthor 	'Holds the name of the author who is editing the post
		Dim dtmEditedDate   	'Holds the date the post was edited
		Dim lngStartPos		'Holds search start postions
		Dim lngEndPos		'Holds end start postions


		'Get the start and end in the message of the author who edit the post
		lngStartPos = InStr(1, strMessage, "<editID>", 1) + 8
		lngEndPos = InStr(1, strMessage, "</editID>", 1)
		If lngEndPos < lngStartPos Then lngEndPos = lngStartPos
		

		'If there is something returned get the authors name
		strEditedAuthor = Trim(Mid(strMessage, lngStartPos, lngEndPos-lngStartPos))

		'Get the start and end in the message of the date the message was edited
		lngStartPos = InStr(1, strMessage, "<editDate>", 1) + 10
		lngEndPos = InStr(1, strMessage, "</editDate>", 1)
		If lngEndPos < lngStartPos Then lngEndPos = lngStartPos

		'If there is something returned get the date the message was edited
		dtmEditedDate = Trim(Mid(strMessage, lngStartPos, lngEndPos-lngStartPos))


		'Get the start and end position in the string of the XML to remove
		lngStartPos = InStr(1, strMessage, "<edited>", 1)
		lngEndPos = InStr(1, strMessage, "</edited>", 1) + 9
		If lngEndPos < lngStartPos Then lngEndPos = lngStartPos

		'If there is something returned strip the XML from the message
		strMessage = Replace(strMessage, Trim(Mid(strMessage, lngStartPos, lngEndPos-lngStartPos)), "", 1, -1, 1)


		'Place the name of the person who edited the post
		If strEditedAuthor <> "" Then
			'If there is a date and time display the autrher dat and time the post was edited
			If IsDate(dtmEditedDate) Then
				dtmEditedDate = CDate(dtmEditedDate)
				editedXMLParser = strMessage & "<span class=""smText""><br /><br />" & strTxtEditBy & " " & strEditedAuthor & " - " & DateFormat(dtmEditedDate, saryDateTimeData) & " " & strTxtAt & " " & TimeFormat(dtmEditedDate, saryDateTimeData) & "</span>"
			'Just display the author name who edited the post
			Else
				editedXMLParser = strMessage & "<span class=""smText""><br /><br />" & strTxtEditBy & " " & strEditedAuthor & "</span>"
			End If
		End If
End Function





'******************************************
'***    Convert Post to Text Function	***
'******************************************

'Function to romove icons and colurs to just leave plain text
Function ConvertToText(ByVal strMessage)

	Dim strTempMessage	'Temporary word hold for e-mail and url words
	Dim strMessageLink	'Holds the new mesage link that needs converting back into code
	Dim lngStartPos		'Holds the start position for a link
	Dim lngEndPos		'Holds the end position for a word
	Dim intLoop		'Loop counter

	'Remove hyperlinks
	strMessage = Replace(strMessage, " target=""_blank""", "", 1, -1, 1)
	
	
	'Loop through the message till all or any hyperlinks are turned into back into froum codes
	Do While InStr(1, strMessage, "<a href=""", 1) > 0 AND InStr(1, strMessage, "</a>", 1) > 0
						    	
		'Find the start position in the message of the HTML hyperlink
		lngStartPos = InStr(1, strMessage, "<a href=""", 1)
																	
		'Find the position in the message for the </a> closing code
		lngEndPos = InStr(lngStartPos, strMessage, "</a>", 1) + 4
		
		'Make sure the end position is not in error
		If lngEndPos - lngStartPos =< 9 Then lngEndPos = lngStartPos + 9
						
		'Read in the code to be converted back into forum codes from the message
		strMessageLink = Trim(Mid(strMessage, lngStartPos, (lngEndPos - lngStartPos)))	
		
		'Place the message link into the tempoary message variable
		strTempMessage = strMessageLink
		
		'Format the HTML hyperlink back into forum codes
		If InStr(1, strTempMessage, "src=""", 1) Then
			strTempMessage = Replace(strTempMessage, "<a href=""", " ", 1, -1, 1)
			strTempMessage = Replace(strTempMessage, "</a>", " ", 1, -1, 1)
		Else
			strTempMessage = Replace(strTempMessage, "<a href=""", " <font color='#0000FF'>", 1, -1, 1)
			strTempMessage = Replace(strTempMessage, "</a>", " ", 1, -1, 1)
			strTempMessage = Replace(strTempMessage, """>", "</font> - ", 1, -1, 1)
		End If
		
		'Place the new fromatted codes into the message string body
		strMessage = Replace(strMessage, strMessageLink, strTempMessage, 1, -1, 1)		
	Loop
	
	'Get any that may slip through (don't look as good but still has the same effect)
	strMessage = Replace(strMessage, "<a href= """, "", 1, -1, 1)
	strMessage = Replace(strMessage, "<a href='", "", 1, -1, 1)
	strMessage = Replace(strMessage, "</a>", "", 1, -1, 1)

	'Return the message with the icons and text colours removed
	ConvertToText = strMessage

End Function
%>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩一级片在线观看| 亚洲精品久久嫩草网站秘色| 中文字幕欧美三区| 亚洲国产成人va在线观看天堂| 久久99国产精品免费网站| av午夜一区麻豆| 久久日一线二线三线suv| 中文字幕一区二区不卡| 美女被吸乳得到大胸91| 欧美日韩综合不卡| 中文字幕在线播放不卡一区| 麻豆国产精品官网| 777a∨成人精品桃花网| 亚洲一区二区视频| 一本色道久久综合亚洲aⅴ蜜桃| 精品久久久久久久一区二区蜜臀| 一区二区日韩av| 91啪亚洲精品| 1000部国产精品成人观看| 国产麻豆精品一区二区| 精品av久久707| 日本免费新一区视频| 欧美日韩一卡二卡三卡| 亚洲综合久久久久| 色久综合一二码| 日韩码欧中文字| 色综合天天性综合| 亚洲欧美日韩精品久久久久| 成人精品在线视频观看| 欧美国产激情一区二区三区蜜月| 韩国理伦片一区二区三区在线播放 | 欧美精品免费视频| 亚洲精品欧美激情| 91国产视频在线观看| 亚洲欧美电影一区二区| 色婷婷av一区二区三区之一色屋| 中文字幕一区二区不卡 | 99视频精品全部免费在线| 中文字幕av在线一区二区三区| 国产一二三精品| 国产欧美精品一区二区三区四区| 国产精品一区二区不卡| 国产精品污www在线观看| 粉嫩久久99精品久久久久久夜| 久久噜噜亚洲综合| 成人激情免费视频| 一区二区三区在线不卡| 欧美精品自拍偷拍动漫精品| 日韩精品一级中文字幕精品视频免费观看| 欧美精品粉嫩高潮一区二区| 免费在线观看成人| 国产亚洲女人久久久久毛片| 成人aa视频在线观看| 一区二区三区视频在线看| 欧美精三区欧美精三区| 国产又黄又大久久| 成人欧美一区二区三区视频网页| 欧洲精品在线观看| 久久99九九99精品| 综合网在线视频| 欧美日韩高清影院| 国产sm精品调教视频网站| 一区二区在线免费| 精品欧美一区二区三区精品久久 | 日韩一卡二卡三卡四卡| 粉嫩在线一区二区三区视频| 国产精品青草久久| 欧美精品vⅰdeose4hd| 国产乱码精品一品二品| 一区二区三区中文字幕电影| 欧美tickling挠脚心丨vk| 99精品视频在线观看| 性做久久久久久久免费看| 日韩精品自拍偷拍| 一本色道a无线码一区v| 美国精品在线观看| 亚洲九九爱视频| 日韩女优毛片在线| 欧美亚洲禁片免费| 国产ts人妖一区二区| 日韩电影在线一区二区| 国产精品欧美久久久久无广告| 欧美日韩激情在线| 不卡的av电影在线观看| 麻豆91小视频| 一区二区三区视频在线看| 久久久久久免费| 在线电影一区二区三区| av电影在线观看不卡| 极品销魂美女一区二区三区| 午夜电影一区二区| 亚洲品质自拍视频网站| 久久久久久久久久久久久女国产乱 | 欧美精品日韩一本| 99精品在线观看视频| 国产伦精品一区二区三区免费迷| 亚洲bdsm女犯bdsm网站| 亚洲免费资源在线播放| 中文欧美字幕免费| 久久久99精品免费观看| 欧美成人女星排名| 7777女厕盗摄久久久| 欧美日韩免费在线视频| 色美美综合视频| 欧美一区二区精品| 欧美色精品在线视频| 日本精品视频一区二区三区| 99久久精品免费看国产| 成人国产电影网| 国产suv精品一区二区三区| 久草在线在线精品观看| 精品无码三级在线观看视频| 久久精品久久久精品美女| 日韩精彩视频在线观看| 日日夜夜一区二区| 日韩av高清在线观看| 天堂久久一区二区三区| 日韩中文字幕不卡| 日本中文字幕一区| 强制捆绑调教一区二区| 精品一区二区久久久| 精品亚洲欧美一区| 国产激情91久久精品导航| 国模冰冰炮一区二区| 福利电影一区二区| eeuss鲁一区二区三区| 99天天综合性| 欧美亚洲国产一区在线观看网站 | 椎名由奈av一区二区三区| 国产精品第五页| 亚洲区小说区图片区qvod| 一区二区国产盗摄色噜噜| 亚洲123区在线观看| 蜜桃视频一区二区三区在线观看 | 奇米影视一区二区三区小说| 美女视频黄a大片欧美| 国产成人啪免费观看软件 | 色综合久久久久综合体| 欧美性欧美巨大黑白大战| 欧美一区二区三区系列电影| 久久亚洲一区二区三区明星换脸| 国产精品美女久久久久久久久 | 欧美中文一区二区三区| 国产精品 日产精品 欧美精品| 99re热这里只有精品视频| 欧美午夜精品一区二区三区| 在线视频你懂得一区| 不卡电影一区二区三区| 亚洲va在线va天堂| 人人超碰91尤物精品国产| 一区二区欧美在线观看| 99国产精品久久| 日本一区二区三区免费乱视频| 久久精品99国产精品| 欧美日韩国产天堂| 亚洲国产aⅴ成人精品无吗| 色哦色哦哦色天天综合| 中文字幕亚洲电影| 成人免费毛片片v| 国产午夜久久久久| 精品一区在线看| 亚洲精品在线免费播放| 日本va欧美va精品| 欧美日产国产精品| 亚洲1区2区3区4区| 欧美猛男gaygay网站| 午夜精品一区二区三区电影天堂| 在线免费观看日韩欧美| 一区二区在线观看av| 久久久精品人体av艺术| 狠狠色丁香九九婷婷综合五月| 欧美r级在线观看| 九一久久久久久| 久久九九久精品国产免费直播| 国产精品一区二区视频| 欧美电视剧免费全集观看| 国内精品久久久久影院色 | 色婷婷精品久久二区二区蜜臂av| 欧美韩国日本一区| 91在线观看成人| 一区二区三区小说| 欧美日韩aaaaaa| 乱一区二区av| 久久久精品中文字幕麻豆发布| 高清免费成人av| 亚洲欧洲无码一区二区三区| 色综合久久中文综合久久97 | 91福利资源站| 日韩黄色片在线观看| 精品成人在线观看| 成人黄色777网| 亚洲综合图片区| 日韩欧美一级二级| 风流少妇一区二区| 伊人色综合久久天天| 日韩欧美国产电影| 成人99免费视频| 亚洲超丰满肉感bbw| 久久亚洲捆绑美女| 色噜噜狠狠色综合中国|