⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 func_login.asp

📁 Simple涂乌板2
💻 ASP
字号:
<%
'登陆计数器
Sub Counter()
	Application.Lock
	st("visitor")=st("visitor")+1
	st.Update
	Application.UnLock
End Sub

Sub IPFilter()
	tbname="IPFilter"
	sql="select * from "&tbname
	set FT=GetRS(mdbname,tbname,sql)
	IP = Request.ServerVariables("HTTP_X_FORWARDED_FOR")
	If IP = "" Then
		IP = Request.ServerVariables("REMOTE_ADDR") 
	End If
	For n=1 To FT.RecordCount
		If FT("IP")=IP Then
			Response.End
		End If
		FT.MoveNext
	Next
End Sub

If Session("visitor")=Empty And Session("FuncLoginPass")="Pass" Then
	Counter()
	IPFilter()
	Session("visitor")=st("visitor")
	Response.Redirect "index.asp"
End If
%>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -