SitePath = SITE_BASE . '/private/inc';
$this->AppTitle = 'evilcode.net';
$this->Footer = '© 2006 evilcode.net';
$this->Footer .= ' | Powered by Exhibition.';
$this->Footer .= ' | Hosted by Infernal Hosting.';
# | value of pages that require authentication and their minimum access level
$protected = array();
#$protected[] = array('name' => 'profile', 'level' => 0);
#$protected[] = array('name' => 'admin', 'level' => 1);
$access = (@$_SESSION['user']['access'] === NULL ) ? -1 : $_SESSION['user']['access'];
foreach( $protected as $page ) {
if ($this->Request['page'] == $page['name'] && $access < $page['level'])
Application::HandleHTTPError(403);
}
}
function PrepareContent() {
parent::PrepareContent();
}
}
?>