home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
221.214.14.186
/
221.214.14.186.tar
/
221.214.14.186
/
wh
/
qim
/
Ft_online.asp
< prev
next >
Wrap
Text File
|
2006-06-01
|
3KB
|
82 lines
<%
'==================================
'=╬─ ╝■ ├√ú║online.asp
'=╩╩╙├░µ▒╛ú║FeitecCMS AC V1.3 Free
'=╣ª ─▄ú║╘┌╧▀╚╦╩²═│╝╞
'=╫≈ ╒▀ú║╙Ω│╟[From to FeitecStudio]
'=╚╒ ╞┌ú║2006-2-19 18:09
'=░µ ╚¿ú║http://www.feitec.com/
'=╝╝╩⌡╠╓┬█ú║6602510íó14040543ú¿╨┬╩╓╚║ú⌐
'▓╬╩²╕ⁿ╕─ú║╨▐╕─35╨╨datediff()║»╩²┐╔╡├═│╝╞╩▒│ñú¼─¼╚╧╬¬1╨í╩▒
'==================================
'OnlineTime=30 '╔Φ╓├╘┌╧▀╩▒│ñú¼│¼╣²┤╦╩▒╝Σú¼╘≥╗ß╔╛│²┤╦╙├╗º╨┼╧óú¼╩▒╝Σ╡Ñ╬╗┐┤║≤├µ╡─║»╩²└┤╚╖╢¿,h▒φ╩╛╨í╩▒,n▒φ╩╛╖╓╓╙
ip = Request.ServerVariables("HTTP_X_FORWARDED_FOR")
if ip = "" then
ip = Request.ServerVariables("REMOTE_ADDR")
end if
strsql = "select * from Ft_online where online_ip = '" & ip & "'"
set rs = conn.Execute (strsql)
struser = "╙╬┐═"
if rs.eof or rs.bof then
strsql = "insert into Ft_online (online_name, online_ip, online_stats, online_lasttime) values ('" & struser & "', '" & ip & "','" & stats & "','" &now()& "')"
conn.Execute (strsql)
else
strsql = "update Ft_online set online_name = '"&struser& "', online_stats='"&stats&"', Online_LastTime = #" &now()&"# where online_ip = '" & ip & "'"
conn.Execute (strsql)
end if
if struser <> "╙╬┐═" then
strsql = "delete from Ft_online where online_name = '" & struser & "' and online_ip <> '" & ip & "'"
conn.Execute (strsql)
end if
strsql = "select online_id, online_lasttime from Ft_online"
set rs = conn.Execute (strsql)
if not (rs.eof or rs.bof) then
do until rs.Eof
if DateDiff("n",rs("online_lasttime"),now())>onlinetime then
strsql = "delete from Ft_online where online_id = " & rs("online_id")
conn.Execute (strsql)
end if
rs.movenext
loop
end if
strsql="select Online_Name from Ft_online"
guest=0
user=0
total=0
username=""
set rs = conn.Execute (strsql)
if rs.eof or rs.bof then
username="╬▐╘┌╧▀╙├╗º"
else
do until rs.Eof
if rs("Online_Name") <> "╙╬┐═" then
user=user+1
username=username+rs("Online_Name")+" "
else
guest = guest+1
end if
rs.movenext
loop
total=user+guest
end if
sql="select online_topnum,online_topdate from Ft_allcount"
set rs2=conn.execute(sql)
online_topnum=rs2("online_topnum")
online_topdate=rs2("online_topdate")
rs2.close
set rs2=nothing
if total>online_topnum then
online_topnum=total
online_topdate=now()
strsql = "update Ft_allcount set online_topnum = '"&total& "', Online_topdate ='" &online_topdate& "'"
conn.Execute (strsql)
end if
strsql = "update Ft_online set online_stats = '" & stats & "' where online_ip = '" & ip & "'"
conn.Execute (strsql)
rs.close
set rs=nothing
%>