function tabs() { $tpl = new templates(); $page = CurrentPageName(); $users = new usersMenus(); if (!VerifyRights()) { senderrors("no rights"); } $array["Active Directory"] = "{$page}?activedirectory=yes"; $page = CurrentPageName(); $tpl = new templates(); $t = time(); $boot = new boostrap_form(); echo $boot->build_tab($array); }
<?php if (isset($_GET["verbose"])) { $GLOBALS["VERBOSE"] = true; ini_set('html_errors', 1); ini_set('display_errors', 1); ini_set('error_reporting', E_ALL); } include_once 'ressources/class.templates.inc'; include_once 'ressources/class.ldap.inc'; include_once 'ressources/class.users.menus.inc'; include_once 'ressources/class.mysql.inc'; if (!VerifyRights()) { $tpl = new templates(); echo "alert('" . $tpl->javascript_parse_text("{ERROR_NO_PRIVS}") . "');"; die; exit; } if (isset($_GET["popup"])) { popup(); exit; } js(); function js() { $page = CurrentPageName(); $tpl = new templates(); $ou = urlencode($_GET["ou"]); $add_a_subdomain = $tpl->_ENGINE_parse_body("{add_a_subdomain}"); $html = "YahooWin4(650,'{$page}?popup=yes&ou={$ou}','{$add_a_subdomain}');"; echo $html;
function tabs() { $tpl = new templates(); if ($_SESSION["ou"] != null) { $subtitle = ":{$_SESSION["ou"]}"; } $users = new usersMenus(); if ($users->AsPostfixAdministrator) { $subtitle = null; } if (!isset($_GET["notitle"])) { echo $tpl->_ENGINE_parse_body("<H3>{localdomains}{$subtitle}</H3><p>{localdomains_text}</p>"); } if (!VerifyRights()) { throw new Exception("No rights", 500); die; } $page = CurrentPageName(); $users = new usersMenus(); $LOCAL_MDA = false; if ($users->cyrus_imapd_installed) { $LOCAL_MDA = true; } if ($users->ZARAFA_INSTALLED) { $LOCAL_MDA = true; } $array["{local_domains}"] = "{$page}?localdomain-section=yes"; if ($users->POSTFIX_INSTALLED) { $array["{remote_domains}"] = "{$page}?remotedomain-section=yes"; if (!$LOCAL_MDA) { unset($array["{local_domains}"]); } } $page = CurrentPageName(); $tpl = new templates(); $t = time(); $boot = new boostrap_form(); echo $boot->build_tab($array); }
function tabs() { $tpl = new templates(); if ($_SESSION["ou"] != null) { $subtitle = ":{$_SESSION["ou"]}"; } $users = new usersMenus(); if (!VerifyRights()) { senderrors("no rights"); } $array["{infrastructure}"] = "miniadm.messaging.infrastructure.php?tabs=yes"; $array["{domains}"] = "miniadm.messaging.domains.php?tabs=yes"; $array["{archive_module}"] = "miniadmin.postfix.archive.php?popup=yes&title=yes"; $array["{events}"] = "miniadmin.postfix.events.php?section=yes"; $page = CurrentPageName(); $tpl = new templates(); $t = time(); $boot = new boostrap_form(); echo $boot->build_tab($array); }