function main_switch() { switch ($_GET["main"]) { case "index": echo ajax_index(); exit; break; case "conf": echo main_conf(); exit; break; case "rlogs": echo main_rlogs(); exit; break; case "nmap-add": echo main_form_add(); exit; break; case "status": echo main_status(); exit; break; case "mysql": echo main_mysql(); exit; break; case "rlogss": echo main_rlogs_parse(); exit; break; case "multiple-roundcube": echo multiple_roundcube(); exit; break; default: main_settings(); break; } }
include_once 'ressources/class.templates.inc'; include_once 'ressources/class.ldap.inc'; include_once 'ressources/class.users.menus.inc'; include_once 'ressources/class.main_cf.inc'; include_once 'ressources/class.fetchmail.inc'; $usersmenus = new usersMenus(); if ($usersmenus->AsPostfixAdministrator == false) { header('location:users.index.php'); exit; } if (isset($_GET["Showlist"])) { echo section_rules_list(); exit; } if (isset($_GET["ajax"])) { ajax_index(); exit; } if (isset($_GET["fetchmail-daemon-rules"])) { echo section_rules_list(); exit; } section_Fetchmail_Daemon(); function section_Fetchmail_Daemon() { $yum = new usersMenus(); $tpl = new templates(); $ini = new Bs_IniHandler(); $sock = new sockets(); $title = "{fetchmail_rules}"; $add_fetchmail = Paragraphe('add-fetchmail-64.png', '{add_new_fetchmail_rule}', '{fetchmail_explain}', "javascript:add_fetchmail_rules()", null, 340);