Subversion Repositories DevTools

Rev

Rev 4014 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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