Subversion Repositories DevTools

Rev

Rev 13 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
13 rsolanki 1
<%
2
'===================================================================
3
'				Access Control for Configuration Pages
4
'===================================================================
5
%>
6
<%
7
'------------ VARIABLE DEFINITION -------------
8
'------------ CONSTANTS DECLARATION -----------
9
'------------ VARIABLE INIT -------------------
10
'----------------------------------------------
11
%>
12
<%
13
'-----------------------------------------------------------------------------------------------------------------------------
14
'-----------------------------------------------------------------------------------------------------------------------------
15
Sub PageAccessCheck ()
16
 
17
	'--- Built In Administrator Override ---
18
	If objAccessControl.UserId = 0 Then
19
		Exit Sub
20
	End If
21
	'---------------------------------------
22
 
23
	If NOT objAccessControl.IsVisible ( "pageApplicationConfiguration" )  Then 
24
		If NOT isPopupWindow Then
25
			Call OpenInWindow ( "Login.asp?message=2&rfile="& SCRIPT_NAME & objPMod.ComposeURLWithout("rfile") )
26
		Else
27
			Call OpenInParentWindow ( "Login.asp?message=2&"& objPMod.ComposeURL() )
28
			Call CloseWindow()
29
		End If
30
	End If
31
 
32
End Sub
33
'-----------------------------------------------------------------------------------------------------------------------------
34
%>
35
<%
36
'------------ RUN BEFORE CONTROL RENDER -------
37
 
38
'--- Check for page access ---
39
Call PageAccessCheck()
40
 
41
'----------------------------------------------
42
%>
43
<%
44
'------------ RUN AFTER CONTROL RENDER --------
45
'----------------------------------------------
46
%>