home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
221.214.14.186
/
221.214.14.186.tar
/
221.214.14.186
/
zb
/
11
/
counter.asp
< prev
next >
Wrap
Text File
|
2003-11-02
|
2KB
|
60 lines
<%
mode = LCASE(Request("mode"))
gif = Request("gif")
SET rs = Server.CreateObject("ADODB.Recordset")
Rs.Open "Select * From counters" ,conn,1,3
if Request.Cookies("IsFirst")=fail then
LASTIP = RS("LASTIP")
NEWIP = REQUEST.servervariables("REMOTE_ADDR")
IF CSTR(Month(RS("DATE"))) <> CSTR(Month(DATE())) THEN
RS("DATE") = DATE()
RS("YESTERDAY") = RS("TODAY")
RS("BMONTH") = RS("MONTH")
RS("MONTH") = 1
RS("TODAY") = 1
RS.Update
ELSE
IF CSTR(Day(RS("DATE"))) <> CSTR(Day(DATE())) THEN
RS("DATE") = DATE()
RS("YESTERDAY") = RS("TODAY")
RS("TODAY") = 1
RS.Update
END IF
response.Cookies("IsFirst")=true
RS("TOTAL") = RS("TOTAL") + 1
END IF
RS("TOTAL") = RS("TOTAL") + 1
RS("TODAY") = RS("TODAY") + 1
RS("MONTH") = RS("MONTH") + 1
RS.Update
Session("UserID")=RS("TOTAL")
end if
N = Now
D1 = #6/27/2001# ' ┐¬╩╝═│╝╞╚╒╞┌(╘┬/╚╒/─Ω)
D2 = DateValue(N)
D3 = DateDiff("d", D1, D2)
response.write "▒╛╒╛╫▄╖├╬╩ú║"
GCounter( RS("TOTAL") )
response.write " ╚╦"
response.write "<br>"
rs.Close
response.write "╡▒╟░╙╨ <img src='OnlineCount.asp'> ╚╦╘┌╧▀"
response.write "<br>"
Function GCounter( counter )
Dim S, i, G
S = CStr( counter )
For i = 1 to Len(S)
G = G & "<IMG SRC=counter/" & Mid(S, i, 1) & ".gif Align=middle>"
Next
response.write G
End Function
%>