<?php
$ret = include_once ('./config.php');
$ret or die( "Missing configuration file - please refer to install instructions" );
isset( $_GET['A'] ) && $A = $_GET['A'];
is_array( $_POST ) && extract( $_POST );
is_array( $HTTP_POST_VARS ) && extract( $HTTP_POST_VARS );
if(!isset($A)) $A = "";
//Logon requested - origin: login.php
if( $A == "logon" ) {
require( "./modules/authent/logon.php" );
// show login form
} elseif( $A == "login" ) {
require( "./modules/authent/login.php" );
exit;
}
// if server informations are not in session yet, redirect to login form
if( !session_is_registered("ldapmanager") ) {
require( "./modules/authent/login.php" );
exit;
}
?>
<html>
<head>
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1" />
<title><?php echo $config->appName ?></title>
</head>
<frameset cols="25%,75%">
<frame name="left" src="tree.php" target="right" />
<frame name="right" src="page.default.php" />
</frameset>
</html>