%
Dim objAgent
Dim custErrHtmlPage
custErrHtmlPage = ""
On Error Resume Next
If IsEmpty(Session("Agent")) Then
Set objAgent = Server.CreateObject("WSASP.WSAgent")
If Err Then
strLog = "WSAgent CreateObject: ERROR " & Err.Number
Else
Set Session("Agent") = objAgent
strLog = "WSAgent CreateObject: Successful
"
strLog = strLog & "Version: " & objAgent.Version
End If
Session("Create") = strLog
Else
Set objAgent = Session("Agent")
End If
Select Case Request("Level")
Case "1"
strLog = objAgent.VerifyConfig("1")
Session("Level1") = strLog
Case "2"
If Request("Service") = "(Default)" Then
objAgent.ServiceName = ""
Else
objAgent.ServiceName = Request("Service")
End If
strLog = objAgent.VerifyConfig("2")
Session("Level2") = strLog
Case "3"
If Request("Service") = "(Default)" Then
objAgent.ServiceName = ""
Else
objAgent.ServiceName = Request("Service")
End If
objAgent.RunScript "/Ping"
Session("Level3") = objAgent.Output
End Select
If Request.QueryString = "ProcessErrMsgs" Then
objAgent.ProcessErrorMessages
custErrHtmlPage = objAgent.Output
End If
%>
|
|||||||||||
You currently have no security set on this Active Server Page. This will allow any user
to come in and view your server configuration and modify any custom error pages you may
have generated. It is strongly reccomended that set up access security to this page. You
can do that by following these steps:
|
|
||||||||||
<% Set bc = Server.CreateObject("MSWC.BrowserType") %>
User Account: <%= Request.ServerVariables("LOGON_USER")%> Authorization Type: <%=Request.ServerVariables("AUTH_TYPE")%> Remote Hostname: <%= Request.ServerVariables("REMOTE_HOST")%> Remote Address: <%= Request.ServerVariables("REMOTE_ADDR")%> Browser Type: <%= bc.Browser %> Browser Version: <%= bc.Version %> <% a = CBool(bc.VBScript) If Err Then %> You are using an outdated version of Browser.ini. You can obtain an updated version on the cyScape Web Site <% Else %> Frames: <%= CStr(CBool(bc.Frames)) %> Tables: <%= CStr(CBool(bc.Tables)) %> Cookies: <%= CStr(CBool(bc.cookies)) %> Background Sounds: <%= CStr(CBool(bc.BackgroundSounds)) %> VBScript: <%= CStr(CBool(bc.VBScript)) %> JavaScript: <%= CStr(CBool(bc.Javascript)) %> <% End If %> | |||||||||||
|
|||||||||||
| |||||||||||
|
|||||||||||
<%If custErrHtmlPage <> "" Then%> <%=custErrHtmlPage%> <%Else%> <%=objAgent.CustomizeErrorMessages%> <%End If%> |