Subversion Repositories DevTools

Rev

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