Subversion Repositories DevTools

Rev

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

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