Subversion Repositories computer_asset_manager_v2

Rev

Rev 20 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

<?php
   global $loggingIn;
   $loggingIn = true;
   include_once("header.php");
   if ( isset( $_REQUEST['login'] ) ) {
      $_SESSION["authorization information"] = new Auth( array(  'login page' => $_SERVER['PHP_SELF'] ) );
      if ( $_SESSION["authorization information"]->verifyLogin ( $_REQUEST['login'], $_REQUEST['pass'] ) ) {
         $logginIn = false;
         $_SESSION['file system root'] = dirname($_SERVER['SCRIPT_FILENAME']);
         $_SESSION['html root'] = dirname(parse_url($_SERVER['PHP_SELF'], PHP_URL_PATH));
         header ('Location: ' . $_SESSION['html root'] );
      } // if we logged in
   } // some username was entered
?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

<head>
  <title>Computer Asset Manager - Login</title>
  <meta name="GENERATOR" content="Quanta Plus">
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <script language="javascript" type="text/javascript">
  // <!--
  
  // -->
  </script>
</head>
<body>
       <h1 align='center'>Computer Asset Manager</h1>
       <h4 align='center'>version <?php echo VERSION . '<BR>' . BUILD_DATE; ?></h4>
       <h3 align="center">Daily Data, Inc.</h2>
       <h2 align='center'>Log In</h2>
       <?php if (isset($_REQUEST['message'])) print '<h3  style="color : red; text-align : center;">' . $_REQUEST['message'] . '</h3>'; ?>
<h3 align='center'>Enter your username and password below</h3>
<FORM action="login.html" method="POST" enctype="multipart/form-data">
  <table border="1" cellpadding="2" align="center">
  <tbody>
    <tr>
      <td>User Name</td>
      <td><input type='text' name='login' size='10'></td>
    </tr>
    <tr>
      <td>Password</td>
      <td><input type='password' name='pass' size='10'></td>
    </tr>
    <tr><TD colspan="2" align="center"><INPUT type="submit" name="Login" value="Log In"></TD></tr>
  </tbody>
</table>
</FORM>
</body>
</html>