Ce site est optimisé en 800 x 600, doit être visualisé avec la version d'internet Explorer 4 et +
et nécessite le plugiciel flash.

 
© Macogep inc 2002
<% IPAddress = Request.ServerVariables("REMOTE_ADDR") IF IPAddress = "206.47.47.98" OR IPAddress = "206.47.47.99" THEN ' Rien faire ELSE 'Dimension variables Dim fsoObject 'File System Object Dim tsObject 'Text Stream Object Dim filObject 'File Object Dim lngVisitorNumber 'Holds the visitor number Dim intWriteDigitLoopCount 'Loop counter to display the graphical hit count 'Create a File System Object variable Set fsoObject = Server.CreateObject("Scripting.FileSystemObject") 'Initialise a File Object with the path and name of text file to open Set filObject = fsoObject.GetFile(Server.MapPath("hit_count.txt")) 'Set filObject = fsoObject.GetFile("hit_count.txt") 'Open the visitor counter text file Set tsObject = filObject.OpenAsTextStream 'Read in the visitor number from the visitor counter file lngVisitorNumber = CLng(tsObject.ReadAll) 'Increment the visitor counter number by 1 lngVisitorNumber = lngVisitorNumber + 1 'Create a new visitor counter text file over writing the previous one Set tsObject = fsoObject.CreateTextFile(Server.MapPath("hit_count.txt")) 'Write the new visitor number to the text file tsObject.Write CStr(lngVisitorNumber) 'Display the hit count as text 'Response.Write(lngVisitorNumber) 'Make log file = append dim fs,f,log set fs=Server.CreateObject("Scripting.FileSystemObject") set f=fs.OpenTextFile(Server.MapPath("hit_log.txt"),8,true) log = now() & ", " & "IP = " & IPAddress f.WriteLine(log) f.Close set f=Nothing set fs=Nothing 'Reset server objects Set fsoObject = Nothing Set tsObject = Nothing Set filObject = Nothing END IF %>