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

明輝手游網(wǎng)中心:是一個(gè)免費(fèi)提供流行視頻軟件教程、在線學(xué)習(xí)分享的學(xué)習(xí)平臺(tái)!

一個(gè)實(shí)用的FSO-實(shí)時(shí)統(tǒng)計(jì)在線人數(shù)

[摘要]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>實(shí)時(shí)統(tǒng)計(jì)在線人數(shù)</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
            '格式化日期、時(shí)間
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中內(nèi)容讀到數(shù)組中
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已經(jīng)存在
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     '統(tǒng)計(jì)總?cè)藬?shù)
%>
<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'登錄時(shí)間




主站蜘蛛池模板: 五月婷婷丁香 | 在线久综合色手机在线播放 | 色婷婷激婷婷深爱五月小说 | 欧美午夜色大片在线观看免费 | 我在修仙世界朝九晚五漫画免费观看 | 色综合天天网 | 唐朝豪放女在线观看 | 天天做天天欢天天爽 | 亚洲v日韩v欧美在线观看 | 亚洲第九页 | 日本叼嗨 | 亚洲五月婷 | 中文字幕网资源站永久资源 | 日韩福利视频高清免费看 | 欧美一级久久 | 日韩在线不卡 | 亚洲成人xxx | 四虎最新永久在线精品免费 | 日韩在线一区视频 | 天天艹天天 | 青青草手机在线 | 婷婷97狠狠的狠狠的爱 | 亚洲精品午夜久久aaa级久久久 | 亚洲最大成人网色 | 五月天天堂 | 四虎影视国产在线观看精品 | 思思久久99热免费精品6 | 欧美一级影院 | 日韩女人毛片在线播放 | 日韩经典欧美精品一区 | 日韩在线2020专区 | 欧美一级三级 | 日韩一区国产二区欧美三区 | 小草cc | 手机看片91 | 欧美一级二级三级视频 | 中文字幕欧美日韩久久 | 天天色天天插 | 日韩午夜伦 | 特级淫片国产免费高清视频 | 自拍三区播 |