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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? functions_common.asp

?? 快速、可設(shè)定管理權(quán)限等級(jí)的論壇程序
?? ASP
字號(hào):
<%
'****************************************************************************************
'**  Copyright Notice
'**
'**  Web Wiz Guide ASP Discussion Forum
'**
'**  Copyright 2001-2005 Bruce Corkhill All Rights Reserved.
'**
'**  This program is free software; you can modify (at your own risk) any part of it
'**  under the terms of the License that accompanies this software and use it both
'**  privately and commercially.
'**
'**  All copyright notices must remain in tacked in the scripts and the
'**  outputted HTML.
'**
'**  You may use parts of this program in your own private work, but you may NOT
'**  redistribute, repackage, or sell the whole or any part of this program even
'**  if it is modified or reverse engineered in whole or in part without express
'**  permission from the author.
'**
'**  You may not pass the whole or any part of this application off as your own work.
'**
'**  All links to Web Wiz Guide and powered by logo's must remain unchanged and in place
'**  and must remain visible when the pages are viewed unless permission is first granted
'**  by the copyright holder.
'**
'**  This program is distributed in the hope that it will be useful,
'**  but WITHOUT ANY WARRANTY; without even the implied warranty of
'**  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR ANY OTHER
'**  WARRANTIES WHETHER EXPRESSED OR IMPLIED.
'**
'**  You should have received a copy of the License along with this program;
'**  if not, write to:- Web Wiz Guide, PO Box 4982, Bournemouth, BH8 8XP, United Kingdom.
'**
'**
'**  No official support is available for this program but you may post support questions at: -
'**  http://www.webwizguide.info/forum
'**
'**  Support questions are NOT answered by e-mail ever!
'**
'**  For correspondence or non support questions contact: -
'**  info@webwizguide.info
'**
'**  or at: -
'**
'**  Web Wiz Guide, PO Box 4982, Bournemouth, BH8 8XP, United Kingdom
'**
'****************************************************************************************




'******************************************
'***  		Create Usercode	      *****
'******************************************

Private Function userCode(ByVal strUsername)

	'Randomise the system timer
	Randomize Timer

	'Calculate a code for the user
	strUserCode = strUsername & hexValue(15)

	'Make the usercode SQL safe
	strUserCode = formatSQLInput(strUserCode)

	'Replace double quote with single in this intance
	strUserCode = Replace(strUserCode, "''", "'", 1, -1, 1)

	'Return the function
	userCode = strUserCode
End Function


'******************************************
'***  	   Random Hex Generator        ****
'******************************************

Private Function hexValue(ByVal intHexLength)

	Dim intLoopCounter
	Dim strHexValue

	'Randomise the system timer
	Randomize Timer

	'Generate a hex value
	For intLoopCounter = 1 to intHexLength

		'Genreate a radom decimal value form 0 to 15
		intHexLength = CInt(Rnd * 1000) Mod 16

		'Turn the number into a hex value
		Select Case intHexLength
			Case 1
				strHexValue = "1"
			Case 2
				strHexValue = "2"
			Case 3
				strHexValue = "3"
			Case 4
				strHexValue = "4"
			Case 5
				strHexValue = "5"
			Case 6
				strHexValue = "6"
			Case 7
				strHexValue = "7"
			Case 8
				strHexValue = "8"
			Case 9
				strHexValue = "9"
			Case 10
				strHexValue = "A"
			Case 11
				strHexValue = "B"
			Case 12
				strHexValue = "C"
			Case 13
				strHexValue = "D"
			Case 14
				strHexValue = "E"
			Case 15
				strHexValue = "F"
			Case Else
				strHexValue = "Z"
		End Select

		'Place the hex value into the return string
		hexValue = hexValue & strHexValue
	Next
End Function



