Example #1
0
function popup_switch()
{
    switch ($_GET["main"]) {
        case "index":
            echo index();
            break;
        case "system":
            echo section_system();
            break;
        case "mail":
            echo section_messaging();
            break;
        case "proxy":
            echo section_proxy();
            break;
        default:
            break;
    }
}
Example #2
0
    exit;
}
if ($users->AsArticaAdministrator == true or $users->AsPostfixAdministrator or $user->AsSquidAdministrator) {
    header('location:admin.index.php');
    exit;
}
if (isset($_GET["admin-tabs"])) {
    main_tabs();
    exit;
}
if (isset($_GET["org"])) {
    section_organization();
    exit;
}
if (isset($_GET["messaging"])) {
    section_messaging();
    exit;
}
OVERVIEWUSER();
function loadhelp()
{
    $tpl = new templates();
    $html = "\n\t<div style='height:300px;padding:5px;border:1px dotted #CCCCCC;overflow:auto;font-size:13px'>{{$_GET["loadhelp"]}}</div>\n\t\n\t";
    echo $tpl->_ENGINE_parse_body($html);
}
function OVERVIEWUSER()
{
    $ou = $_SESSION["ou"];
    $page = CurrentPageName();
    $html = "\n<div id='user-front-end'>{$frontend}</div>\n<script>LoadAjax('user-front-end','{$page}?admin-tabs=yes');</script>";
    $tpl = new template_users("{your_organization}: {$ou}", $html, $_SESSION);