<A HREF="../HowItWorks/HIWSiteAdmin.asp"><IMG SRC="../images/btssmall.gif" WIDTH="115" HEIGHT="52" ALT="Click here to learn how this page works" BORDER=0></A>
</TD>
</TR>
</TABLE>
<!--END TABLE CONTAINING LOGO AND NAVIGATIONAL LINK -->
<BR>
<BR>
<%
' Only allow access to this page if they have access!
If CanAdminServer() Then
%>
<TABLE WIDTH=90% BORDER=0>
<TR>
<TD>
<CENTER>
<FONT COLOR=#FF0000 SIZE=4><B>Warning!</B></FONT>
<FONT SIZE=3>Please be careful when making changes as you may render the site inaccessible to some users!</FONT>
</CENTER>
</TD>
</TR>
</TABLE>
<P>
<%
' If this is a post of the updated form data then do the appropriate ADSI work
' as well as setting the application-level variables
If Request.QueryString("Update") = "Yes" Then
' SSL Constants from IISCnfg.h
Const ACCESS_SSL = &H8
Const ACCESS_SSL_ALLOW_CERT = &H20
Const ACCESS_SSL_REQUIRE_CERT = &H40
' Authentication constants from IISCnfg.h
Const AUTH_ANON = &H1
Const AUTH_NTLM = &H4
' Get the ADSI objects
Dim oFFDir, oBizDir, oAdminDir, oBenefitsDir
Set oFFDir = GetObject("IIS://localhost/w3svc/1/Root/IISSamples/ExAir/FreqFlyer")
Set oBizDir = GetObject("IIS://localhost/w3svc/1/Root/IISSamples/ExAir/BusinessPartners")
Set oAdminDir = GetObject("IIS://localhost/w3svc/1/Root/IISSamples/ExAir/SiteAdmin")
Set oBenefitsDir = GetObject("IIS://localhost/w3svc/1/Root/IISSamples/ExAir/Benefits")