aspclassiccompiler/aspclassiccompiler/Backup/AspWebApp/components/PermissionCheck.Asp
2022-05-15 09:33:41 +02:00

38 lines
1 KiB
Text

<%@ Language = VBScript%>
<% Option Explicit %>
<!*************************
This sample is provided for educational purposes only. It is not intended to be
used in a production environment, has not been tested in a production environment,
and Microsoft will not provide technical support for it.
*************************>
<HTML>
<HEAD>
<TITLE>Permission Checker</TITLE>
</HEAD>
<BODY BGCOLOR="White" TOPMARGIN="10" LEFTMARGIN="10">
<!-- Display header. -->
<FONT SIZE="4" FACE="ARIAL, HELVETICA">
<B>Permission Checker</B></FONT><BR>
<%
'Instantiate Permission Checker Component.
Dim objPermCheck
Set objPermCheck = Server.CreateObject("MSWC.PermissionChecker")
%>
<P>Verify current user's access to a sample file:
<P>Using Physical Path =
<%= objPermCheck.HasAccess(".\PermissionCheck_VBScript.asp") %> <BR>
<P>Using Virtual Path =
<%= objPermCheck.HasAccess("/iissamples/sdk/asp/components/PermissionCheck_VBScript.asp") %>
</BODY>
</HTML>