Blame contrib/monitor/global.asa
|
Packit |
667938 |
<SCRIPT LANGUAGE="VBScript" RUNAT="Server">
|
|
Packit |
667938 |
Sub Session_OnStart
|
|
Packit |
667938 |
' Make sure that new users start on the correct page.
|
|
Packit |
667938 |
startPage = "/default.asp"
|
|
Packit |
667938 |
currentPage = Request.ServerVariables("SCRIPT_NAME")
|
|
Packit |
667938 |
|
|
Packit |
667938 |
' Do a case-insensitive compare, and if they don't match, send the user to the start
|
|
Packit |
667938 |
' page.
|
|
Packit |
667938 |
If strcomp(currentPage,startPage,1) then
|
|
Packit |
667938 |
Response.Redirect(startPage)
|
|
Packit |
667938 |
End If
|
|
Packit |
667938 |
|
|
Packit |
667938 |
End Sub
|
|
Packit |
667938 |
|
|
Packit |
667938 |
|
|
Packit |
667938 |
Sub Session_OnEnd
|
|
Packit |
667938 |
|
|
Packit |
667938 |
' Remove the temp images copied from the mrtg spool directory...
|
|
Packit |
667938 |
Set fs = CreateObject("Scripting.FileSystemObject")
|
|
Packit |
667938 |
fs.DeleteFile "c:\inetpub\monitor.sunnyline.co.za\images\mrtg\" &_
|
|
Packit |
667938 |
Session("DBLINENUMBER") & "-*.gif"
|
|
Packit |
667938 |
|
|
Packit |
667938 |
End Sub
|
|
Packit |
667938 |
|
|
Packit |
667938 |
</SCRIPT>
|