Subversion Repositories DevTools

Rev

Rev 6181 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6181 Rev 6183
Line 10... Line 10...
10
objAccessControl.objOraSession = OraSession	    ' Create database link for orasession
10
objAccessControl.objOraSession = OraSession	    ' Create database link for orasession
11
objAccessControl.objOraDatabase = OraDatabase	' Create database link for oradatabase
11
objAccessControl.objOraDatabase = OraDatabase	' Create database link for oradatabase
12
'----------------------------------------------
12
'----------------------------------------------
13
%>
13
%>
14
<%
14
<%
15
'--------------------------------------------------------------------------------------
-
 
16
' Determine if the website will force users to login
-
 
17
Function isForcedLogon()
-
 
18
    If IsEmpty (Application("ForceLogon")) Then
-
 
19
        isForcedLogon = TRUE
-
 
20
    Else
-
 
21
        isForcedLogon = CBool(Application("ForceLogon"))
-
 
22
   End If
-
 
23
End Function
-
 
24
 
-
 
25
'-----------------------------------------------------------------------------------------------------------------------------
15
'-----------------------------------------------------------------------------------------------------------------------------
26
'   Use the global variables  to control the operation
16
'   Use the global variables  to control the operation
27
'   ForceLogon - Set via global.asa via the Application variable ForceLogon
17
'   ForceLogon - Set via global.asa via the Application variable ForceLogon
28
'   PageLogon -  Can be set on per-page base. Default is TRUE. Only used if ForceLogon is false
18
'   PageLogon -  Can be set on per-page base. Default is TRUE. Only used if ForceLogon is false
29
'
19
'
30
Sub LoginCheck ()
20
Sub LoginCheck ()
31
    If isForcedLogon() Then ForcePageLogon = TRUE
21
    If bGetApplication("ForceLogon", TRUE) Then ForcePageLogon = TRUE
32
    If ForcePageLogon Then
22
    If ForcePageLogon Then
33
        If NOT objAccessControl.UserLogedIn Then  
23
        If NOT objAccessControl.UserLogedIn Then  
34
            objPMod.PersistInQryString ( aPersistList )		' Get all persistant parameters
24
            objPMod.PersistInQryString ( aPersistList )		' Get all persistant parameters
35
            
25
            
36
            If NOT isPopupWindow Then
26
            If NOT isPopupWindow Then