%@ LANGUAGE = VBScript %>
<% Option Explicit %>
<%
On Error Resume Next
%>
<% if Request("Session") = "none" then%>
<%= L_TIMEOUT_TEXT %>
<%= L_REFRESH_TEXT %>
"
Response.write Request.ServerVariables("AUTH_PASSWORD") & "
"
Response.write adminpath & "
"
end if
Set currentobj=GetObject(adminpath)
lasterr = err
if err = &H800401E4 or err = 70 then
Response.Status = "401 access denied"
cont = False
logonfailure = True
else
if err=0 then
cont=True
else
cont=False
logonfailure = False
end if
end if
%>
<% if cont then %>
<%
dim w3svc, site
Set infoobj=GetObject("IIS://localhost/w3svc/info")
if (Request.ServerVariables("INSTANCE_ID")=infoobj.AdminServer) then
Set w3svc = GetObject("IIS://localhost/w3svc")
if err = &H800401E4 or err = 70 then
Session("isAdmin")=False
else
Session("isAdmin") = True
end if
else
Session("isAdmin")=false
end if
if debug then
Response.write err
end if
%>
<%= L_ERROR_TEXT %><%= err %> <%= err.description %> <% end if %> <% end if %> <% end if %> <% end if %>