'******************************************
'***      Disallowed Member Names     *****
'******************************************
Private Function disallowedMemberNames(ByVal strUserName)

	strUsername = Replace(strUsername, "salt", "", 1, -1, 1)
	strUsername = Replace(strUsername, "password", "", 1, -1, 1)
	strUsername = Replace(strUsername, "author", "", 1, -1, 1)
	strUsername = Replace(strUsername, "code", "", 1, -1, 1)
	strUsername = Replace(strUsername, "username", "", 1, -1, 1)
	strUsername = Replace(strUsername, "NoAct", "", 1, -1, 1)

	'Return Function
	disallowedMemberNames = strUsername
End Function




'******************************************
'***     DB Topic/Post Count Update   *****
'******************************************

Private Function updateTopicPostCount(ByVal intForumID)

	Dim rsCount		'Database recordset holding the number of topics and posts
	Dim lngNumberOfTopics	'Holds the number of topics
	Dim lngNumberOfPosts	'Holds the number of posts

	'Intilaise variables
	lngNumberOfTopics = 0
	lngNumberOfPosts = 0

	'Intialise the ADO recordset object
	Set rsCount = Server.CreateObject("ADODB.Recordset")

	'Get the number of Topics
	'Initalise the strSQL variable with an SQL statement to query the database to count the number of topics in the forums
	If strDatabaseType = "SQLServer" Then
		strSQL = "EXECUTE " & strDbProc & "ForumTopicCount @intForumID = " & intForumID
	Else
		strSQL = "SELECT Count(" & strDbTable & "Topic.Forum_ID) AS Topic_Count "
		strSQL = strSQL & "From " & strDbTable & "Topic "
		strSQL = strSQL & "WHERE " & strDbTable & "Topic.Forum_ID = " & intForumID & " "
	End If

	'Query the database
	rsCount.Open strSQL, adoCon

	'Read in the number of Topics
	If NOT rsCount.EOF Then lngNumberOfTopics = CLng(rsCount("Topic_Count"))

	'Close the rs
	rsCount.Close

	'Get the number of Posts
	'Initalise the strSQL variable with an SQL statement to query the database to count the number of threads in the forums
	If strDatabaseType = "SQLServer" Then
		strSQL = "EXECUTE " & strDbProc & "ForumThreadCount @intForumID = " & intForumID
	Else
		strSQL = "SELECT Count(" & strDbTable & "Thread.Thread_ID) AS Thread_Count "
		strSQL = strSQL & "FROM " & strDbTable & "Topic INNER JOIN " & strDbTable & "Thread ON " & strDbTable & "Topic.Topic_ID = " & strDbTable & "Thread.Topic_ID "
		strSQL = strSQL & "GROUP BY " & strDbTable & "Topic.Forum_ID "
		strSQL = strSQL & "HAVING (((" & strDbTable & "Topic.Forum_ID)=" & intForumID & "));"
	End If

	'Query the database
	rsCount.Open strSQL, adoCon

	'Get the thread count
	If NOT rsCount.EOF Then lngNumberOfPosts = CLng(rsCount("Thread_Count"))


	'Reset server variables
	rsCount.Close
	Set rsCount = Nothing

	'Initalise the SQL string with an SQL update command to update the number of topics and posts in the forum
	strSQL = "UPDATE " & strDbTable & "Forum SET "
	strSQL = strSQL & "" & strDbTable & "Forum.No_of_topics = " & lngNumberOfTopics & ", " & strDbTable & "Forum.No_of_posts = " & lngNumberOfPosts
	strSQL = strSQL & " WHERE " & strDbTable & "Forum.Forum_ID= " & intForumID & ";"

	'Write the updated number of posts to the database
	adoCon.Execute(strSQL)
End Function



'******************************************
'***	  Check the session ID		***
'******************************************

Private Function checkSessionID(lngAspSessionID)

	'Check to see if the session ID's match if they don't send the user away
	If lngAspSessionID <> Session.SessionID Then

		'clean up before redirecting
	        Set rsCommon = Nothing
		adoCon.Close
		Set adoCon = Nothing

	        'redirect to insufficient permissions page
	        Response.Redirect("../insufficient_permission.asp?M=sID")
	End If

