Subversion Repositories DevTools

Rev

Rev 5354 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
5354 dpurdie 1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
3
'=====================================================
4
'|                                                   |
5
'|                    INDEX                   |
6
'|                                                   |
7
'=====================================================
8
%>
9
<%
10
Option explicit
11
Response.Expires = 0
12
%>
13
<!--#include file="common/globals.asp"-->
14
<!--#include file="common/config.asp"-->
15
<!--#include file="common/common_subs.asp"-->
16
<%
17
'------------ VARIABLE DEFINITION -------------
18
'------------ CONSTANTS DECLARATION -----------
19
'------------ VARIABLE INIT -------------------
20
objAccessControl.objOraSession = OraSession	' Create database link for orasession
21
objAccessControl.objOraDatabase = OraDatabase	' Create database link for oradatabase
22
'------------ CONDITIONS ----------------------
23
'----------------------------------------------
24
%>
25
<%
26
'----------------------------------------------------------------------------------------------------------------------------------------------
27
Sub Logon ()
28
   On Error Resume Next
29
 
30
   objEH.Try()
31
 
32
   Call objAccessControl.LogonUser ( Request("user_name"), Request("user_password") )
33
 
34
   objEH.Catch()
35
 
36
End Sub
37
'----------------------------------------------------------------------------------------------------------------------------------------------
38
Sub AccessManagerMessage ( nMessage )
39
   Dim sMessage
40
   On Error Resume Next
41
 
42
   objEH.Try()
43
      Select Case CInt( nMessage )
44
         Case 1
45
            Err.Raise 8, _
46
            	"Application Access Denied !", "Please contact the <a href='mailto:"& ADMIN_EMAIL &"' class='body_link'>Administrator</a> to gain access to this application."
47
         Case 2
48
            Err.Raise 8, _
49
            	"Page Access Denied !", "Please contact the <a href='mailto:"& ADMIN_EMAIL &"' class='body_link'>Administrator</a> to gain access to this page."
50
         Case 3
51
            Err.Raise 8, _
52
            	"Application is Off-Line !", "This application is currently off-line for maintenance. <br>Contact the <a href='mailto:"& ADMIN_EMAIL &"' class='body_link'>Administrator</a> for further details."
53
 
54
         Case 4
55
            Err.Raise 8, _
56
            	"You are Not Authorised !", "You are not authorised to perform this action. <br>Contact the <a href='mailto:"& ADMIN_EMAIL &"' class='body_link'>Administrator</a> for further details."
57
 
58
      End Select
59
   objEH.Catch()
60
 
61
End Sub
62
'----------------------------------------------------------------------------------------------------------------------------------------------
63
%>
64
<%
65
'------------ RUN BEFORE PAGE RENDER ----------
66
objPMod.PersistInQryString ( aPersistList )
67
 
68
' --- RUN onPostBack ---
69
If CBool(Request("action")) Then
70
   Call Logon ()
71
 
72
   If objEH.Finally Then
73
      If Request("rfile") <> "" Then
74
         Call OpenInWindow ( Request("rfile") &"?LOGIN=ok"& objPMod.ComposeURLWithout("rfile") )
75
      Else
76
         Call OpenInWindow ( "Default.asp" )
77
      End If
78
 
79
 
80
   End If
81
End If
82
 
83
Call AccessManagerMessage( Request("message") )
84
'----------------------------------------------
85
%>
86
<html>
87
<head>
88
<title>Access Manager</title>
89
<link rel="shortcut icon" href="<%=FavIcon%>"/>
90
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
91
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
92
<link href="scripts/access_manager.css" rel="stylesheet" type="text/css">
93
<script language="JavaScript" src="scripts/common.js"></script>
94
 
95
</head>
96
<body background="images/bg_lite_blue.gif" leftmargin="0" topmargin="0" onLoad="FormName.user_name.focus();">
97
<!-- HEADER ++++++++++++++++ -->
98
<!--#include file="_header.asp"-->
99
<!-- +++++++++++++++++++++++ -->
100
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
101
<form name="FormName" method="post" action="<%=SCRIPT_NAME%>" >
102
  <tr>
103
    <td bgcolor="#FFFFFF"><img src="images/spacer.gif" width="1" height="42"></td>
104
  </tr>
105
  <tr>
106
    <td align="center" valign="middle" bgcolor="#FFFFFF">
107
   <!-- LOGIN FROM ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
108
      <table width="570" border="0" cellspacing="0" cellpadding="1">
109
        <tr>
110
          <td background="images/bg_bage_2.gif"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
111
            <tr>
112
              <td bgcolor="#FFFFFF"><table width="100%"  border="0" cellspacing="0" cellpadding="10">
113
                <tr>
114
                  <td class="body_txt"><span class="body_h1"><img src="images/i_user_lrg.gif" width="13" height="17" align="absmiddle">&nbsp;Log In</span> <br>
115
      Please enter your Username and Password. <br>
116
      <hr width="100%" size="1" noshade color="#ACA899">
117
      Forgot your <a href="mailto:<%=ADMIN_EMAIL%>?subject=Request for Password Reset" class="body_link">password</a> ? <br>
118
      New Members please <a href="mailto:<%=ADMIN_EMAIL%>?subject=Request for Access Manager Account" class="body_link">Register</a></td>
119
                </tr>
120
                <tr>
121
                  <td align="center" valign="top">
122
                    <table width="100"  border="0" cellspacing="2" cellpadding="0">
123
                      <tr>
124
                        <td width="10%" nowrap class="form_iname">Username</td>
125
                        <td width="1%"><input name="user_name" type="text" class="form_ivalue" size="20"></td>
126
                      </tr>
127
                      <tr>
128
                        <td nowrap class="form_iname">Password</td>
129
                        <td><input name="user_password" type="password" class="form_ivalue" size="20" <%If objAccessControl.isDevSystem Then Response.write"disabled"%>></td>
130
                      </tr>
131
                      <tr>
132
                        <td nowrap class="form_iname" valign="top">&nbsp;</td>
133
                        <td valign="top">&nbsp;</td>
134
                      </tr>
135
                  </table></td>
136
                </tr>
137
                <tr>
138
                  <td background="images/bg_drk_bage_pane.gif">
139
                    <table width="100%"  border="0" cellspacing="0" cellpadding="0">
140
                      <tr>
141
                        <td><%=ProgressBar()%></td>
142
                        <td align="right"><input name="btn" type="submit" class="form_btn" value="Login"></td>
143
                      </tr>
144
                  </table></td>
145
                </tr>
146
              </table>          </td>
147
            </tr>
148
          </table></td>
149
        </tr>
150
      </table>
151
     <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
152
     </td>
153
  </tr>
154
  <tr>
155
    <td bgcolor="#FFFFFF"><img src="images/spacer.gif" width="1" height="42"></td>
156
  </tr>
157
<%=objPMod.ComposeHiddenTags()%>
158
<input type="hidden" name="action" value="true">
159
</form>  
160
</table>
161
<!-- FOOTER ++++++++++++++++++++++ -->
162
<!--#include file="_footer.asp"-->
163
<!-- +++++++++++++++++++++++++++++ -->
164
</body>
165
</html>
166
<%
167
'------------ RUN AFTER PAGE RENDER -----------
168
Set objPMod = Nothing
169
'----------------------------------------------
170
%>
2 rsolanki 171
<!--#include file="common/globals_destructor.asp"-->