Subversion Repositories computer_asset_manager_v2

Rev

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

Rev 21 Rev 22
Line 61... Line 61...
61
      $DEBUG->writeLog( 1, 'Inside Login' );
61
      $DEBUG->writeLog( 1, 'Inside Login' );
62
      $auth = new Auth( array(  'login page' => $_SERVER['PHP_SELF'], 'logName' => '/tmp/auth.log', 'logLevel' => 5 ) );
62
      $auth = new Auth( array(  'login page' => $_SERVER['PHP_SELF'], 'logName' => '/tmp/auth.log', 'logLevel' => 5 ) );
63
      $DEBUG->writeLog( 3, 'created Auth, values ' . print_r( $auth, true ) );
63
      $DEBUG->writeLog( 3, 'created Auth, values ' . print_r( $auth, true ) );
64
      $_SESSION['authorization information'] = $auth->verifyLogin ( $_REQUEST['password'], $_REQUEST['username'] );
64
      $_SESSION['authorization information'] = $auth->verifyLogin ( $_REQUEST['password'], $_REQUEST['username'] );
65
      if ( $_SESSION['authorization information'] ) {
65
      if ( $_SESSION['authorization information'] ) {
-
 
66
         setupSession();
66
         header ('Location: ' . $_SESSION[ 'app directories' ]['url system']['app root'] );
67
         header ('Location: ' . $_SESSION[ 'app directories' ]['url system']['app root'] );
67
      } // if we logged in
68
      } // if we logged in
68
      $message = 'Unknown Username or Password';
69
      $message = 'Unknown Username or Password';
69
   } // some username was entered
70
   } // some username was entered
70
   session_destroy();
71
//   session_destroy();
71
   
72
   
72
?>
73
?>
73
 
74
 
74
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
75
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
75
<html>
76
<html>