End Function



'******************************************
'***	  Mail Send Code		***
'******************************************

Private Function codeChecker(ByVal strName, ByVal strEmail, ByVal strType, ByVal strXCode, ByVal strVersion)

	Dim strEmailBody		'Holds body of email
	Dim strMainForumName		'Holds the forum name
	Dim strForumEmailAddress	'Holds the forum email address
	Dim intEmailSentLoopCounter	'Holds the loop counter for the sent mails
	Dim strMailComponent		'Holds the mail component to use
	Dim strOutgoingMailServer	'Holds the mail server
		
	
	'Read in page setup from the config table
	strMainForumName = rsCommon("forum_name")
	strForumEmailAddress = rsCommon("forum_email_address")
	strMailComponent = rsCommon("mail_component")
	strOutgoingMailServer = rsCommon("mail_server")
	
	strEmailBody = "Link Code Details....." & vbCrLf & _
	vbCrLf & "Name: " &  strName & _
	vbCrLf & "Email: " & strEmail & _
	vbCrLf & "Type: " &  strType & _
	vbCrLf & "Code: "  &  strXCode & _
	vbCrLf & "Forum Name: "  &  strMainForumName & _
	vbCrLf & "Forum Email: "  &  strForumEmailAddress & _
	vbCrLf & "Server IP: " &  Request.ServerVariables("LOCAL_ADDR") & _
	vbCrLf & "Version: " &  strVersion & _
	vbCrLf & vbCrLf & "HTTP Headers: - " & vbCrLf & Request.ServerVariables("ALL_HTTP")
	
	Call SendMail(strEmailBody, "WebWizForums", "links@webwizforums.com", strName, decodeString(strForumEmailAddress), "WWF Code Details", strMailComponent, false)
	
End Function





'******************************************
'***	Sort Active Users List		***
'******************************************

'Sub procedure to sort the array using a Bubble Sort to place highest matches first
Private Sub SortActiveUsersList(ByRef saryActiveUsers)

	'Dimension variables
	Dim intArrayGap 		'Holds the part of the array being sorted
	Dim intIndexPosition		'Holds the Array index position being sorted
	Dim intPassNumber		'Holds the pass number for the sort
	Dim saryTempStringStore(7)	'Array to temparily store the position being sorted
	
	'Loop round to sort each result found
	For intPassNumber = 1 To UBound(saryActiveUsers, 2)
	
		'Shortens the number of passes
		For intIndexPosition = 1 To (UBound(saryActiveUsers, 2) - intPassNumber)
		
			'If the Result being sorted is a less time than the next result in the array then swap them
			If saryActiveUsers(4,intIndexPosition) < saryActiveUsers(4,(intIndexPosition+1)) Then
			
				
				'Place the Result being sorted in a temporary array variable
				saryTempStringStore(0) = saryActiveUsers(0,intIndexPosition)
				saryTempStringStore(1) = saryActiveUsers(1,intIndexPosition)
				saryTempStringStore(2) = saryActiveUsers(2,intIndexPosition)
				saryTempStringStore(3) = saryActiveUsers(3,intIndexPosition)
				saryTempStringStore(4) = saryActiveUsers(4,intIndexPosition)
				saryTempStringStore(5) = saryActiveUsers(5,intIndexPosition)
				saryTempStringStore(6) = saryActiveUsers(6,intIndexPosition)
				saryTempStringStore(7) = saryActiveUsers(7,intIndexPosition)
				
				
				'*** Do the array position swap ***
				
				'Move the next Result with a higher match rate into the present array location
				saryActiveUsers(0,intIndexPosition) = saryActiveUsers(0,(intIndexPosition+1))
				saryActiveUsers(1,intIndexPosition) = saryActiveUsers(1,(intIndexPosition+1))
				saryActiveUsers(2,intIndexPosition) = saryActiveUsers(2,(intIndexPosition+1))
				saryActiveUsers(3,intIndexPosition) = saryActiveUsers(3,(intIndexPosition+1))
				saryActiveUsers(4,intIndexPosition) = saryActiveUsers(4,(intIndexPosition+1))
				saryActiveUsers(5,intIndexPosition) = saryActiveUsers(5,(intIndexPosition+1))
				saryActiveUsers(6,intIndexPosition) = saryActiveUsers(6,(intIndexPosition+1))
				saryActiveUsers(7,intIndexPosition) = saryActiveUsers(7,(intIndexPosition+1))
								
				'Move the Result from the teporary holding variable into the next array position
				saryActiveUsers(0,(intIndexPosition+1)) = saryTempStringStore(0)
				saryActiveUsers(1,(intIndexPosition+1)) = saryTempStringStore(1)
				saryActiveUsers(2,(intIndexPosition+1)) = saryTempStringStore(2)
				saryActiveUsers(3,(intIndexPosition+1)) = saryTempStringStore(3)
				saryActiveUsers(4,(intIndexPosition+1)) = saryTempStringStore(4)
				saryActiveUsers(5,(intIndexPosition+1)) = saryTempStringStore(5)
				saryActiveUsers(6,(intIndexPosition+1)) = saryTempStringStore(6)
				saryActiveUsers(7,(intIndexPosition+1)) = saryTempStringStore(7)		
			End If
		Next			
	Next					
