// Author: Jon Belanger
// Date: Nov. 2004
// comments: main index page for BLEAT functions
// start the session
session_start();
include("functions.php");
include("gui.php");
// check if the session username or seclevel are not set
// this would occur if the user was trying to get here without logging in
if (! $_SESSION['username'] | ! $_SESSION['seclevel']) {
redirect("login.php?error=Please Login");
exit(1);
}
// only experts and admins should be on this page
if ($_SESSION['seclevel']=="user") {
redirect("logout.php");
exit(1);
}
// set up HTML meta and ui headers
display_meta($_SESSION['version']);
display_header("BLEAT - ".$_SESSION['server'].":".$_SESSION['port']);
?>
if ($_GET["error"]) {
echo "** ".$_GET["error"];
} else {
echo " ";
}
?>
|