/** * grab parms from URL * */ parse_str($_SERVER['QUERY_STRING']); /** * some settings * */ isset($page) || $page = "home"; // default page to show if (!preg_match("/^[a-zA-Z0-9_\-]+$/", $page)) { sleep(5); header("HTTP/1.0 404 Not Found"); exit; } $page_directory = "pages"; // directory with pages $page_current = "$page_directory/$page.php"; /** * Login * */ session_start(); if(isset($_POST['username']) and isset($_POST['password'])) { $user = $_POST['username']; $pass = $_POST['password']; if($user == $pass) { $_SESSION['user'] = $user; $_SESSION['logged_in'] = true; } } /** * Prepare links */ $spath = dirname($_SERVER['SCRIPT_NAME']); if(strlen($spath) < 2) $spath = ""; ?>

Bacula, the Open Source, Enterprise ready, Network Backup Tool for Linux, Unix, and Windows if(isset($_SESSION['logged_in'])) { printf('
'); printf('Welcome %s, logout here.', $_SESSION['user']); printf('
'); } ?>
The Leading Open Source Backup Solution.
  An ERROR occurred:

The page is not available.

spacer
if(isset($_SESSION['user']) && ($_SESSION['user'] == "bukdebug")) print_r($_SERVER); ?>