session_start();
ob_start();
require_once("includes/db_connect.php");
require_once("includes/functions.php");
?>
if ($HTTP_SESSION_VARS["UserID"] == "") { ?>
} else { ?>
} ?>
if ($HTTP_HOST == "fdcscdev.dbestern.net") { ?>
Development database
} ?>
|
require("includes/rightnavlogin.php") ?>
|
|
require("includes/topnavpowerbar.php"); ?>
|
if ($HTTP_SESSION_VARS["UserID"] == "") {
?>
|
require("includes/leftnav.php") ?>
|
}
?>
$command = $_GET["command"];
# login or create
if ($command == "newuserreg") {
require("newuserreg.php");
} elseif ($command == "addboxen") {
require("addboxen.php");
} elseif ($command == "updateboxen") {
require("updateboxen.php");
} elseif ($command == "morestats") {
require("morestats.php");
} elseif ($command == "manageboxen") {
require("manageboxen.php");
} elseif ($command == "detail") {
require("detail.php");
} elseif ($command == "logout") {
session_unset();
session_destroy();
# attempt a redirect
header("Location: $SCRIPT_NAME?");
} elseif ($command == "listproject") {
require("projectlisting.php");
} elseif ($command == "todo") {
echo "\n";
require("todo.txt");
echo "\n";
} elseif ($command == "admin") {
require("admin/adminmenu.php");
} elseif ($command == "info") {
phpinfo();
} else {
require("projectlisting.php");
}
?>
|
|
if ($HTTP_SESSION_VARS["UserID"] != "") {
} else {
?>
require("includes/rightnavbar.php") ?>
require("includes/rightnavprojrank.php") ?>
|
}
?>
 |
|