![]() |
|
| |||||||
![]() |
| | Seçenekler |
|
#1
| |||
| | |||
Sitende kim var?Sitende kim var? -------------------------------------------------------------------------------- Kod: <Object Runat="Server" Scope="application" ID="dOnlineUsers" ProgID="Scripting.Dictionary"></Object> <SCRIPT LANGUAGE=VBScript RUNAT=Server> sub Application_OnStart application("ServerStart") = now end sub function Decrypt(sText) Decrypt = sText end function function adZero(sText) if isNull(sText) then exit function adZero = string(5 - len(sText), "0") & sText end function Sub Session_OnStart Session.TimeOut = 5 sAktifUsrList = application("AktifUsrList") sNewUserName = Decrypt(request.cookies("isim")+ request.cookies("soyisim")) if sNewUserName = "" then sNewUserName = "Ziyaretci-" & AdZero(CInt(application("Ziyaretci"))) sLastActionTime = Time sUserInfo = sNewUserName & "<|>" & sLastActionTime & "<|>" & sLastPageViewed dOnlineUsers.Add Session.SessionID, sUserInfo application.lock application("AktifUsr") = application("AktifUsr") + 1 application("Ziyaretci") = application("Ziyaretci") + 1 if application("TodaysDate") <> Date() then application("PageViewsToday") = 0 application("ZiyaretciToday") = 0 end if application("ZiyaretciToday") = application("ZiyaretciToday") + 1 application("TodaysDate") = Date() application.unlock End Sub Sub Session_OnEnd on error resume next dOnlineUsers.Remove Session.SessionID application.lock application("AktifUsr") = application("AktifUsr") - 1 application.unlock End Sub </SCRIPT> |
![]() |
| Seçenekler | |
| |
Benzer Konular | ||||
| Konu | Konu Açanlar | Forum | Cevaplar | Güncel Mesajlar |
| Sitende tam koruma | weyseL | Hazır program kodları | 7 | 16-07-2008 09:34 |
| Sitende kim var? | Miliotta | Asp kodları | 0 | 12-03-2008 03:04 |
| sitende günü gösterme | egitimbilgisi | Javascript kodları | 3 | 29-02-2008 03:51 |
| Sitende gunu goster | weyseL | Hazır program kodları | 0 | 28-02-2008 01:13 |
| Sitende farenin kordinatına bak | rapbusenur | Javascript kodları | 0 | 31-10-2007 06:56 |