<?php
// site wrapper
require_once('config.php');
require_once('classes/sentry.php');
$theSentry = new Sentry();
if (!$theSentry->checkLogin()) {
header("Location: login.php");
die("NO ACCESS");
}
include('includes/boxes.inc');
require('header.php');
// starts content
print "<!-- start content -->";
if(isset($_GET['p']) && !empty($_GET['p'])) {
switch ($_GET['p']) {
case "status_process":
include('status_process.php');
break;
case "sysinfo":
include('sysinfo.php');
break;
case "mrtg":
include('mrtg.php');
break;
case "services":
include('services.php');
break;
case "reboot":
include('reboot.php');
break;
case "test":
include('test.php');
break;
default:
include('sysinfo.php');
}
} else {
include('sysinfo.php');
}
// end content
print "<!-- end content -->";
require('footer.php');
?>