Subversion Repositories DevTools

Rev

Rev 1282 | 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 -------------------
'------------ CONDITIONS ----------------------
'----------------------------------------------
%>
<%
'----------------------------------------------------------------------------------------------------------------------------------------------
Sub Logon ()
   On Error Resume Next
   
   objEH.Try()
   
   Call objAccessControl.LogonUser ( Request("user_name"), Request("user_password"), OraDatabase )
   
   objEH.Catch()
   
End Sub
'----------------------------------------------------------------------------------------------------------------------------------------------
Sub AccessManagerMessage ( nMessage )
   Dim sMessage
   On Error Resume Next
   
   objEH.Try()
      Select Case CInt( nMessage )
         Case 1
            Err.Raise 8, _
                "Application Access Denied !", "Please contact the <a href='mailto:"& ADMIN_EMAIL &"' class='body_link'>Administrator</a> to gain access to this application."
         Case 2
            Err.Raise 8, _
                "Page Access Denied !", "Please contact the <a href='mailto:"& ADMIN_EMAIL &"' class='body_link'>Administrator</a> to gain access to this page."
         Case 3
            Err.Raise 8, _
                "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."
            
         Case 4
            Err.Raise 8, _
                "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."
            
      End Select
   objEH.Catch()
   
End Sub
'----------------------------------------------------------------------------------------------------------------------------------------------
%>
<%
'------------ RUN BEFORE PAGE RENDER ----------
objPMod.PersistInQryString ( aPersistList )

' --- RUN onPostBack ---
If CBool(Request("action")) Then
   Call Logon ()
   
   If objEH.Finally Then
      If Request("rfile") <> "" Then
         Call OpenInWindow ( Request("rfile") &"?LOGIN=ok"& objPMod.ComposeURLWithout("rfile") )
      Else
         Call OpenInWindow ( "Default.asp" )
      End If
      
      
   End If
End If

Call AccessManagerMessage( Request("message") )
'----------------------------------------------
%>
<html>
<head>
<title>Access Manager</title>
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="scripts/access_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.user_name.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="1">
        <tr>
          <td background="images/bg_bage_2.gif"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td bgcolor="#FFFFFF"><table width="100%"  border="0" cellspacing="0" cellpadding="10">
                <tr>
                  <td class="body_txt"><span class="body_h1"><img src="images/i_user_lrg.gif" width="13" height="17" align="absmiddle">&nbsp;Log In</span> <br>
      Please enter your Username and Password. <br>
      <hr width="100%" size="1" noshade color="#ACA899">
      Forgot your <a href="mailto:<%=ADMIN_EMAIL%>?subject=Request for Password Reset" class="body_link">password</a> ? <br>
      New Members please <a href="mailto:<%=ADMIN_EMAIL%>?subject=Request for Access Manager Account" class="body_link">Register</a></td>
                </tr>
                <tr>
                  <td align="center" valign="top">
                    <table width="100"  border="0" cellspacing="2" cellpadding="0">
                      <tr>
                        <td width="10%" nowrap class="form_iname">Username</td>
                        <td width="1%"><input name="user_name" type="text" class="form_ivalue" size="20"></td>
                      </tr>
                      <tr>
                        <td nowrap class="form_iname">Password</td>
                        <td><input name="user_password" type="password" class="form_ivalue" size="20" <%If objAccessControl.isDevSystem Then Response.write"disabled"%>></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_drk_bage_pane.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="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"-->