Files
status-board/public/index.php
Ben Roberts 35119be9a0 Basic placeholder webui
Adds the bare minimum files to have a functional web interface with
placeholder sidebar, home and admin pages.
2011-12-16 02:17:32 +00:00

21 lines
446 B
PHP

<?php
define('StatusBoard_File', 'index');
require '_inc.php';
try {
$main = StatusBoard_Main::instance();
StatusBoard_LogEntry::setLocalProgname('webui');
$smarty = $main->smarty();
$page = new StatusBoard_Page($smarty, $main->request());
if ($page->evaluate()) {
$smarty->display('index.tpl');
}
} catch (StatusBoard_Exception $e) {
die("Uncaught Exception: " . $e->getMessage());
}
?>