예제 #1
0
function main_switch()
{
    switch ($_GET["main"]) {
        case "popup-status":
            popup_status();
            exit;
            break;
        case "options":
            popup_options();
            exit;
            break;
        case "options2":
            popup_options2();
            exit;
            break;
        case "yes":
            main_config();
            exit;
            break;
        case "tools":
            echo main_tools();
            exit;
            break;
        case "logs":
            main_logs();
            exit;
            break;
        case "conf":
            echo main_conf();
            exit;
            break;
        case "cyrquota":
            echo main_cyrquota();
            exit;
            break;
        case "cyrusconf":
            echo main_cyrusconf();
            exit;
            break;
        case "mailboxes":
            echo main_mailboxes();
            exit;
            break;
        case "js_rebuild":
            echo js_rebuild();
            exit;
            break;
        case "cyrreconstruct":
            echo popup_cyrreconstruct();
            exit;
            break;
        case "cyrreconstruct_status":
            echo cyrreconstruct_status();
            exit;
            break;
        default:
            main_cyrusconf();
            break;
    }
}
예제 #2
0
function main_switch()
{
    switch ($_GET["main"]) {
        case "rules":
            main_config();
            exit;
            break;
        case "ruleslist":
            echo main_rules_list();
            exit;
            break;
        case "yes":
            main_config();
            exit;
            break;
        case "logs":
            main_logs();
            exit;
            break;
        case "conf":
            echo main_conf();
            exit;
            break;
        case "cyrquota":
            echo main_cyrquota();
            exit;
            break;
        case "cyrusconf":
            echo main_cyrusconf();
            exit;
            break;
        default:
            main_config();
            break;
    }
}