function popup_start() { if ($_GET["main"] == "global-options") { popup_options(); exit; } if ($_GET["main"] == "yes") { popup_conf_list(); exit; } echo "<div id='main_section_mailman'>"; popup_conf_list(); echo "</div>"; }
exit; } if (isset($_POST["enable-item"])) { item_enable(); exit; } if (isset($_POST["delete-item"])) { item_delete(); exit; } if (isset($_POST["ReloadWebConsole"])) { ReloadWebConsole(); exit; } if (isset($_GET["phpmyadmin-options"])) { popup_options(); exit; } if (isset($_POST["phpmyadminAllowNoPassword"])) { phpmyadminAllowNoPassword(); exit; } js(); function js() { $page = CurrentPageName(); $tpl = new templates(); $title = $tpl->_ENGINE_parse_body("{protect_phpmyadmin}"); $html = "YahooWin4('650','{$page}?popup=yes','{$title}')"; echo $tpl->_ENGINE_parse_body($html); }
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; } }