Subversion Repositories DevTools

Rev

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

Rev Author Line No. Line
5357 dpurdie 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
End If
98
 
99
' Display Access Manager messages - before we kill the session
100
' cookies that identify the message
101
'
102
Call AccessManagerMessage( Request("message") )
103
 
104
' Attempt to kill of old ASPSESSIONID cookies
105
'   Appears that we get one every time we login
106
'   Soluton: Kill them all before we login
107
'
108
If instr(Request.ServerVariables("HTTP_COOKIE"), "ASPSESSIONID") > 0 Then
109
 
110
    Dim Allcookies,i
111
    AllCookies = Split(Request.ServerVariables("HTTP_COOKIE"),";")
112
    For i = 1 to UBound(AllCookies)
113
 
114
        If instr(AllCookies(i), "ASPSESSIONID") > 0 Then
115
            Response.AddHeader "Set-Cookie", Left(AllCookies(i),instr(AllCookies(i),"=") -1) & "=0; path=/;secure;httponly"
116
        End if
117
 
118
    Next
119
End If
120
 
121
'----------------------------------------------
122
%>
123
<html>
124
<head>
125
<title>Release Manager</title>
126
<link rel="shortcut icon" href="<%=FavIcon%>"/>
127
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
128
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
129
<link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
130
<link rel="stylesheet" href="images/navigation.css" type="text/css">
131
<script language="JavaScript" src="images/common.js"></script>
132
 
133
</head>
134
<body leftmargin="0" topmargin="0" onLoad="FormName.user_name.focus();">
135
<!-- HEADER ++++++++++++++++ -->
136
<!--#include file="_header.asp"-->
137
<!-- +++++++++++++++++++++++ -->
138
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
139
<form name="FormName" method="post" action="<%=ScriptName%>" >
140
  <tr>
141
    <td bgcolor="#FFFFFF"><img src="images/spacer.gif" width="1" height="42"></td>
142
  </tr>
143
  <tr>
144
    <td align="center" valign="middle" bgcolor="#FFFFFF">
145
	<!-- LOGIN FROM ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
146
    <table width="570" border="0" cellspacing="0" cellpadding="0">
147
      <tr>
148
        <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>
149
      </tr>
150
    </table>
151
      <table width="570" border="0" cellspacing="0" cellpadding="1">
152
        <tr>
153
          <td background="images/bg_bage_2.gif"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
154
            <tr>
155
              <td bgcolor="#FFFFFF"><table width="100%"  border="0" cellspacing="0" cellpadding="10">
156
                <tr>
157
                  <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>
158
      Please enter your Username and Password. <br>
159
      <hr width="100%" size="1" noshade color="#ACA899">
160
      Forgot your <a href="mailto:<%=ADMIN_EMAIL%>?subject=Request for Password Reset" class="body_link">password</a> ? <br>
161
      New Members please <a href="mailto:<%=ADMIN_EMAIL%>?subject=Request for Release Manager Account" class="body_link">Register</a></td>
162
                </tr>
163
                <tr>
164
                  <td align="center" valign="top">
165
				  <table width="100"  border="0" cellspacing="2" cellpadding="0">
166
                      <tr>
167
                        <td width="10%" nowrap class="form_iname">Username</td>
168
                        <td width="1%"><input name="user_name" type="text" class="form_item" size="20"></td>
169
                      </tr>
170
                      <tr>
171
                        <td nowrap class="form_iname">Password</td>
172
                        <td><input name="user_password" type="password" class="form_item" size="20" <%If objAccessControl.isDevSystem Then Response.write"disabled"%>></td>
173
                      </tr>
174
                      <tr>
175
                        <td nowrap class="form_iname" valign="top">&nbsp;</td>
176
                        <td valign="top">&nbsp;</td>
177
                      </tr>
178
                  </table></td>
179
                </tr>
180
                <tr>
181
                  <td background="images/bg_login.gif">
182
				  <table width="100%"  border="0" cellspacing="0" cellpadding="0">
183
                      <tr>
184
                        <td><%=ProgressBar()%></td>
185
                        <td align="right"><input name="btn" type="submit" class="form_btn" value="Login" onclick="MM_validateForm('user_name','Username','R'<%If NOT objAccessControl.isDevSystem Then Response.write",'user_password','Password','R'"%>);return document.MM_returnValue"></td>
186
                      </tr>
187
                  </table></td>
188
                </tr>
189
              </table>
190
			  </td>
191
            </tr>
192
          </table></td>
193
        </tr>
194
      </table>
195
	  <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
196
	  </td>
197
  </tr>
198
  <tr>
199
    <td bgcolor="#FFFFFF"><img src="images/spacer.gif" width="1" height="42"></td>
200
  </tr>
201
<%=objPMod.ComposeHiddenTags()%>
202
<input type="hidden" name="action" value="true">
203
</form>  
204
</table>
5957 dpurdie 205
<!-- FOOTER -->
5357 dpurdie 206
<!--#include file="_footer.asp"-->
207
</body>
208
</html>