六月婷婷综合激情-六月婷婷综合-六月婷婷在线观看-六月婷婷在线-亚洲黄色在线网站-亚洲黄色在线观看网站

明輝手游網中心:是一個免費提供流行視頻軟件教程、在線學習分享的學習平臺!

一個實用的FSO-實時統計在線人數

[摘要]count.asp:<%Server.ScriptTimeout=300id=Trim(Request.QueryString("id"))fc=Trim(Request.QueryString("fc"))if fc="" the...

count.asp:

<%Server.ScriptTimeout=300
id=Trim(Request.QueryString("id"))
fc=Trim(Request.QueryString("fc"))
if fc="" then fc="FFFF00"
bg=Trim(Request.QueryString("bg"))
if bg="" then bg="000000"
bc=Trim(Request.QueryString("bc"))
if bc="" then bc="00FF00"
sername=Request.ServerVariables("SERVER_NAME")
scrname=Request.ServerVariables("SCRIPT_NAME")
linkurl="http://" & sername & scrname
%>
<html>
<head>
<title>實時統計在線人數</title>
<META HTTP-EQUIV="Refresh" content="10; URL=<%=linkurl%>">       '每隔10秒刷新
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style TYPE="text/css">
<!--
P {FONT-SIZE: 9pt; font-color: #eeeeee}
A {TEXT-DECORATION: none}
A:link {COLOR: #0068A3}
A:visited {COLOR: #0068A3}
A:hover {COLOR: #2f00ff; TEXT-DECORATION: underline}
.ourfont {font-size: 9pt }
BODY { FONT-SIZE: 9pt}
TABLE { FONT-SIZE: 9pt}
-->
</style>
</head>
<%
countfile=server.mappath("people.asp")
Set fs=CreateObject("Scripting.FileSystemObject")
n=Year(date())
y=Month(date())
r=Day(date())
s=Hour(time())
f=Minute(time())
m=Second(time())
if len(y)=1 then y="0" & y
if len(r)=1 then r="0" & r
if len(s)=1 then s="0" & s
if len(f)=1 then f="0" & f
if len(m)=1 then m="0" & m
sj = n & "-" & y & "-" & r & " " & s & ":" & f & ":" & m
            '格式化日期、時間
dim ly()
Set thisfile=fs.OpenTextFile(countfile,1,False)
countly=0
do while not thisfile.AtEndOfStream
thisline = thisfile.readline
Redim preserve ly(countly)
ly(countly) = thisline
countly = countly + 1
loop                '將people.asp中內容讀到數組中
thisfile.close
sameip=0
for i=1 to (countly-1)/2
if DateDiff("s",ly(i*2),sj)>60 then
ly(i*2-1)=""
ly(i*2)=""
countly=countly-2
end if
if Request.ServerVariables("REMOTE_ADDR")=ly(i*2-1) then
sameip=1                 'IP已經存在
ly(i*2)=sj
end if
next
set outfile=fs.CreateTextFile(countfile)
for i=0 to countly-1
if ly(i)<>"" then
outfile.WriteLine ly(i)
end if
next
if sameip=0 then
outfile.WriteLine Request.ServerVariables("REMOTE_ADDR")
outfile.WriteLine sj  '添加新記錄
outfile.Close
end if
Set thisfile=fs.OpenTextFile(countfile,1,False)
countly=0
do while not thisfile.AtEndOfStream
thisline = thisfile.readline
Redim preserve ly(countly)
ly(countly) = thisline
countly = countly + 1
loop
thisfile.close
total=(countly-1)/2     '統計總人數
%>
<body>

<p><select name="Online" size="1">
 <option selected value="Online"><%=total%>人在線上</option>
<%
for i=1 to total
response.write "<option>"&ly(i*2-1)&"</option>"
next
%>
</select></p>
</body>
</html>

people.asp:

<%Response.end%>
172.16.20.230'用戶IP
2003-06-15 09:53:57'登錄時間




主站蜘蛛池模板: 四虎tv| 色香欲综合成人免费视频 | 性大特级毛片视频 | 午夜三级成人三级 | 亚洲成a人片在线观看导航 亚洲成a人片在线观看播放 | 青草免费免费观看视频在线 | 亚洲高清视频在线 | 日韩午夜精品 | 又粗又大又长又爽免费视频 | 日韩中文字幕精品视频在线 | 最好免费高清视频观看韩国 | 新版天堂中文资源官网 | 三级中文有码中文字幕 | 性做久久久久久久 | 我要色综合网 | 新男人皇宫亚洲男人 | 天天看片天天操 | 日本免费色 | 天天影视色 | 在线青青| 亚洲欧美日韩精品一区 | 日本一区高清视频 | 色播五月婷婷 | 日韩欧美精品综合久久 | 西瓜影院日韩大片在线观看 | 亚洲青青草原 | 日本大片在线观看 | 色综合久久婷婷天天 | 亚洲精品国产综合久久一线 | 日本v片免费一区二区三区 日本vs欧美一区二区三区 | 羞羞色院91网站 | 我要看免费一级毛片 | 欧美一级淫片aaaaaaa视频 | 青青青国产精品手机在线观看 | 欧美在线视频不卡 | 在线观看91 | 亚洲影音 | 日日干日日爽 | 在线视频一区二区日韩国产 | 日韩城人网 | 香蕉网站在线 |