示例#1
0
    if ($lancount <= 1) {
        $languageswitcher = '';
    }
}
require_once dirname(__FILE__) . '/setpermissions.php';
$include = '';
if ($page != '' && $page != 'install') {
    preg_match("/([\\w_]+)/", $page, $regs);
    $include = $regs[1];
    $include .= ".php";
    $include = $page . ".php";
} else {
    $include = $GLOBALS['homepage'] . ".php";
}
$pageinfo = new pageInfo();
$pageinfo->fetchInfoContent($include);
if (is_file('ui/' . $GLOBALS['ui'] . "/mainmenu.php")) {
    include 'ui/' . $GLOBALS['ui'] . "/mainmenu.php";
}
if (!$ajax) {
    if (USE_MINIFIED_ASSETS && file_exists(dirname(__FILE__) . '/ui/' . $GLOBALS['ui'] . '/header_minified.inc')) {
        include 'ui/' . $GLOBALS['ui'] . "/header_minified.inc";
    } else {
        include 'ui/' . $GLOBALS['ui'] . "/header.inc";
    }
}
if (!$ajax) {
    print '<h4 class="pagetitle">' . mb_strtolower($page_title) . '</h4>';
}
if ($GLOBALS["require_login"] && $page != "login") {
    if ($page == 'logout') {