Exemplo n.º 1
0
function security()
{
    $datas = GET_CACHED(__FILE__, __FUNCTION__, null, TRUE);
    if ($datas != null) {
        return $datas;
    }
    $failedtext = "{ERROR_NO_PRIVILEGES_OR_PLUGIN_DISABLED}";
    $page = CurrentPageName();
    $users = new usersMenus();
    $users->LoadModulesEnabled();
    $tls = Buildicon64("DEF_ICO_POSTFIX_TLS");
    $security_rules = Paragraphe('folder-rules-64.png', '{security_rules}', '{security_rules_text}', "javascript:Loadjs('postfix.security.rules.php?js=yes')", null, 210, null, 0, true);
    $apply = applysettings_postfix(true);
    $messages_restriction = Paragraphe('folder-message-restriction.png', '{messages_restriction}', '{messages_restriction_text}', "javascript:Loadjs('postfix.messages.restriction.php?script=yes')", null, 210, null, 0, true);
    $sasl = Paragraphe('64-smtp-auth.png', '{SASL_TITLE}', '{SASL_TEXT}', "javascript:Loadjs('postfix.index.php?script=auth');", null, 210, null, 0, true);
    $internet_deny = Paragraphe('64-internet-deny.png', '{INTERNET_DENY}', '{INTERNET_DENY_TEXT}', "javascript:Loadjs('postfix.internet.deny.php')", null, 210, 100, 0, true);
    $ssl = Paragraphe('folder-64-routing-secure.png', '{SSL_ENABLE}', '{SSL_ENABLE_TEXT}', "javascript:Loadjs('postfix.master.cf.php?script=ssl');", null, 210, null, 0, true);
    $global_smtp_rules = Buildicon64('DEF_ICO_POSTFIX_REGEX');
    $smtpd_client_restrictions = Paragraphe('64-sender-check.png', '{smtpd_client_restrictions_icon}', '{smtpd_client_restrictions_icon_text}', "javascript:Loadjs('postfix.smtpd_client_restrictions.php')", null, 210, null, 0, true);
    $ou_encoded = base64_encode("_Global");
    $extensions_block = Paragraphe("bg_forbiden-attachmt-64.png", "{attachment_blocking}", "{attachment_blocking_text}", "javascript:Loadjs('domains.edit.attachblocking.ou.php?ou={$ou_encoded}')", null, 210, null, 0, true);
    $plugins_activate = Paragraphe('folder-lego.png', '{POSTFIX_BUNDLE}', '{POSTFIX_BUNDLE_TEXT}', "javascript:Loadjs('postfix.plugins.php?script=yes')", null, 210, 100, 0, true);
    $postfixInstantIptables = Buildicon64("DEF_ICO_MAIL_IPABLES");
    $backup = icon_backup();
    $html = "\n<div style='width:700px'>\n<table style='width:100%'>\n<tr>\n<td valign='top'>{$backup}</td>\n<td valign='top'>{$tls}</td>\n<td valign='top'>{$security_rules}</td>\n</tr>\n<tr>\n<td valign='top'>{$apply}</td>\n<td valign='top'>{$messages_restriction}</td>\n<td valign='top'>{$smtpd_client_restrictions}</td>\n</tr>\n<tr>\n<td valign='top'>{$sasl}</td>\n<td valign='top'>{$ssl}</td>\n<td valign='top'>{$internet_deny}</td>\n</tr>\n<tr>\n<td valign='top'>{$global_smtp_rules}</td>\n<td valign='top'>{$postfixInstantIptables}</td>\n<td valign='top'>{$extensions_block}</td>\n</td>\n</table>\n</div>\n";
    $tpl = new templates();
    $datas = $tpl->_ENGINE_parse_body($html);
    SET_CACHED(__FILE__, __FUNCTION__, null, $datas);
    return $datas;
}
Exemplo n.º 2
0
function security2()
{
    $failedtext = "{ERROR_NO_PRIVILEGES_OR_PLUGIN_DISABLED}";
    $page = CurrentPageName();
    $users = new usersMenus();
    $users->LoadModulesEnabled();
    $tls = Buildicon64("DEF_ICO_POSTFIX_TLS");
    //$security_rules=Paragraphe('folder-rules-64.png','{security_rules}','{security_rules_text}',"javascript:Loadjs('postfix.security.rules.php?js=yes')",null,210,null,0,true);
    $messages_restriction = Paragraphe('folder-message-restriction.png', '{messages_restriction}', '{messages_restriction_text}', "javascript:Loadjs('postfix.messages.restriction.php?script=yes')", null, 210, null, 0, true);
    $internet_deny = Paragraphe('64-internet-deny.png', '{INTERNET_DENY}', '{INTERNET_DENY_TEXT}', "javascript:Loadjs('postfix.internet.deny.php')", null, 210, 100, 0, true);
    $ssl = Paragraphe('folder-64-routing-secure.png', '{SSL_ENABLE}', '{SSL_ENABLE_TEXT}', "javascript:Loadjs('postfix.master.cf.php?script=ssl');", null, 210, null, 0, true);
    $ou_encoded = base64_encode("_Global");
    //$extensions_block=Paragraphe("bg_forbiden-attachmt-64.png","{attachment_blocking}","{attachment_blocking_text}","javascript:Loadjs('domains.edit.attachblocking.ou.php?ou=$ou_encoded')",null,210,null,0,true);
    $plugins_activate = Paragraphe('folder-lego.png', '{POSTFIX_BUNDLE}', '{POSTFIX_BUNDLE_TEXT}', "javascript:Loadjs('postfix.plugins.php?script=yes')", null, 210, 100, 0, true);
    $postfixInstantIptables = Buildicon64("DEF_ICO_MAIL_IPABLES");
    $backup = icon_backup();
    $header_clean = Paragraphe("gomme-64.png", "{HIDE_CLIENT_MUA}", '{HIDE_CLIENT_MUA_TEXT}', "javascript:Loadjs('postfix.hide.headers.php')", null, 210, 100, 0, true);
    $vipwatch = Paragraphe("vipwatch-64.png", "VIPTrack", '{VIPTrack_text}', "javascript:Loadjs('postfix.viptrack.php')", null, 210, 100, 0, true);
    $tr[] = $backup;
    $tr[] = $vipwatch;
    $tr[] = $tls;
    $tr[] = $messages_restriction;
    $tr[] = $sasl;
    $tr[] = $ssl;
    $tr[] = $internet_deny;
    $tr[] = $header_clean;
    $table = CompileTr3($tr);
    $html = "\n<center>\n<div style='width:700px'>{$table}</div></center>";
    $tpl = new templates();
    $datas = $tpl->_ENGINE_parse_body($html);
    return $datas;
}
Exemplo n.º 3
0
function security2()
{
    $failedtext = "{ERROR_NO_PRIVILEGES_OR_PLUGIN_DISABLED}";
    $page = CurrentPageName();
    $users = new usersMenus();
    $users->LoadModulesEnabled();
    $tls = Buildicon64("DEF_ICO_POSTFIX_TLS");
    //$security_rules=Paragraphe('folder-rules-64.png','{security_rules}','{security_rules_text}',"javascript:Loadjs('postfix.security.rules.php?js=yes')",null,210,null,0,true);
    $messages_restriction = Paragraphe('folder-message-restriction.png', '{messages_restriction}', '{messages_restriction_text}', "javascript:Loadjs('postfix.messages.restriction.php?script=yes')", null, 210, null, 0, true);
    $sasl = Paragraphe('64-smtp-auth.png', '{SASL_TITLE}', '{SASL_TEXT}', "javascript:Loadjs('postfix.index.php?script=auth');", null, 210, null, 0, true);
    $internet_deny = Paragraphe('64-internet-deny.png', '{INTERNET_DENY}', '{INTERNET_DENY_TEXT}', "javascript:Loadjs('postfix.internet.deny.php')", null, 210, 100, 0, true);
    $ssl = Paragraphe('folder-64-routing-secure.png', '{SSL_ENABLE}', '{SSL_ENABLE_TEXT}', "javascript:Loadjs('postfix.master.cf.php?script=ssl');", null, 210, null, 0, true);
    $ou_encoded = base64_encode("_Global");
    //$extensions_block=Paragraphe("bg_forbiden-attachmt-64.png","{attachment_blocking}","{attachment_blocking_text}","javascript:Loadjs('domains.edit.attachblocking.ou.php?ou=$ou_encoded')",null,210,null,0,true);
    $plugins_activate = Paragraphe('folder-lego.png', '{POSTFIX_BUNDLE}', '{POSTFIX_BUNDLE_TEXT}', "javascript:Loadjs('postfix.plugins.php?script=yes')", null, 210, 100, 0, true);
    $postfixInstantIptables = Buildicon64("DEF_ICO_MAIL_IPABLES");
    $backup = icon_backup();
    $header_clean = Paragraphe("gomme-64.png", "{HIDE_CLIENT_MUA}", '{HIDE_CLIENT_MUA_TEXT}', "javascript:Loadjs('postfix.hide.headers.php')", null, 210, 100, 0, true);
    $vipwatch = Paragraphe("vipwatch-64.png", "VIPTrack", '{VIPTrack_text}', "javascript:Loadjs('postfix.viptrack.php')", null, 210, 100, 0, true);
    $tr[] = $backup;
    $tr[] = $vipwatch;
    $tr[] = $tls;
    $tr[] = $messages_restriction;
    $tr[] = $sasl;
    $tr[] = $ssl;
    $tr[] = $internet_deny;
    $tr[] = $header_clean;
    $tables[] = "<table style='width:100%'><tr>";
    $t = 0;
    while (list($key, $line) = each($tr)) {
        $line = trim($line);
        if ($line == null) {
            continue;
        }
        $t = $t + 1;
        $tables[] = "<td valign='top'>{$line}</td>";
        if ($t == 3) {
            $t = 0;
            $tables[] = "</tr><tr>";
        }
    }
    if ($t < 3) {
        for ($i = 0; $i <= $t; $i++) {
            $tables[] = "<td valign='top'>&nbsp;</td>";
        }
    }
    $tables[] = "</table>";
    $html = implode("\n", $tables);
    $html = "<div style='width:700px'>{$html}</div>";
    $tpl = new templates();
    $datas = $tpl->_ENGINE_parse_body($html);
    return $datas;
}