Subversion Repositories DevTools

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 rsolanki 1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
3
'=====================================================
4
'|                                                   |
3943 dpurdie 5
'|                    INDEX                   |
2 rsolanki 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 -------------------
5299 dpurdie 20
objAccessControl.objOraSession = OraSession	' Create database link for orasession
21
objAccessControl.objOraDatabase = OraDatabase	' Create database link for oradatabase
2 rsolanki 22
'------------ CONDITIONS ----------------------
23
'----------------------------------------------
24
%>
25
<%
26
'----------------------------------------------------------------------------------------------------------------------------------------------
27
Sub Logon ()
3943 dpurdie 28
   On Error Resume Next
29
 
30
   objEH.Try()
31
 
5299 dpurdie 32
   Call objAccessControl.LogonUser ( Request("user_name"), Request("user_password") )
3943 dpurdie 33
 
34
   objEH.Catch()
35
 
2 rsolanki 36
End Sub
37
'----------------------------------------------------------------------------------------------------------------------------------------------
38
Sub AccessManagerMessage ( nMessage )
3943 dpurdie 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
 
2 rsolanki 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
3943 dpurdie 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
2 rsolanki 81
End If
82
 
83
Call AccessManagerMessage( Request("message") )
84
'----------------------------------------------
85
%>
86
<html>
87
<head>
88
<title>Access Manager</title>
89
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
90
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
91
<link href="scripts/access_manager.css" rel="stylesheet" type="text/css">
92
<script language="JavaScript" src="scripts/common.js"></script>
93
 
94
</head>
95
<body background="images/bg_lite_blue.gif" leftmargin="0" topmargin="0" onLoad="FormName.user_name.focus();">
96
<!-- HEADER ++++++++++++++++ -->
97
<!--#include file="_header.asp"-->
98
<!-- +++++++++++++++++++++++ -->
99
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
100
<form name="FormName" method="post" action="<%=SCRIPT_NAME%>" >
101
  <tr>
102
    <td bgcolor="#FFFFFF"><img src="images/spacer.gif" width="1" height="42"></td>
103
  </tr>
104
  <tr>
105
    <td align="center" valign="middle" bgcolor="#FFFFFF">
3943 dpurdie 106
   <!-- LOGIN FROM ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
2 rsolanki 107
      <table width="570" border="0" cellspacing="0" cellpadding="1">
108
        <tr>
109
          <td background="images/bg_bage_2.gif"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
110
            <tr>
111
              <td bgcolor="#FFFFFF"><table width="100%"  border="0" cellspacing="0" cellpadding="10">
112
                <tr>
113
                  <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>
114
      Please enter your Username and Password. <br>
115
      <hr width="100%" size="1" noshade color="#ACA899">
3943 dpurdie 116
      Forgot your <a href="mailto:<%=ADMIN_EMAIL%>?subject=Request for Password Reset" class="body_link">password</a> ? <br>
117
      New Members please <a href="mailto:<%=ADMIN_EMAIL%>?subject=Request for Access Manager Account" class="body_link">Register</a></td>
2 rsolanki 118
                </tr>
119
                <tr>
120
                  <td align="center" valign="top">
3943 dpurdie 121
                    <table width="100"  border="0" cellspacing="2" cellpadding="0">
2 rsolanki 122
                      <tr>
123
                        <td width="10%" nowrap class="form_iname">Username</td>
124
                        <td width="1%"><input name="user_name" type="text" class="form_ivalue" size="20"></td>
125
                      </tr>
126
                      <tr>
127
                        <td nowrap class="form_iname">Password</td>
3943 dpurdie 128
                        <td><input name="user_password" type="password" class="form_ivalue" size="20" <%If objAccessControl.isDevSystem Then Response.write"disabled"%>></td>
2 rsolanki 129
                      </tr>
130
                      <tr>
131
                        <td nowrap class="form_iname" valign="top">&nbsp;</td>
132
                        <td valign="top">&nbsp;</td>
133
                      </tr>
134
                  </table></td>
135
                </tr>
136
                <tr>
137
                  <td background="images/bg_drk_bage_pane.gif">
3943 dpurdie 138
                    <table width="100%"  border="0" cellspacing="0" cellpadding="0">
2 rsolanki 139
                      <tr>
140
                        <td><%=ProgressBar()%></td>
141
                        <td align="right"><input name="btn" type="submit" class="form_btn" value="Login"></td>
142
                      </tr>
143
                  </table></td>
144
                </tr>
3943 dpurdie 145
              </table>          </td>
2 rsolanki 146
            </tr>
147
          </table></td>
148
        </tr>
149
      </table>
3943 dpurdie 150
     <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
151
     </td>
2 rsolanki 152
  </tr>
153
  <tr>
154
    <td bgcolor="#FFFFFF"><img src="images/spacer.gif" width="1" height="42"></td>
155
  </tr>
156
<%=objPMod.ComposeHiddenTags()%>
157
<input type="hidden" name="action" value="true">
158
</form>  
159
</table>
160
<!-- FOOTER ++++++++++++++++++++++ -->
161
<!--#include file="_footer.asp"-->
162
<!-- +++++++++++++++++++++++++++++ -->
163
</body>
164
</html>
165
<%
166
'------------ RUN AFTER PAGE RENDER -----------
167
Set objPMod = Nothing
168
'----------------------------------------------
169
%>
170
<!--#include file="common/globals_destructor.asp"-->