Subversion Repositories DevTools

Rev

Rev 13 | Blame | Compare with Previous | Last modification | View Log | RSS feed

<%@LANGUAGE="VBSCRIPT"%>
<%
'=====================================================
'|                                                   |
'|                                        INDEX                                          |
'|                                                   |
'=====================================================
%>
<%
Option explicit
Response.Expires = 0
%>
<!--#include file="common/globals.asp"-->
<!--#include file="common/config.asp"-->
<!--#include file="common/common_subs.asp"-->
<%
'------------ VARIABLE DEFINITION -------------
'------------ CONSTANTS DECLARATION -----------
'------------ VARIABLE INIT -------------------
objAccessControl.objOraSession = OraSession     ' Create database link for orasession
objAccessControl.objOraDatabase = OraDatabase   ' Create database link for oradatabase
'------------ CONDITIONS ----------------------
'----------------------------------------------
%>
<%
'----------------------------------------------------------------------------------------------------------------------------------------------
Sub Logon ()
        'On Error Resume Next
        
        objEH.Try()
        
        Call objAccessControl.LogonUser ( Request("user_name"), Session(enumUSER_TEMP_VARIABLE) )
        
        objEH.Catch()
        
End Sub
'----------------------------------------------------------------------------------------------------------------------------------------------
Sub UpdatePassword ()
        
        On Error Resume Next
        
        objEH.Try()
        
        Call objAccessControl.SetPassword ( Request("user_name"), Session(enumUSER_TEMP_VARIABLE), Request("cpassword") )
        
        objEH.Catch()
        
End Sub
'----------------------------------------------------------------------------------------------------------------------------------------------
%>
<%
'------------ RUN BEFORE PAGE RENDER ----------
objPMod.PersistInQryString ( aPersistList )

' --- RUN onPostBack ---
If CBool(Request("action")) Then
        Call UpdatePassword ()
        
        Call Logon ()
        
        If objEH.Finally Then
                ' Clean Temp Session Variable
                Session.Contents.Remove(enumUSER_TEMP_VARIABLE)
                
                If Request("rfile") <> "" Then
                        Call OpenInWindow ( Request("rfile") &"?LOGIN=ok"& objPMod.ComposeURLWithout("rfile") )
                Else
                        Call OpenInWindow ( "index.asp" )
                End If
                
        End If
End If

'----------------------------------------------
%>
<html>
<head>
<title>Deployment Manager</title>
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="scripts/deployment_manager.css" rel="stylesheet" type="text/css">
<script language="JavaScript" src="scripts/common.js"></script>

</head>
<body background="images/bg_lite_blue.gif" leftmargin="0" topmargin="0" onLoad="FormName.cpassword.focus();">
<!-- HEADER ++++++++++++++++ -->
<!--#include file="_header.asp"-->
<!-- +++++++++++++++++++++++ -->
<table width="100%"  border="0" cellspacing="0" cellpadding="0">
<form name="FormName" method="post" action="<%=SCRIPT_NAME%>" >
  <tr>
    <td bgcolor="#FFFFFF"><img src="images/spacer.gif" width="1" height="42"></td>
  </tr>
  <tr>
    <td align="center" valign="middle" bgcolor="#FFFFFF">
        <!-- LOGIN FROM ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
    <table width="570" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <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>
      </tr>
    </table>
      <table width="570" border="0" cellspacing="0" cellpadding="1">
        <tr>
          <td background="images/bg_bage_2.gif"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td background="images/bg_form.gif"><table width="100%"  border="0" cellspacing="0" cellpadding="10">
                <tr>
                  <td class="body_txt"><span class="body_h1"><img src="icons/i_user_lrg.gif" width="13" height="17" align="absmiddle">&nbsp;Update Password</span> <br>
      Please confirm your password. <br>
      <hr width="100%" size="1" noshade color="#ACA899"></td>
                </tr>
                <tr>
                  <td align="center" valign="top">
                                  <table width="100"  border="0" cellspacing="2" cellpadding="0">
                      <tr>
                        <td nowrap class="form_iname">Confirm Password</td>
                        <td><input name="cpassword" type="password" class="form_ivalue" size="20"></td>
                      </tr>
                      <tr>
                        <td nowrap class="form_iname" valign="top">&nbsp;</td>
                        <td valign="top">&nbsp;</td>
                      </tr>
                  </table></td>
                </tr>
                <tr>
                  <td background="images/bg_login.gif">
                                  <table width="100%"  border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td><%=ProgressBar()%></td>
                        <td align="right"><input name="btn" type="submit" class="form_btn" value="Login"></td>
                      </tr>
                  </table></td>
                </tr>
              </table>
                          </td>
            </tr>
          </table></td>
        </tr>
      </table>
          <!-- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
          </td>
  </tr>
  <tr>
    <td bgcolor="#FFFFFF"><img src="images/spacer.gif" width="1" height="42"></td>
  </tr>
<%=objPMod.ComposeHiddenTags()%>
<input type="hidden" name="user_name" value="<%=Request("user_name")%>">
<input type="hidden" name="action" value="true">
</form>  
</table>
<!-- FOOTER ++++++++++++++++++++++ -->
<!--#include file="_footer.asp"-->
<!-- +++++++++++++++++++++++++++++ -->
</body>
</html>
<%
'------------ RUN AFTER PAGE RENDER -----------
Set objPMod = Nothing
'----------------------------------------------
%>
<!--#include file="common/globals_destructor.asp"-->