Subversion Repositories DevTools

Rev

Details | Last modification | View Log | RSS feed

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