示例#1
0
function tweaks()
{
    if (GET_CACHED(__FILE__, __FUNCTION__, null)) {
        return;
    }
    $sock = new sockets();
    $EnablePostfixMultiInstance = $sock->GET_INFO("EnablePostfixMultiInstance");
    $users = new usersMenus();
    $page = CurrentPageName();
    $tpl = new templates();
    if ($users->ALTERMIME_INSTALLED) {
        $altermime = Paragraphe('icon_settings-64.png', '{disclaimer}', '{disclaimer_text}', "javascript:Loadjs('amavis.index.php?altermime-js=yes')", 90);
    } else {
        //$altermime=ParagrapheTEXT_disabled('icon_settings-48.png','{disclaimer}','{disclaimer_text}',null,90);
    }
    if ($users->POMMO_INSTALLED) {
        $pommo = Paragraphe('64-pommo.png', '{APP_POMMO}', '{APP_POMMO_TEXT}', "javascript:Loadjs('pommo.index.php?pommo-js=yes')", 90);
    } else {
        //$pommo=ParagrapheTEXT_disabled('48-pommo.png','{APP_POMMO}','{APP_POMMO_TEXT}',null,90);
    }
    if ($users->zip_installed) {
        if ($users->AMAVIS_INSTALLED) {
            if ($users->EnableAmavisDaemon == 1) {
                $winzip = Paragraphe('64-winzip.png', '{auto-compress}', '{auto-compress_text}', "javascript:Loadjs('auto-compress.php?script=winzip')", 90);
            }
        }
    }
    if ($users->POSTMULTI) {
        $multi = Paragraphe('postfix-multi-64.png', '{POSTFIX_MULTI_INSTANCE}', '{POSTFIX_MULTI_INSTANCE_TINY_TEXT}', "javascript:Loadjs('postfix.network.php?POSTFIX_MULTI_INSTANCE_JS=yes')", 90);
    } else {
        //$multi=ParagrapheTEXT_disabled('postfix-multi-48.png','{POSTFIX_MULTI_INSTANCE}','{POSTFIX_MULTI_INSTANCE_TINY_TEXT}',null,90);
    }
    if ($users->MEM_TOTAL_INSTALLEE < 700000) {
        $multi = ParagrapheTEXT_disabled('postfix-multi-64.png', '{POSTFIX_MULTI_INSTANCE}', '{POSTFIX_MULTI_INSTANCE_TINY_TEXT}', null, 90);
        $multi = null;
    }
    $postfixStop = Paragraphe('pause-64.png', '{stop_messaging}', '{stop_messaging_text}', "javascript:Loadjs('postfix.stop.php',true)", 90);
    //$postfix_restrictions_classes=Paragraphe('folder-64-restrictions-classes.png','{postfix_restrictions_classes}','{restriction_classes_minitext}',"javascript:Loadjs('postfix.restrictions.classes.php?js=yes')",90);
    $events = Paragraphe('64-mailevents.png', '{postfix_events}', '{logs_viewer_text}', "javascript:s_PopUp('postfix.events.php?pop=true',450,400)", 90);
    //$storage=Paragraphe('folder-storage2-64.png','{storage_rules}','{storage_rules_text}',"javascript:Loadjs('postfix.storage.rules.php')",90);
    //$main_src=Paragraphe('folder-script-database-64.png','{main_ldap}','{main_ldap_explain}',"javascript:s_PopUp(\"postfix.report.php\",500,500,true)",90);
    $watchdog_queue = Paragraphe('folder-watch-64.png', '{watchdog_queue}', '{watchdog_queue_text}', "javascript:Loadjs('postfix.postqueuep.php',true)", 90);
    $postmaster = Paragraphe('postmaster-64.png', '{postmaster}', '{postmaster_text}', "javascript:Loadjs('postfix.postmaster.php')", 90);
    $postmaster_identity = Paragraphe('postmaster-identity.png', '{postmaster_identity}', '{postmaster_identity_text}', "javascript:Loadjs('postfix.postmaster-ident.php',true)", 90);
    $UnknownUsers = Paragraphe('unknown-user-64.png', '{unknown_users}', '{postfix_unknown_users_tinytext}', "javascript:Loadjs('postfix.luser_relay.php',true)", 90);
    $RemoveMessaging = Paragraphe('delete-64.png', '{disable_messaging}', '{disable_messaging_text}', "javascript:Loadjs('postfix.disable.php',true)", 90);
    $ActiveDirectory = Paragraphe('wink-64.png', '{active_directory_link}', '{active_directory_linkmail_text}', "javascript:Loadjs('{$page}?active_directory_link=yes')", 90);
    //$massmailing=ParagrapheTEXT_disabled('mass-mailing-postfix-48.png','{emailings}','{ENABLE_MASSMAILING_TEXT}',null,90);
    if ($users->EMAILRELAY_INSTALLED) {
        $massmailing = Paragraphe('mass-mailing-postfix-64.png', '{emailings}', '{ENABLE_MASSMAILING_TEXT}', "javascript:Loadjs('postfix.massmailing.php',true)", 90);
    }
    //$multi_infos=ParagrapheTEXT_disabled('postfix-multi-48-info.png','{POSTFIX_MULTI_INSTANCE_INFOS}',
    ///'{POSTFIX_MULTI_INSTANCE_INFOS_TEXT}',null,90);
    if ($EnablePostfixMultiInstance == 1) {
        $main_src = null;
        $performances = ParagrapheTEXT_disabled('folder-performances-64.png', '{performances_settings}', '{performances_settings_text}', null, 90);
        $performances = null;
        $mastercf = null;
        $maincfedit = null;
        $maincf = null;
        $postfix_restrictions_classes = null;
        $storage = null;
        $other = null;
        $multi_infos = Paragraphe('postfix-multi-64-info.png', '{POSTFIX_MULTI_INSTANCE_INFOS}', '{POSTFIX_MULTI_INSTANCE_INFOS_TEXT}', "javascript:Loadjs('postfix.multiple.instances.infos.php')");
        $postfixStop = Paragraphe('pause-64-grey.png', '{stop_messaging}', '{stop_messaging_text}', "", 90);
    }
    $q = new mysql();
    $table_storage = $q->TABLE_STATUS("storage", "artica_backup");
    if ($table_storage["Rows"] > 0) {
        $backup_query = Paragraphe('64-backup.png', "{$table_storage["Rows"]} {backuped_mails}", '{all_mailbackup_text}', "javascript:Loadjs('domains.backup.php?js=yes&Master=yes')");
    }
    if ($users->MAILMAN_INSTALLED) {
        $mailman = Paragraphe('mailman-64.png', '{APP_MAILMAN}', '{manage_distribution_lists}', "javascript:Loadjs('mailman.php?script=yes')");
    }
    $tr[] = $multi;
    $tr[] = $multi_infos;
    $tr[] = $postfixStop;
    $tr[] = $RemoveMessaging;
    $tr[] = $watchdog_queue;
    $tr[] = $massmailing;
    $tr[] = $pommo;
    $tr[] = $postmaster;
    $tr[] = $postmaster_identity;
    $tr[] = $UnknownUsers;
    $tr[] = $backup_query;
    $tr[] = $mailman;
    $tr[] = $events;
    $tr[] = $altermime;
    $tr[] = $maincf;
    $tr[] = $main_src;
    $tr[] = $maincfedit;
    $tr[] = $mastercf;
    $tr[] = $storage;
    $tr[] = $postfix_restrictions_classes;
    $tr[] = $other;
    $icons = CompileTr2($tr, 'form');
    $refresh = "<div style='width:100%;text-align:right'>" . imgtootltip("refresh-24.png", "{refresh}", "RefreshIndexPostfixAjax()") . "</div>";
    $main = "<input type='hidden' id='monitor_page' value='1' name='monitor_page'>\n{$refresh}\n<table style='width:100%'>\n<tbody>\n<tr>\n\t<td style='width:99%'>{$icons}</td>\n\t<td style='vertical-align:top'><div id='Postfixservinfos' style='width:450px'></div>\n</tr>\n</tbody>\n</table>\n";
    $html = "{$main}\n\n<script>\n\t\t\n</script>\n";
    $datas = $tpl->_ENGINE_parse_body($html);
    $datas = $datas . "\n<script>\n\tLoadAjax('Postfixservinfos','{$page}?postfix-status=yes');\n</script>\n";
    SET_CACHED(__FILE__, __FUNCTION__, null, $datas);
    return $datas;
}
示例#2
0
function tweaks()
{
    if (GET_CACHED(__FILE__, __FUNCTION__, null)) {
        return;
    }
    $sock = new sockets();
    $EnablePostfixMultiInstance = $sock->GET_INFO("EnablePostfixMultiInstance");
    $users = new usersMenus();
    $page = CurrentPageName();
    $tpl = new templates();
    if ($users->ALTERMIME_INSTALLED) {
        $altermime = ParagrapheTEXT('icon_settings-48.png', '{disclaimer}', '{disclaimer_text}', "javascript:Loadjs('amavis.index.php?altermime-js=yes')", 90);
    } else {
        $altermime = ParagrapheTEXT_disabled('icon_settings-48.png', '{disclaimer}', '{disclaimer_text}', null, 90);
    }
    if ($users->POMMO_INSTALLED) {
        $pommo = ParagrapheTEXT('48-pommo.png', '{APP_POMMO}', '{APP_POMMO_TEXT}', "javascript:Loadjs('pommo.index.php?pommo-js=yes')", 90);
    } else {
        $pommo = ParagrapheTEXT_disabled('48-pommo.png', '{APP_POMMO}', '{APP_POMMO_TEXT}', null, 90);
    }
    if ($users->zip_installed) {
        if ($users->AMAVIS_INSTALLED) {
            if ($users->EnableAmavisDaemon == 1) {
                $winzip = ParagrapheTEXT('48-winzip.png', '{auto-compress}', '{auto-compress_text}', "javascript:Loadjs('auto-compress.php?script=winzip')", 90);
            }
        }
    }
    if ($users->POSTMULTI) {
        $multi = ParagrapheTEXT('postfix-multi-48.png', '{POSTFIX_MULTI_INSTANCE}', '{POSTFIX_MULTI_INSTANCE_TINY_TEXT}', "javascript:Loadjs('postfix.network.php?POSTFIX_MULTI_INSTANCE_JS=yes')", 90);
    } else {
        $multi = ParagrapheTEXT_disabled('postfix-multi-48.png', '{POSTFIX_MULTI_INSTANCE}', '{POSTFIX_MULTI_INSTANCE_TINY_TEXT}', null, 90);
    }
    if ($users->MEM_TOTAL_INSTALLEE < 700000) {
        $multi = ParagrapheTEXT_disabled('postfix-multi-48.png', '{POSTFIX_MULTI_INSTANCE}', '{POSTFIX_MULTI_INSTANCE_TINY_TEXT}', null, 90);
    }
    $artica_stats = ParagrapheTEXT('graphs-48.png', '{ARTICA_STATS}', '{ARTICA_SMTP_STATS_TEXT}', "javascript:Loadjs('postfix.artica-stats.php')", 90);
    $postfix_restrictions_classes = ParagrapheTEXT('folder-48-restrictions-classes.png', '{postfix_restrictions_classes}', '{restriction_classes_minitext}', "javascript:Loadjs('postfix.restrictions.classes.php?js=yes')", 90);
    $events = ParagrapheTEXT('48-mailevents.png', '{postfix_events}', '{logs_viewer_text}', "javascript:s_PopUp('postfix.events.php?pop=true',450,400)", 90);
    $performances = ParagrapheTEXT('folder-performances-48.png', '{performances_settings}', '{performances_settings_text}', "javascript:Loadjs('postfix.performances.php')", 90);
    $maincf = ParagrapheTEXT('folder-script-48.png', '{main.cf}', '{main.cf_explain}', "javascript:Loadjs('postfix.main.cf.php')", 90);
    $storage = ParagrapheTEXT('folder-storage2-48.png', '{storage_rules}', '{storage_rules_text}', "javascript:Loadjs('postfix.storage.rules.php')", 90);
    $maincfedit = ParagrapheTEXT('folder-maincf-48.png', '{main.cf_edit}', '{main.cfedit_explain}', "javascript:Loadjs('postfix.main.cf.edit.php?js=yes')", 90);
    $mastercf = ParagrapheTEXT('folder-script-48-master.png', '{master.cf}', '{mastercf_explain}', "javascript:Loadjs('postfix.master.cf.php?script=yes')", 90);
    $other = ParagrapheTEXT('folder-tools2-48.png', '{other_settings}', '{other_settings_text}', "javascript:Loadjs('postfix.other.php')", 90);
    $main_src = ParagrapheTEXT('folder-script-database-48.png', '{main_ldap}', '{main_ldap_explain}', "javascript:s_PopUp(\"postfix.report.php\",500,500,true)", 90);
    $postmaster = ParagrapheTEXT('postmaster-48.png', '{postmaster}', '{postmaster_text}', "javascript:Loadjs('postfix.postmaster.php')", 90);
    $postmaster_identity = ParagrapheTEXT('postmaster-identity-48.png', '{postmaster_identity}', '{postmaster_identity_text}', "javascript:Loadjs('postfix.postmaster-ident.php')", 90);
    $UnknownUsers = ParagrapheTEXT('unknown-user-48.png', '{unknown_users}', '{postfix_unknown_users_tinytext}', "javascript:Loadjs('postfix.luser_relay.php')", 90);
    $massmailing = ParagrapheTEXT_disabled('mass-mailing-postfix-48.png', '{emailings}', '{ENABLE_MASSMAILING_TEXT}', null, 90);
    if ($users->EMAILRELAY_INSTALLED) {
        $massmailing = ParagrapheTEXT('mass-mailing-postfix-48.png', '{emailings}', '{ENABLE_MASSMAILING_TEXT}', "javascript:Loadjs('postfix.massmailing.php')", 90);
    }
    $multi_infos = ParagrapheTEXT_disabled('postfix-multi-48-info.png', '{POSTFIX_MULTI_INSTANCE_INFOS}', '{POSTFIX_MULTI_INSTANCE_INFOS_TEXT}', null, 90);
    if ($EnablePostfixMultiInstance == 1) {
        $main_src = null;
        $performances = ParagrapheTEXT_disabled('folder-performances-48.png', '{performances_settings}', '{performances_settings_text}', null, 90);
        $mastercf = null;
        $maincfedit = null;
        $maincf = null;
        $postfix_restrictions_classes = null;
        $storage = null;
        $other = null;
        $multi_infos = ParagrapheTEXT('postfix-multi-48-info.png', '{POSTFIX_MULTI_INSTANCE_INFOS}', '{POSTFIX_MULTI_INSTANCE_INFOS_TEXT}', "javascript:Loadjs('postfix.multiple.instances.infos.php')");
        if ($users->MAILMAN_INSTALLED) {
            $mailman = ParagrapheTEXT('folder-group2-48.png', '{APP_MAILMAN}', '{manage_distribution_lists}', "javascript:Loadjs('mailman.php?script=yes')");
        }
    }
    $q = new mysql();
    $table_storage = $q->TABLE_STATUS("storage", "artica_backup");
    if ($table_storage["Rows"] > 0) {
        $backup_query = ParagrapheTEXT('48-backup.png', "{$table_storage["Rows"]} {backuped_mails}", '{all_mailbackup_text}', "javascript:Loadjs('domains.backup.php?js=yes&Master=yes')");
    }
    $tr[] = $performances;
    $tr[] = $massmailing;
    $tr[] = $pommo;
    $tr[] = $artica_stats;
    $tr[] = $postmaster;
    $tr[] = $postmaster_identity;
    $tr[] = $UnknownUsers;
    $tr[] = $backup_query;
    $tr[] = $mailman;
    $tr[] = $events;
    $tr[] = $altermime;
    $tr[] = $maincf;
    $tr[] = $main_src;
    $tr[] = $maincfedit;
    $tr[] = $mastercf;
    $tr[] = $storage;
    $tr[] = $postfix_restrictions_classes;
    $tr[] = $other;
    $t = 0;
    $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>";
    $icons = @implode("\n", $tables);
    $refresh = "<div style='width:100%;text-align:right'>" . imgtootltip("refresh-24.png", "{refresh}", "RefreshIndexPostfixAjax()") . "</div>";
    $main = "<input type='hidden' id='monitor_page' value='1' name='monitor_page'>\n{$refresh}\n<div style='width:100%'>\n\t<div id='Postfixservinfos' style='width:350px;float:right;padding-right:50px;padding-left:50px;padding-top:70px'></div>\n\t<div style='float:right;width:160px;margin:8px' id='barstatus'>{$multi}</div>\n\t<div style='float:right;width:160px;margin:8px'>{$multi}</div>\n\t<div style='float:right;width:160px;margin:8px'>{$multi_infos}</div>\n\t\n\t\n</div>\n\n\t<div style='clear:both;width:100%'>\n\t{$icons}\n\t</div>\n\t";
    $html = "{$main}\n\n<script>\n\t\t\n</script>\n";
    $datas = $tpl->_ENGINE_parse_body($html);
    $datas = $datas . "\n<script>\n\tLoadAjax('Postfixservinfos','{$page}?postfix-status=yes');\n</script>\n";
    SET_CACHED(__FILE__, __FUNCTION__, null, $datas);
    return $datas;
}
示例#3
0
function tweaks()
{
    $sock = new sockets();
    $EnablePostfixMultiInstance = $sock->GET_INFO("EnablePostfixMultiInstance");
    $users = new usersMenus();
    $page = CurrentPageName();
    $tpl = new templates();
    if ($users->ALTERMIME_INSTALLED) {
        $altermime = Buildicon64("DEF_ICO_ALTERMIME");
    }
    if ($users->POMMO_INSTALLED) {
        $pommo = Paragraphe('64-pommo.png', '{APP_POMMO}', '{APP_POMMO_TEXT}', "javascript:Loadjs('pommo.index.php?pommo-js=yes')", null, 210, 100, 0, true);
    }
    if ($users->zip_installed) {
        if ($users->AMAVIS_INSTALLED) {
            if ($users->EnableAmavisDaemon == 1) {
                $winzip = Paragraphe('64-winzip.png', '{auto-compress}', '{auto-compress_text}', "javascript:Loadjs('auto-compress.php?script=winzip')", null, 210, 100, 0, true);
            }
        }
    }
    if ($users->POSTMULTI) {
        $multi = Paragraphe('postfix-multi-64.png', '{POSTFIX_MULTI_INSTANCE}', '{POSTFIX_MULTI_INSTANCE_TINY_TEXT}', "javascript:Loadjs('postfix.network.php?POSTFIX_MULTI_INSTANCE_JS=yes')");
    }
    $postfix_restrictions_classes = Paragraphe('folder-64-restrictions-classes.png', '{postfix_restrictions_classes}', '{restriction_classes_minitext}', "javascript:Loadjs('postfix.restrictions.classes.php?js=yes')", null, 210, null, 0, true);
    $events = Buildicon64("DEF_ICO_EVENTS_POSTFIX");
    $performances = Paragraphe('folder-performances-64.png', '{performances_settings}', '{performances_settings_text}', "javascript:Loadjs('postfix.performances.php')");
    $maincf = Paragraphe('folder-script-64.png', '{main.cf}', '{main.cf_explain}', "javascript:Loadjs('postfix.main.cf.php')");
    $storage = Paragraphe('folder-storage2-64.png', '{storage_rules}', '{storage_rules_text}', "javascript:Loadjs('postfix.storage.rules.php')");
    $maincfedit = Paragraphe('folder-maincf-64.png', '{main.cf_edit}', '{main.cfedit_explain}', "javascript:Loadjs('postfix.main.cf.edit.php?js=yes')");
    $mastercf = Paragraphe('folder-script-64-master.png', '{master.cf}', '{mastercf_explain}', "javascript:Loadjs('postfix.master.cf.php?script=yes')");
    $other = Paragraphe('folder-tools2-64.png', '{other_settings}', '{other_settings_text}', "javascript:Loadjs('postfix.other.php')");
    $main_src = Paragraphe('folder-script-database-64.png', '{main_ldap}', '{main_ldap_explain}', "javascript:s_PopUp(\"postfix.report.php\",500,500,true)");
    $postmaster = Paragraphe('postmaster-64.png', '{postmaster}', '{postmaster_text}', "javascript:Loadjs('postfix.postmaster.php')");
    $postmaster_identity = Paragraphe('postmaster-identity.png', '{postmaster_identity}', '{postmaster_identity_text}', "javascript:Loadjs('postfix.postmaster-ident.php')");
    $UnknownUsers = Paragraphe('unknown-user-64.png', '{unknown_users}', '{postfix_unknown_users_tinytext}', "javascript:Loadjs('postfix.luser_relay.php')");
    if ($EnablePostfixMultiInstance == 1) {
        $main_src = null;
        $performances = null;
        $mastercf = null;
        $maincfedit = null;
        $maincf = null;
        $postfix_restrictions_classes = null;
        $storage = null;
        $other = null;
        $multi_infos = Paragraphe('postfix-multi-64-info.png', '{POSTFIX_MULTI_INSTANCE_INFOS}', '{POSTFIX_MULTI_INSTANCE_INFOS_TEXT}', "javascript:Loadjs('postfix.multiple.instances.infos.php')");
        if ($users->MAILMAN_INSTALLED) {
            $mailman = Buildicon64('DEF_ICO_POSTFIX_MAILMAN');
        }
    }
    $q = new mysql();
    $table_storage = $q->TABLE_STATUS("storage", "artica_backup");
    if ($table_storage["Rows"] > 0) {
        $backup_query = Paragraphe('64-backup.png', "{$table_storage["Rows"]} {backuped_mails}", '{all_mailbackup_text}', "javascript:Loadjs('domains.backup.php?js=yes&Master=yes')");
    }
    $tr[] = $multi;
    $tr[] = $multi_infos;
    $tr[] = $postmaster;
    $tr[] = $postmaster_identity;
    $tr[] = $UnknownUsers;
    $tr[] = $backup_query;
    $tr[] = $mailman;
    $tr[] = $altermime;
    $tr[] = $pommo;
    $tr[] = $events;
    $tr[] = $performances;
    $tr[] = $maincf;
    $tr[] = $main_src;
    $tr[] = $maincfedit;
    $tr[] = $mastercf;
    $tr[] = $storage;
    $tr[] = $postfix_restrictions_classes;
    $tr[] = $other;
    $tr[] = $cyrus_backup;
    $tr[] = $roundcube;
    $tr[] = $fetchmail;
    $tr[] = $atmail;
    $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>";
    $datas = $tpl->_ENGINE_parse_body($html);
    SET_CACHED(__FILE__, __FUNCTION__, null, $datas);
    return $datas;
}
示例#4
0
function tweaks(){
	if(GET_CACHED(__FILE__,__FUNCTION__,null)){return;}
	$sock=new sockets();
	$EnablePostfixMultiInstance=$sock->GET_INFO("EnablePostfixMultiInstance");
	$users=new usersMenus();
	$page=CurrentPageName();
	$tpl=new templates();
	
	$massmailing=Paragraphe('mass-mailing-postfix-64-grey.png','{emailings}','{ENABLE_MASSMAILING_TEXT}');
	
	if($users->ALTERMIME_INSTALLED){
		$altermime=Paragraphe('icon_settings-64.png','{disclaimer}','{disclaimer_text}',"javascript:Loadjs('amavis.index.php?altermime-js=yes')");
	}else{
		$altermime=Paragraphe('icon_settings-64-grey.png','{disclaimer}','{disclaimer_text}');
	}

	
	if($users->POMMO_INSTALLED){
		$pommo=Paragraphe('64-pommo.png','{APP_POMMO}','{APP_POMMO_TEXT}',"javascript:Loadjs('pommo.index.php?pommo-js=yes')");	
	}else{
		$pommo=Paragraphe('64-pommo-grey.png','{APP_POMMO}','{APP_POMMO_TEXT}');
	}
	
	
	if($users->zip_installed){
		if($users->AMAVIS_INSTALLED){
			if($users->EnableAmavisDaemon==1){
				$winzip=Paragraphe('64-winzip.png','{auto-compress}','{auto-compress_text}',"javascript:Loadjs('auto-compress.php?script=winzip')");	
			}
		}
	}

	
	if($users->POSTMULTI){
		
		$multi=Paragraphe('postfix-multi-64.png','{POSTFIX_MULTI_INSTANCE}','{POSTFIX_MULTI_INSTANCE_TINY_TEXT}',"javascript:Loadjs('postfix.network.php?POSTFIX_MULTI_INSTANCE_JS=yes')");
	}else{
		$multi=Paragraphe('postfix-multi-64-grey.png','{POSTFIX_MULTI_INSTANCE}','{POSTFIX_MULTI_INSTANCE_TINY_TEXT}');	
	}
	
	if($users->MEM_TOTAL_INSTALLEE<700000){
		$multi=Paragraphe('postfix-multi-64-grey.png','{POSTFIX_MULTI_INSTANCE}','{POSTFIX_MULTI_INSTANCE_TINY_TEXT}');
	}
		

	$artica_stats=Paragraphe('graphs-64.png','{ARTICA_STATS}','{ARTICA_SMTP_STATS_TEXT}',"javascript:Loadjs('postfix.artica-stats.php')");
	
	$postfix_restrictions_classes=Paragraphe('folder-64-restrictions-classes.png',
	'{postfix_restrictions_classes}','{restriction_classes_minitext}',"javascript:Loadjs('postfix.restrictions.classes.php?js=yes')");
	
	$events=Buildicon64("DEF_ICO_EVENTS_POSTFIX");
	$performances=Paragraphe('folder-performances-64.png','{performances_settings}','{performances_settings_text}',"javascript:Loadjs('postfix.performances.php')");
	$maincf=Paragraphe('folder-script-64.png','{main.cf}','{main.cf_explain}',"javascript:Loadjs('postfix.main.cf.php')");
	$storage=Paragraphe('folder-storage2-64.png','{storage_rules}','{storage_rules_text}',"javascript:Loadjs('postfix.storage.rules.php')");
	$maincfedit=Paragraphe('folder-maincf-64.png','{main.cf_edit}','{main.cfedit_explain}',"javascript:Loadjs('postfix.main.cf.edit.php?js=yes')");
	$mastercf=Paragraphe('folder-script-64-master.png','{master.cf}','{mastercf_explain}',"javascript:Loadjs('postfix.master.cf.php?script=yes')") ;
	$other=Paragraphe('folder-tools2-64.png','{other_settings}','{other_settings_text}',"javascript:Loadjs('postfix.other.php')");
	$main_src=Paragraphe('folder-script-database-64.png','{main_ldap}','{main_ldap_explain}',"javascript:s_PopUp(\"postfix.report.php\",500,500,true)");
	$postmaster=Paragraphe('postmaster-64.png','{postmaster}','{postmaster_text}',"javascript:Loadjs('postfix.postmaster.php')");
	$postmaster_identity=Paragraphe('postmaster-identity.png','{postmaster_identity}','{postmaster_identity_text}',"javascript:Loadjs('postfix.postmaster-ident.php')");
	$UnknownUsers=Paragraphe('unknown-user-64.png','{unknown_users}','{postfix_unknown_users_tinytext}',"javascript:Loadjs('postfix.luser_relay.php')");
	
	
	if($users->EMAILRELAY_INSTALLED){
		$massmailing=Paragraphe('mass-mailing-postfix-64.png','{emailings}','{ENABLE_MASSMAILING_TEXT}',"javascript:Loadjs('postfix.massmailing.php')");
	}		
	
	
	if($EnablePostfixMultiInstance==1){
		$main_src=null;
		$performances=null;
		$mastercf=null;
		$maincfedit=null;
		$maincf=null;
		$postfix_restrictions_classes=null;
		$storage=null;
		$other=null;
		$multi_infos=Paragraphe('postfix-multi-64-info.png','{POSTFIX_MULTI_INSTANCE_INFOS}','{POSTFIX_MULTI_INSTANCE_INFOS_TEXT}',"javascript:Loadjs('postfix.multiple.instances.infos.php')");
		
		if($users->MAILMAN_INSTALLED){
			$mailman=Buildicon64('DEF_ICO_POSTFIX_MAILMAN');
		}
	}
	
	$q=new mysql();
	$table_storage=$q->TABLE_STATUS("storage","artica_backup");
	if($table_storage["Rows"]>0){
		$backup_query=Paragraphe('64-backup.png',"{$table_storage["Rows"]} {backuped_mails}",'{all_mailbackup_text}',"javascript:Loadjs('domains.backup.php?js=yes&Master=yes')");
		
	}
	
	

	
		$serv[]=$multi;
		$serv[]=$multi_infos;
		$serv[]=$altermime;
		$serv[]=$massmailing;
		$serv[]=$pommo;
		$serv[]=$artica_stats;
		
		$post[]=$postmaster;
		$post[]=$postmaster_identity;
		$post[]=$UnknownUsers;
		
		
		$tr[]=$backup_query;
		$tr[]=$mailman;
		
		
		$tr[]=$events;
		$tr[]=$performances;
		$tr[]=$maincf;
		$tr[]=$main_src;
		$tr[]=$maincfedit;
		$tr[]=$mastercf;
		$tr[]=$storage;	
		$tr[]=$postfix_restrictions_classes;	
		$tr[]=$other;
		
		

$tables[]="<table style='width:100%'><tr>";
$t=0;
while (list ($key, $line) = each ($serv) ){
		$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="<h3><a href=\"#\">{services}</a></h3><div>".@implode("\n",$tables)."</div>";

$tables=array();	
$tables[]="<table style='width:100%'><tr>";
$t=0;
while (list ($key, $line) = each ($post) ){
		$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=$html."<h3><a href=\"#\">{postmaster}</a></h3><div>".@implode("\n",$tables)."</div>";



$tables=array();
$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=$html."<h3><a href=\"#\">{other}</a></h3><div>".@implode("\n",$tables)."</div>";


	$main=new main_cf();
	
	$count=0;
	while (list ($num, $ligne) = each ($main->array_mynetworks) ){
		if($ligne=="127.0.0.0/8"){continue;}
		if($ligne=="127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128"){continue;}
		$count=$count+1;
	}
	
	if($count==0){
		$nonet=Paragraphe('server_network_error-64.png',"{NO_POSTFIX_NETWORK_SET}",'{NO_POSTFIX_NETWORK_SET_EXPLAIN}',"javascript:Loadjs('postfix.network.php?ajax=yes')");
	}
	
	
	
$main="
<h3><a href=\"#\">{status}</a></h3>
<div>
	<input type='hidden' id='monitor_page' value='1' name='monitor_page'>
	<table style='width:650px' align=center>
		<tr>
			<td valign='top'>
				<div id='barstatus' style='width:300px;overflow:auto'>
					<img src='img/postfix2.jpg'>
				</div>
				<hr>
				$nonet
			</td>
			<td valign='top'>
				<div id='Postfixservinfos' style='width:350px'></div>
			</td>
		</tr>
	</table>
</div>";
	
	
$html="<div id='NavigationForms2'>$main$html</div>

<script>
		$(function() {
			$( \"#NavigationForms2\" ).accordion({autoHeight: false,navigation: true});});
</script>
";	
$datas=$tpl->_ENGINE_parse_body($html);	
$datas= $datas."
<script>
	LoadAjax('Postfixservinfos','$page?postfix-status=yes');
</script>
";

SET_CACHED(__FILE__,__FUNCTION__,null,$datas);
return $datas;

}