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

📄 skybird.asp

📁 好东西~升级版本~校园 仿帝国wap 程序,有后台
💻 ASP
字号:
<%
Dim ValidEntry ' Log variable
' First set that this log is valid 
ValidEntry = True

' If Session Variable "LogIn" is not empty 
' that mean this person has already been logged
' then set ValidLog to False
If not IsEmpty(Session("LogIn")) then ValidEntry = False

' Here you can add different restriction
' If the refering url is from same site 
' don't write to log file
If Left(Request.ServerVariables("HTTP_REFERER"), 17)="http://devasp.com" Then 
ValidEntry = False
End if
If Left(Request.ServerVariables("HTTP_REFERER"), 21)="http://www.devasp.com" Then
ValidEntry = False
End If

' Now if ValidEntry is True then enter to log file
If ValidEntry Then 
Const ForAppending = 8
Const Create = true
Dim FSO
DIM TS
DIM MyFileName
Dim strLog

MyFileName = Server.MapPath("tongji/skybird_log.htm")
Set FSO = Server.CreateObject("Scripting.FileSystemObject")
Set TS = FSO.OpenTextFile(MyFileName, ForAppending, Create)

' Store all required values in strLog 
myaccept=Request.ServerVariables("HTTP_Accept")
mytime =now 
myip = Request.ServerVariables("REMOTE_ADDR") & " "
myurl =Request.ServerVariables("HTTP_url") & " "
mytype =  Request.ServerVariables("HTTP_USER_AGENT")

' Write current information to Log Text File.


    TS.write "<div align='left'><font size='2'>&nbsp;<font color='#FF0000'>时间:</font>" & mytime & "&nbsp;<font color='#FF0000'>IP地址:</font>" & myip & "&nbsp;<font color='#FF0000'>支持类型:</font>" & myaccept & "&nbsp;<font color='#FF0000'>机型:</font>" & mytype 
TS.write "</font></div>"

TS.write "<hr width='100%' color='#0099FF' size='1'>"



' Create a session varialbe to check next time for ValidEntry
Session("LogIn") = "yes"
Set TS = Nothing
Set FSO = Nothing
End If
%> 

⌨️ 快捷键说明

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