July 2000
Intermediate to advanced
492 pages
14h 53m
English
Owner —
objTools.Owner( )
The Owner method returns -1 if the name and password submitted in the HTTP request header matches that of the site's administrator. Otherwise Owner returns 0.
None.
<HTML>
<HEAD><TITLE>Site Tools</TITLE></HEAD>
<BODY>
Please select one of the following tools:<BR>
<A HREF="update.asp">Update Page</A>
<A HREF="comments.asp">Comments Page</A>
<A HREF="search.asp">Search Page</A>
<%
Dim objTools
Set objTools = Server.CreateObject("MSWC.Tools")
' Determine if the current user is the site administrator.
' If so, display a link to the admin tools.
If objTools.Owner = -1 Then
%>
<A HREF="admin.asp">Admin Page</A>
<%
End If
%>
</BODY>
</HTML>This method is implemented only for users of Personal Web Server for Macintosh. For all other server platforms, this method always returns 0.
Read now
Unlock full access