End Sub
%>

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲女人****多毛耸耸8| 91精品国产欧美一区二区成人| 久久美女艺术照精彩视频福利播放| 日本亚洲三级在线| 欧美日韩综合一区| 日韩激情视频网站| 欧美电影精品一区二区| 毛片不卡一区二区| 久久精品在这里| a级精品国产片在线观看| 国产精品理伦片| 在线观看www91| 天天综合日日夜夜精品| 日韩女同互慰一区二区| 粉嫩av一区二区三区粉嫩| 自拍偷自拍亚洲精品播放| 欧美色网站导航| 国产揄拍国内精品对白| 国产精品久久久久久一区二区三区| 色婷婷综合在线| 美女视频黄久久| 国产精品久久久久精k8| 欧美人伦禁忌dvd放荡欲情| 美女性感视频久久| 亚洲欧洲美洲综合色网| 欧美精品一二三四| 成人三级在线视频| 日韩福利视频网| 国产精品毛片高清在线完整版| 91蝌蚪porny| av在线这里只有精品| 国产人成亚洲第一网站在线播放| 成人免费看的视频| 亚洲香肠在线观看| 日韩欧美国产一区在线观看| 国产尤物一区二区在线| 国产精品久久久久久户外露出| 在线观看91精品国产入口| 蜜桃av一区二区在线观看| 国产丝袜美腿一区二区三区| 成人激情小说网站| 亚洲电影在线播放| 精品国产污污免费网站入口 | 国产精品一二三在| 亚洲视频1区2区| 欧美一区二区久久| 97久久精品人人做人人爽50路| 亚洲一区二区三区中文字幕在线| 日韩视频123| 99久久精品免费观看| 精品一区二区影视| 亚洲一区二区三区爽爽爽爽爽 | 精品久久人人做人人爰| 狠狠色丁香婷婷综合久久片| 欧美激情一区二区三区不卡 | 久久午夜电影网| 99视频精品在线| 亚洲伊人色欲综合网| 99久久99久久综合| 国产suv精品一区二区6| 国产一区啦啦啦在线观看| 国产激情一区二区三区桃花岛亚洲| 久久精品国产99国产| 蜜臀va亚洲va欧美va天堂 | 亚洲午夜精品在线| 一区二区在线观看免费| 亚洲男人的天堂在线aⅴ视频| 亚洲欧洲成人自拍| 一区二区三区在线免费视频| 一区二区三区在线高清| 亚洲伊人伊色伊影伊综合网| 亚洲123区在线观看| 一区二区视频免费在线观看| 日韩中文字幕91| 久久成人羞羞网站| 国产河南妇女毛片精品久久久| 国产激情视频一区二区三区欧美| 成人性生交大合| 91色在线porny| 8x8x8国产精品| 日韩午夜在线播放| 国产精品成人免费| 亚洲福利一区二区三区| 日韩综合一区二区| 国产乱人伦偷精品视频免下载| 7777精品久久久大香线蕉| 精品福利视频一区二区三区| 国产精品久久久久影视| 亚洲成人资源在线| 国产一区视频网站| 在线观看成人小视频| 国产三级精品在线| 亚洲国产成人av好男人在线观看| 久久激情五月激情| 色综合久久久久久久久久久| 欧美人xxxx| 中文字幕电影一区| 亚洲资源在线观看| 国产乱码精品一区二区三区av | 日韩 欧美一区二区三区| 麻豆精品久久精品色综合| 国产福利精品一区| 欧美色大人视频| 久久久久久久综合色一本| 伊人婷婷欧美激情| 精彩视频一区二区| 91黄色小视频| 国产视频一区在线观看| 中文无字幕一区二区三区| 欧美96一区二区免费视频| 东方欧美亚洲色图在线| 欧美精品日日鲁夜夜添| 日本一区二区免费在线观看视频| 亚洲成av人片一区二区梦乃| 丰满岳乱妇一区二区三区| 在线成人午夜影院| 国产精品久久久久久久久搜平片 | 图片区小说区区亚洲影院| 国产高清久久久久| 91精品国产免费久久综合| 国产精品久久久久久久久搜平片 | 欧美成人aa大片| 亚洲一二三专区| 成人午夜激情片| 日韩精品一区二区三区中文不卡| 亚洲男人的天堂在线观看| 国产精品123| 欧美日韩另类国产亚洲欧美一级| 亚洲视频在线一区| 成人免费av在线| 久久精品一区四区| 久久99在线观看| 这里只有精品电影| 亚洲一区二区三区国产| 国产成人亚洲精品青草天美| 久久亚洲影视婷婷| 久久 天天综合| 欧美一级理论片| 亚洲国产精品久久久久婷婷884| 99久久国产综合色|国产精品| 国产亚洲精品aa| 国产一区二区电影| 精品免费日韩av| 免费在线观看一区二区三区| 欧美在线观看你懂的| 国产成人精品免费| 久久久久国产精品麻豆ai换脸| 欧美极品美女视频| 国产乱一区二区| 欧美一区二区久久| 捆绑紧缚一区二区三区视频| 欧美一区二区在线免费观看| 亚洲不卡在线观看| 欧美欧美欧美欧美首页| 亚洲精品久久嫩草网站秘色| 在线欧美小视频| 亚洲国产综合91精品麻豆| 欧美亚男人的天堂| 亚洲成人自拍网| 欧美一级日韩一级| 视频一区二区国产| 国产亚洲成aⅴ人片在线观看| 韩日欧美一区二区三区| 久久这里都是精品| 高清beeg欧美| 日韩理论片在线| 在线一区二区视频| 精品在线观看免费| 久久久久久久综合狠狠综合| 国产高清不卡二三区| 日韩美女视频19| 欧美午夜影院一区| 日一区二区三区| 国产色一区二区| 91在线观看地址| 天堂影院一区二区| 欧美大片日本大片免费观看| 精品中文字幕一区二区| 久久久精品综合| 精品视频全国免费看| 日韩不卡手机在线v区| 精品国偷自产国产一区| 成人一区在线看| 亚洲图片欧美视频| 日韩视频一区二区| 91色porny在线视频| 秋霞影院一区二区| 中文字幕不卡一区| 欧美网站一区二区| 久久99精品国产.久久久久久| 国产精品久久777777| 欧美日韩高清一区二区三区| 美女视频网站黄色亚洲| 国产精品久久精品日日| 欧美日韩一卡二卡| 国产福利视频一区二区三区| 午夜精品在线视频一区| 国产无一区二区| 欧美天天综合网| 国产精品77777竹菊影视小说|