当前位置: 首页>>代码示例>>PHP>>正文


PHP maincf_multi::GET_BIGDATA方法代码示例

本文整理汇总了PHP中maincf_multi::GET_BIGDATA方法的典型用法代码示例。如果您正苦于以下问题:PHP maincf_multi::GET_BIGDATA方法的具体用法?PHP maincf_multi::GET_BIGDATA怎么用?PHP maincf_multi::GET_BIGDATA使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在maincf_multi的用法示例。


在下文中一共展示了maincf_multi::GET_BIGDATA方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: popup

function popup()
{
    $ou = base64_decode($_GET["ou"]);
    $page = CurrentPageName();
    if ($_GET["hostname"] == "master") {
        $ipstr = "127.0.0.1";
    }
    $main = new maincf_multi($_GET["hostname"], $ou, $ipstr);
    $dkimproxyEnabled = $main->GET("dkimproxyEnabled");
    $freeport = $main->GET("dkimproxy_listenport");
    if ($freeport == null) {
        $freeport = findFreePort();
        $main->SET_VALUE("dkimproxy_listenport", $freeport);
    }
    $method_arr = array("simple" => "simple", "relaxed" => "relaxed", "relaxed/relaxed" => "relaxed/relaxed");
    $tpl = new templates();
    $explian = $tpl->_ENGINE_parse_body("{dkimproxy_selector_text}");
    $array = unserialize(base64_decode($main->GET_BIGDATA("dkimproxy_datas")));
    if ($array["selector_name"] == null) {
        $array["selector_name"] = "selector1";
    }
    if ($array["method"] == null) {
        $array["method"] = "simple";
    }
    $method = Field_array_Hash($method_arr, "method", $array["method"], null, null, 0, "font-size:13px;padding:3px");
    $explian = str_replace("--selector--", $array["selector_name"], $explian);
    $html = "\n\t<table style='width:100%'>\n\t<tr>\n\t\t<td class=legend style='font-size:13px'>{enable_dkimproxyout}:</td>\n\t\t<td>" . Field_checkbox("dkimproxyEnabled", 1, $dkimproxyEnabled, "CheckdkimproxyEnabled()") . "</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend style='font-size:13px'>{selector_name}:</td>\n\t\t<td>" . Field_text("selector_name", $array["selector_name"], "font-size:13px;padding:3px;width:100px") . "</td>\n\t</tr>\n\t<tr>\n\t\t<td class=legend style='font-size:13px'>{dkimproxy_method}:</td>\n\t\t<td>{$method}</td>\n\t</tr>\t\n\t<tr>\n\t\t<td class=legend style='font-size:13px'>{listen_port}:</td>\n\t\t<td>" . Field_text("listen_port", $freeport, "font-size:13px;padding:3px;width:50px") . "</td>\n\t</tr>\t\n\t<tr>\n\t\t<td colspan=2><div class=explain>{$explian}</div></td>\n\t</tr>\t\n\t<tr>\n\t\t<td colspan=2 align='right'><hr>" . button("{apply}", "dkimproxySave()") . "</td>\n\t</tr>\n\t</table>\n\t\n\t<script>\n\t\n\n\tvar x_dkimproxySave=function(obj){\n\t      var tempvalue=trim(obj.responseText);\n\t      if(tempvalue.length>3){alert(tempvalue);}\n\t\t  RefreshTab('main_config_dkimproxy');\n\t}\t\n\t\n\t\tfunction dkimproxySave(num){\n\t\t      var XHR = new XHRConnection();\n\t\t      if(document.getElementById('dkimproxyEnabled').checked){\n\t\t      \t    XHR.appendData('dkimproxyEnabled',1);\n\t\t\t\t}else{\n\t\t\t\t\tXHR.appendData('dkimproxyEnabled',0);\n\t\t\t\t}\n\t\t      XHR.appendData('ou','{$_GET["ou"]}');\n\t\t      XHR.appendData('hostname','{$_GET["hostname"]}');   \n\t\t      XHR.appendData('selector_name',document.getElementById('selector_name').value);  \n\t\t      XHR.appendData('listen_port',document.getElementById('listen_port').value);\n\t\t      XHR.appendData('method',document.getElementById('method').value);\n\n\t\t      \n\t\t      XHR.sendAndLoad('{$page}', 'GET',x_dkimproxySave);\n\t\t      \n\t\t}\n\n\tfunction CheckdkimproxyEnabled(){\n\t\tdocument.getElementById('selector_name').disabled=true;\n\t\tdocument.getElementById('listen_port').disabled=true;\n\t\tdocument.getElementById('method').disabled=true;\n\t\t\n\t\t if(document.getElementById('dkimproxyEnabled').checked){\n\t\t\t\tdocument.getElementById('selector_name').disabled=false;\n\t\t\t\tdocument.getElementById('listen_port').disabled=false;\n\t\t\t\tdocument.getElementById('method').disabled=false;\n\t\t\t}\n\t}\n\t\n\tCheckdkimproxyEnabled();\n\t</script>";
    echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:29,代码来源:dkimproxy.php

示例2: popup

function popup(){
	
$ssl=new ssl_certificate();
	$array=$ssl->array_ssl;
	$styleF="font-size:13px;padding:3px";
	
	
	$main=new maincf_multi($_GET["hostname"],base64_decode($_GET["ou"]));
	$conf=unserialize(base64_decode($main->GET_BIGDATA("certificate_smtp_parameters")));
	
	if($conf["organizationName"]==null){$conf["organizationName"]=base64_decode($_GET["ou"]);}
	
	$users=new usersMenus();
	$tpl=new templates();
	$country_name=Field_array_Hash($ssl->array_country_codes,'countryName',$conf["countryName"],null,null,0,$styleF);	
	$html="<div id='PostfixMultiCertificateDiv'>
	<table style='width:100%'>
	<tr>
		<td class=legend style='font-size:13px'>{countryName}:</td>	
		<td>$country_name</td>
	</tr>
	<tr>
		<td class=legend style='font-size:13px'>{localityName}:</td>
		<td>". Field_text("localityName",$conf["localityName"],$styleF)."</td>
	</tr>
	<tr>
		<td class=legend style='font-size:13px'>{organizationalUnitName}:</td>
		<td>". Field_text("organizationalUnitName",$conf["organizationalUnitName"],$styleF)."</td>
	</tr>
	<tr>
		<td class=legend style='font-size:13px'>{organizationName}:</td>
		<td>". Field_text("organizationName",$conf["organizationName"],$styleF)."</td>
	</tr>	
	
	
		<tr>
		<td class=legend style='font-size:13px'>{emailAddress}:</strong></td>
		<td align='left'>" . Field_text("emailAddress",$conf["emailAddress"],$styleF)  . "</td>
		</tr>
	<tr>
		<td colspan=2 align=right>
			<hr>
				". button("{apply}","PostfixMultiCertificateSave()")."
			</td>
	</tr>	
	</table>
	</div>
	";
	
	echo $tpl->_ENGINE_parse_body($html);
}
开发者ID:rsd,项目名称:artica-1.5,代码行数:51,代码来源:domains.postfix.multi.certificate.php

示例3: popup

function popup(){

	$page=CurrentPageName();
	$ou=$_GET["ou"];
	$hostname=$_GET["hostname"];
	$main=new maincf_multi($hostname,$ou);
	$array=unserialize(base64_decode($main->GET_BIGDATA("PostfixMultiFetchMail")));	
	$schedule=array(2=>2,5=>5,10=>10,15=>15,20=>20,30=>30,40=>40,50=>50,55=>55);
	if($array[$hostname]["schedule"]==null){$array[$hostname]["schedule"]=10;}
	
	
	$enabled=$array[$hostname]["enabled"];
	$fetchmail_enabled=Paragraphe_switch_img('{enable_fetchmail}','{enable_fetchmail_text}','enable_fetchmail',$enabled,null,270);
	
	$forms="<table style='width:100%'>
	<tr>
	<td colspan=2>$fetchmail_enabled</td>
	</tr>
	<tr>
		<td class=legend style='font-size:14px'>{fetch_messages_every}:</td>
		<td style='font-size:14px'>
		". Field_array_Hash($schedule,
		"schedule",$array[$hostname]["schedule"],null,null,0,"font-size:14px;padding:3px")."&nbsp;(minutes)</td>
	</tr>
	</table>
	
	";
	
	
	$html="
	<table style='width:100%'>
	<tr>
		<td valign='top' width=1%><img src='img/bg_fetchmail2.png'></td>
		<td valign='top'>$forms</td>
	</tr>
	<tr>
	<td colspan=2 align='right'><hr>". button("{apply}","postfix_multi_fetchmail_save()")."</td>
	</tr>
	
	</table>
	
	";
	$tpl=new templates();
	echo $tpl->_ENGINE_parse_body($html);
	
	
}
开发者ID:rsd,项目名称:artica-1.5,代码行数:47,代码来源:domains.postfix.multi.fetchmail.php

示例4: servers_list

function servers_list()
{
    $tpl = new templates();
    $main = new maincf_multi($_GET["hostname"], $_GET["ou"]);
    $hash = unserialize(base64_decode($main->GET_BIGDATA("check_client_access")));
    if (!is_array($hash) or count($hash) == 0) {
        json_error_show("no rule");
    }
    $page = 1;
    $search = string_to_flexregex();
    $c = 0;
    while (list($ipaddr, $action) = each($hash)) {
        if (trim($ipaddr) == null) {
            continue;
        }
        if (isset($aL[$ipaddr])) {
            continue;
        }
        $md5 = md5("{$ipaddr}{$action}");
        if ($search != null) {
            if (!preg_match("#{$search}#", $ipaddr)) {
                continue;
            }
        }
        $aL[$md5] = true;
        $img = "48-server.png";
        if ($action == "REJECT") {
            $img = '48-server-ban.png';
        }
        $c++;
        $delete = imgsimple('delete-48.png', '{delete}', "DeleteServer{$_GET["t"]}('{$ipaddr}');");
        $data['rows'][] = array('id' => $md5, 'cell' => array("<span style='font-size:16px;font-weight:bold'><img src='img/{$img}'></a></span>", "<span style='font-size:32px'>{$ipaddr} ({$action})</a></span>", $delete));
    }
    $data['page'] = $page;
    $data['total'] = $c;
    echo json_encode($data);
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:37,代码来源:domains.postfix.multi.reject.php

示例5: multi_build_schedule

function multi_build_schedule($hostname)
{
    $unix = new unix();
    $fetchmail = $unix->find_program("fetchmail");
    if ($fetchmail == null) {
        return null;
    }
    $main = new maincf_multi($hostname);
    $array = unserialize(base64_decode($main->GET_BIGDATA("PostfixMultiFetchMail")));
    if ($array[$hostname]["enabled"] != 1) {
        return null;
    }
    if ($array[$hostname]["schedule"] == null) {
        return null;
    }
    if ($array[$hostname]["schedule"] < 2) {
        return null;
    }
    echo "Starting......: " . date("H:i:s") . " [INIT]: {$GLOBALS["SERVICE_NAME"]} {$hostname} scheduling each {$array[$hostname]["schedule"]}mn\n";
    return "{$array[$hostname]["schedule"]} {$fetchmail} --nodetach --fetchmailrc /etc/postfix-{$hostname}/fetchmail.rc >>/var/log/fetchmail.log";
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:21,代码来源:exec.fetchmail.php

示例6: LoadLDAPDBs

function LoadLDAPDBs()
{
    if (isset($GLOBALS["LoadLDAPDBs_performed"])) {
        return;
    }
    $main = new maincf_multi("master", "master");
    $databases_list = unserialize(base64_decode($main->GET_BIGDATA("ActiveDirectoryDBS")));
    if (is_array($databases_list)) {
        while (list($dbindex, $array) = each($databases_list)) {
            if ($GLOBALS["DEBUG"]) {
                echo __FUNCTION__ . "::LDAP:: {$array["database_type"]}; enabled={$array["enabled"]}\n";
            }
            if ($array["enabled"] != 1) {
                if ($GLOBALS["DEBUG"]) {
                    echo __FUNCTION__ . "::LDAP:: {$array["database_type"]} is not enabled, skipping\n";
                }
                continue;
            }
            $targeted_file = $main->buidLdapDB("master", $dbindex, $array);
            if (!is_file($targeted_file)) {
                if ($GLOBALS["DEBUG"]) {
                    echo __FUNCTION__ . "::LDAP:: {$array["database_type"]} \"{$targeted_file}\" no such file, skipping\n";
                }
                continue;
            }
            //$GLOBALS["REMOTE_SMTP_LDAPDB_ROUTING"]
            if ($array["resolv_domains"] == 1) {
                $domains = $main->buidLdapDBDomains($array);
            }
            $GLOBALS["LDAPDBS"][$array["database_type"]][] = "ldap:{$targeted_file}";
            if ($GLOBALS["DEBUG"]) {
                echo __FUNCTION__ . "::LDAP:: GLOBALS[LDAPDBS][{$array["database_type"]}]=ldap:{$targeted_file}\n";
            }
        }
    }
    $GLOBALS["LoadLDAPDBs_performed"] = true;
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:37,代码来源:exec.postfix.transport.php

示例7: PostFixDeleteServerCache

function PostFixDeleteServerCache()
{
    $main = new maincf_multi($_POST["hostname"]);
    $smtp_connection_cache_destinations = unserialize(base64_decode($main->GET_BIGDATA("smtp_connection_cache_destinations")));
    unset($smtp_connection_cache_destinations[$_POST["PostFixDeleteServerCache"]]);
    $smtp_connection_cache_destinations_new = base64_encode(serialize($smtp_connection_cache_destinations));
    $main->SET_BIGDATA("smtp_connection_cache_destinations", addslashes($smtp_connection_cache_destinations_new));
    $sock = new sockets();
    $sock->getFrameWork("cmd.php?postfix-others-values=yes&hostname={$_POST["hostname"]}");
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:10,代码来源:postfix.performances.cache.php

示例8: del_host

function del_host()
{
    $ou = base64_decode($_GET["ou"]);
    $main = new maincf_multi($_GET["hostname"], $ou);
    $page = CurrentPageName();
    $tpl = new templates();
    $host = base64_decode($_GET["PostFixAiguilleuseServerDelete"]);
    $PostFixAiguilleuseServers = unserialize(base64_decode($main->GET_BIGDATA("PostFixAiguilleuseServers")));
    unset($PostFixAiguilleuseServers["HOSTS"][$host]);
    unset($PostFixAiguilleuseServers[$host]);
    $final = base64_encode(serialize($PostFixAiguilleuseServers));
    $main->SET_BIGDATA("PostFixAiguilleuseServers", $final);
    $sock = new sockets();
    $sock->getFrameWork("cmd.php?postfix-multi-aiguilleuse={$_GET["hostname"]}");
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:15,代码来源:domains.postfix.aiguilleuse.php

示例9: status_list

function status_list()
{
    $users = new usersMenus();
    $users->LoadModulesEnabled();
    $sock = new sockets();
    $tpl = new templates();
    $users = new usersMenus();
    $users->LoadModulesEnabled();
    $sock = new sockets();
    $EnableArticaSMTPFilter = $sock->GET_INFO("EnableArticaSMTPFilter");
    $EnableArticaSMTPFilter = 0;
    $EnableArticaPolicyFilter = $sock->GET_INFO("EnableArticaPolicyFilter");
    $EnableArticaPolicyFilter = 0;
    $EnablePostfixMultiInstance = $sock->GET_INFO("EnablePostfixMultiInstance");
    $amavis = Paragraphe_switch_disable('{enable_amavis}', '{feature_not_installed}', '{feature_not_installed}');
    $assp = Paragraphe_switch_disable('{enable_assp}', '{feature_not_installed}', '{feature_not_installed}');
    $main = new maincf_multi("master");
    $array_filters = unserialize(base64_decode($main->GET_BIGDATA("PluginsEnabled")));
    $array["APP_POSTFWD2"]["INSTALLED"] = True;
    $array["APP_POSTFWD2"]["NAME"] = "APP_POSTFWD2";
    $array["APP_POSTFWD2"]["ENABLED"] = $array_filters["APP_POSTFWD2"];
    $array["APP_POSTFWD2"]["TEXT"] = "POSTFWD2_ABOUT";
    $array["APP_POSTFWD2"]["JS"] = "Loadjs('postfwd2.php?instance=master&with-popup=yes')";
    $array["MILTER_GREYLIST"]["INSTALLED"] = False;
    $array["MILTER_GREYLIST"]["NAME"] = "APP_MILTERGREYLIST";
    $array["AMAVISD"]["INSTALLED"] = False;
    $array["AMAVISD_MILTER"]["INSTALLED"] = False;
    $array["AMAVISD"]["NAME"] = "APP_AMAVISD_NEW";
    $array["SPAMASSASSIN"]["INSTALLED"] = False;
    $array["SPAMASS_MILTER"]["INSTALLED"] = False;
    $array["CLAMAV"]["INSTALLED"] = False;
    $array["APP_MILTER_DKIM"]["INSTALLED"] = False;
    $array["APP_MILTER_DKIM"]["NAME"] = "APP_MILTER_DKIM";
    $array["APP_MILTER_DKIM"]["TEXT"] = "dkim_about";
    $array["FRESHCLAM"]["INSTALLED"] = False;
    $array["FRESHCLAM"]["NAME"] = "APP_FRESHCLAM";
    $array["APP_CLUEBRINGER"]["INSTALLED"] = False;
    $array["DKIM_FILTER"]["INSTALLED"] = False;
    $array["DKIM_FILTER"]["NAME"] = "APP_DKIM_FILTER";
    $array["SPFMILTER"]["INSTALLED"] = False;
    $array["SPFMILTER"]["NAME"] = "APP_SPFMILTER";
    $array["APP_CLUEBRINGER"]["NAME"] = "APP_CLUEBRINGER";
    $array["MAILSPY"]["INSTALLED"] = False;
    $array["MAILSPY"]["NAME"] = "APP_MAILSPY";
    $array["KAVMILTER"]["INSTALLED"] = False;
    $array["KAS_MILTER"]["INSTALLED"] = False;
    $array["KAS3"]["INSTALLED"] = False;
    $array["BOGOM"]["INSTALLED"] = False;
    $array["BOGOM"]["NAME"] = "APP_BOGOM";
    $array["POLICYD_WEIGHT"]["INSTALLED"] = False;
    //$array["APP_ARTICA_POLICY"]["INSTALLED"]=False;
    $array["AMAVISD_MILTER"]["NAME"] = "APP_AMAVISD_MILTER";
    $array["KAS3"]["NAME"] = "APP_KAS3_MILTER";
    $array["SPAMASS_MILTER"]["NAME"] = "APP_SPAMASS_MILTER";
    $array["SPAMASSASSIN"]["NAME"] = "APP_SPAMASSASSIN";
    $array["KAVMILTER"]["NAME"] = "APP_KAVMILTER";
    $array["KAS_MILTER"]["NAME"] = "APP_KAS3_MILTER";
    $array["ASSP"]["INSTALLED"] = False;
    $array["ASSP"]["NAME"] = "APP_ASSP";
    if ($users->SPAMASS_MILTER_INSTALLED) {
        $array["SPAMASS_MILTER"]["INSTALLED"] = true;
        $array["SPAMASS_MILTER"]["TEXT"] = "feature_not_installed";
        $array["SPAMASS_MILTER"]["ENABLED"] = $users->SpamAssMilterEnabled;
        $array["SPAMASS_MILTER"]["TOKEN"] = "enable_spamassassin";
        $array["SPAMASS_MILTER"]["JS"] = "Loadjs('postfix.index.php?script=antispam')";
    }
    if ($users->DKIMFILTER_INSTALLED) {
        $array["DKIM_FILTER"]["INSTALLED"] = true;
    }
    if ($users->spamassassin_installed) {
        $APP_SPAMASSASSIN_TEXT = $tpl->_ENGINE_parse_body("{APP_SPAMASSASSIN_TEXT}");
        $spamassassin_in_amavis_text = $tpl->_ENGINE_parse_body("{spamassassin_in_amavis_text}");
        $array["SPAMASSASSIN"]["INSTALLED"] = True;
        $array["SPAMASSASSIN"]["TEXT"] = "{$APP_SPAMASSASSIN_TEXT}<br>{$spamassassin_in_amavis_text}";
        $array["SPAMASSASSIN"]["ENABLED"] = $users->EnableAmavisDaemon;
        $array["SPAMASSASSIN"]["LOCK"] = true;
        $array["SPAMASSASSIN"]["JS"] = "Loadjs('postfix.index.php?script=antispam')";
    } else {
        $array["SPAMASSASSIN"]["JS-INSTALL"] = "Loadjs('spamassassin.install.php');";
        //APP_SPAMASSASSIN
    }
    if ($users->AMAVIS_INSTALLED) {
        $array["AMAVISD"]["INSTALLED"] = true;
        $array["AMAVISD"]["TEXT"] = "enable_amavis_text";
        $array["AMAVISD"]["ENABLED"] = $users->EnableAmavisDaemon;
        $array["AMAVISD"]["TOKEN"] = "enable_amavis";
        $array["AMAVISD"]["JS"] = "Loadjs('amavis.index.php?ajax=yes')";
        //
        if ($users->EnableAmavisDaemon == 1) {
            $array["SPAMASS_MILTER"]["INSTALLED"] = true;
            $array["SPAMASS_MILTER"]["TEXT"] = "spamassassin_in_amavis_text";
            $array["SPAMASS_MILTER"]["ENABLED"] = 0;
            $array["SPAMASS_MILTER"]["LOCK"] = true;
        }
    } else {
        $array["AMAVISD"]["JS-INSTALL"] = "Loadjs('amavisd.install.php');";
    }
    if ($users->CLAMD_INSTALLED) {
        $EnableClamavDaemon = $sock->GET_INFO("EnableClamavDaemon");
        if (!is_numeric($EnableClamavDaemon)) {
//.........这里部分代码省略.........
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:101,代码来源:postfix.security.php

示例10: aiguilleuse

function aiguilleuse($hostname)
{
    $maincf = new maincf_multi($hostname);
    $PostFixEnableAiguilleuse = $maincf->GET("PostFixEnableAiguilleuse");
    if ($PostFixEnableAiguilleuse != 1) {
        return;
    }
    if (!is_dir("/etc/postfix-{$hostname}")) {
        @mkdir("/etc/postfix-{$hostname}", 0755, true);
    }
    echo "Starting......: " . date("H:i:s") . " Postfix \"{$hostname}\" save internal-routed parameters\n";
    @file_put_contents("/etc/postfix-{$hostname}/aiguilleur.db", base64_decode($maincf->GET_BIGDATA("PostFixAiguilleuseServers")));
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:13,代码来源:exec.postfix-multi.php

示例11: filters

function filters()
{
    $_GET["ou"] = $_SESSION["ou"];
    $main = new maincf_multi($_GET["hostname"], $_GET["ou"]);
    $tpl = new templates();
    $sock = new sockets();
    $page = CurrentPageName();
    $array_filters = unserialize(base64_decode($main->GET_BIGDATA("PluginsEnabled")));
    $ou_encoded = base64_encode($_GET["ou"]);
    $KasxFilterEnabled = $sock->GET_INFO("KasxFilterEnabled");
    $kavmilterEnable = $sock->GET_INFO("kavmilterEnable");
    $EnableArticaSMTPFilter = $sock->GET_INFO("EnableArticaSMTPFilter");
    $EnableArticaSMTPFilter = 0;
    $EnableDKFilter = $sock->GET_INFO("EnableDKFilter");
    $EnableDkimMilter = $sock->GET_INFO("EnableDkimMilter");
    $EnableCluebringer = $sock->GET_INFO("EnableCluebringer");
    $users = new usersMenus();
    $sock = new sockets();
    if ($users->kas_installed) {
        if ($KasxFilterEnabled == 1) {
            $array["APP_KAS3"] = $array_filters["APP_KAS3"];
        }
    }
    if ($users->KAV_MILTER_INSTALLED) {
        if ($kavmilterEnable == 1) {
            $array["APP_KAVMILTER"] = $array_filters["APP_KAVMILTER"];
        }
    }
    if ($users->MILTERGREYLIST_INSTALLED) {
        $array["APP_MILTERGREYLIST"] = $array_filters["APP_MILTERGREYLIST"];
    }
    if ($users->AMAVIS_INSTALLED) {
        $array["APP_AMAVIS"] = $array_filters["APP_AMAVIS"];
    }
    if ($users->OPENDKIM_INSTALLED) {
        if ($EnableDKFilter == 1) {
            $array["APP_OPENDKIM"] = $array_filters["APP_OPENDKIM"];
        }
    }
    if ($users->MILTER_DKIM_INSTALLED) {
        if ($EnableDkimMilter == 1) {
            $array["APP_MILTER_DKIM"] = $array_filters["APP_MILTER_DKIM"];
        }
    }
    if ($users->CLUEBRINGER_INSTALLED) {
        if ($EnableCluebringer == 1) {
            $array["APP_CLUEBRINGER"] = $array_filters["APP_CLUEBRINGER"];
        }
    }
    if ($EnableArticaSMTPFilter == 1) {
        $array["APP_ARTICA_FILTER"] = $array_filters["APP_ARTICA_FILTER"];
    }
    $array["APP_POSTFWD2"] = $array_filters["APP_POSTFWD2"];
    if ($array["APP_KAS3"] == 1) {
        $tr[] = Paragraphe("folder-caterpillar-64.png", "{as_plugin}", "{kaspersky_anti_spam_text}", "javascript:Loadjs('domains.edit.kas.php?ou={$ou_encoded}')");
    }
    if ($array["APP_KAVMILTER"] == 1) {
        $tr[] = Paragraphe("icon-antivirus-64.png", "{antivirus}", "{antivirus_text}", "javascript:Loadjs('domains.edit.kavmilter.ou.php?ou={$ou_encoded}')");
    }
    if ($array["APP_MILTERGREYLIST"] == 1) {
        $tr[] = Paragraphe("64-milter-greylist.png", "{APP_MILTERGREYLIST}", "{APP_MILTERGREYLIST_TEXT}", "javascript:Loadjs('domains.postfix.multi.milter-greylist.php?ou={$ou_encoded}&hostname={$_GET["hostname"]}')");
    }
    if ($array["APP_AMAVIS"] == 1) {
        $tr[] = Paragraphe("64-amavis.png", "{APP_AMAVISD_NEW}", "{APP_AMAVISD_NEW_ICON_TEXT}", "javascript:Loadjs('domains.postfix.multi.amavis.php?ou={$ou_encoded}&hostname={$_GET["hostname"]}')");
    }
    if ($array["APP_POSTFWD2"] == 1) {
        $tr[] = Paragraphe("Firewall-Secure-64.png", "{APP_POSTFWD2}", "{APP_POSTFWD2_TEXT}", "javascript:Loadjs('postfwd2.php?ou={$ou_encoded}&instance={$_GET["hostname"]}&byou=yes')");
    } else {
        $tr[] = Paragraphe("Firewall-Secure-64-grey.png", "{APP_POSTFWD2}", "{APP_POSTFWD2_TEXT}", "javascript:Loadjs('postfwd2.php?ou={$ou_encoded}&instance={$_GET["hostname"]}&byou=yes')");
    }
    $tr[] = Paragraphe("bg_forbiden-attachmt-64.png", "{attachment_blocking}", "{attachment_blocking_text}", "javascript:Loadjs('domains.edit.attachblocking.ou.php?ou={$ou_encoded}&hostname={$_GET["hostname"]}')");
    $html = CompileTr4($tr);
    $html = $tpl->_ENGINE_parse_body($html);
    echo $html;
    SET_CACHED(__FILE__, __FUNCTION__, "{$_GET["hostname"]}&ou={$_GET["ou"]}", $html);
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:76,代码来源:miniadm.messaging.postfix-multi.php

示例12: postfix_network_table

function postfix_network_table(){
	
	$main=new maincf_multi($_GET["hostname"],$_GET["ou"]);
	$nets=unserialize($main->GET_BIGDATA("mynetworks"));
	
	$html="<center>
<table cellspacing='0' cellpadding='0' border='0' class='tableView' style='width:100%'>
<thead class='thead'>
	<tr>
	<th colspan=3>{networks}</th>
	</tr>
</thead>
<tbody class='tbody'>";		

	if(is_array($nets)){
			while (list ($num, $val) = each ($nets) ){
				if($classtr=="oddRow"){$classtr=null;}else{$classtr="oddRow";}
				if(trim($val)==null){continue;}
				$html=$html . "
				<tr class=$classtr>
					<td width=1%><img src='img/folder-network-32.png'></td>
					<td style='font-size:16px'>$val</td>
					<td  width=1%>" . imgtootltip('delete-32.png','{delete} {network}',"PostFixDeleteMyNetwork($num)") ."</td>
				</tr>";
			}
		}
	
	$html=$html . "
	</tbody>
	</table>
	</center>";

	$tpl=new templates();
	echo $tpl->_ENGINE_parse_body($html);		
}
开发者ID:rsd,项目名称:artica-1.5,代码行数:35,代码来源:domains.postfix.multi.config.php

示例13: reconfigure_instance_mime_checks

function reconfigure_instance_mime_checks($hostname)
{
    $unix = new unix();
    $users = new usersMenus();
    $postconf = $unix->find_program("postconf");
    $postmulti = $unix->find_program("postmulti");
    if ($users->AMAVIS_INSTALLED) {
        $main = new maincf_multi($hostname);
        $array_filters = unserialize(base64_decode($main->GET_BIGDATA("PluginsEnabled")));
        if ($array_filters["APP_AMAVIS"] == 1) {
            @unlink("/etc/postfix-{$hostname}/mime_header_checks");
            shell_exec("{$postconf} -c \"/etc/postfix-{$hostname}\" -e \"mime_header_checks = \"");
            system("/usr/share/artica-postfix/bin/artica-install --amavis-reload");
            _start_instance($hostname);
            return;
        }
    }
    $sql = "SELECT * FROM smtp_attachments_blocking WHERE ou='{$_GET["ou"]}' AND hostname='{$hostname}' ORDER BY IncludeByName";
    $q = new mysql();
    $results = $q->QUERY_SQL($sql, "artica_backup");
    while ($ligne = @mysql_fetch_array($results, MYSQL_ASSOC)) {
        if ($ligne["IncludeByName"] == null) {
            continue;
        }
        $f[] = $ligne["IncludeByName"];
    }
    if (!is_array($f)) {
        @unlink("/etc/postfix-{$hostname}/mime_header_checks");
        shell_exec("{$postconf} -c \"/etc/postfix-{$hostname}\" -e \"mime_header_checks = \"");
        _start_instance($hostname);
        return;
    }
    $strings = implode("|", $f);
    echo "Starting......: Postfix \"{$hostname}\" " . count($f) . " extensions blocked\n";
    $pattern[] = "/^\\s*Content-(Disposition|Type).*name\\s*=\\s*\"?(.+\\.({$strings}))\"?\\s*\$/\tREJECT file attachment types is not allowed. File \"\$2\" has the unacceptable extension \"\$3\"";
    $pattern[] = "";
    @file_put_contents("/etc/postfix-{$hostname}/mime_header_checks", implode("\n", $pattern));
    shell_exec("{$postconf} -c \"/etc/postfix-{$hostname}\" -e \"mime_header_checks = regexp:/etc/postfix-{$hostname}/mime_header_checks\"");
}
开发者ID:brucewu16899,项目名称:artica,代码行数:39,代码来源:exec.postfix-multi.php

示例14: EnablePOSTFWD2

function EnablePOSTFWD2()
{
    $main = new maincf_multi($_GET["instance"]);
    $array_filters = unserialize(base64_decode($main->GET_BIGDATA("PluginsEnabled")));
    $array_filters["APP_POSTFWD2"] = $_GET["EnablePOSTFWD2"];
    $main->SET_BIGDATA("PluginsEnabled", base64_encode(serialize($array_filters)));
    $sock = new sockets();
    $sock->getFrameWork("cmd.php?postfwd2-restart={$_GET["instance"]}");
}
开发者ID:BillTheBest,项目名称:1.6.x,代码行数:9,代码来源:postfwd2.php

示例15: MultiplesInstances_status

function MultiplesInstances_status()
{
    $unix = new unix();
    $users = new usersMenus();
    $sock = new sockets();
    if (!$users->MILTERGREYLIST_INSTALLED) {
        if ($GLOBALS["DEBUG"]) {
            echo __FUNCTION__ . " NoT installed\n";
        }
        return null;
    }
    $main = new maincf_multi($GLOBALS["hostname"], $GLOBALS["ou"]);
    $array_filters = unserialize(base64_decode($main->GET_BIGDATA("PluginsEnabled")));
    $enabled = $array_filters["APP_MILTERGREYLIST"];
    $pid_path = "/var/spool/postfix/var/run/milter-greylist/{$GLOBALS["hostname"]}/greylist.pid";
    if ($GLOBALS["DEBUG"]) {
        echo __FUNCTION__ . "{$GLOBALS["hostname"]} ({$GLOBALS["ou"]}) -> enabled={$enabled}\n";
    }
    $master_pid = trim(@file_get_contents($pid_path));
    if ($GLOBALS["DEBUG"]) {
        echo __FUNCTION__ . "master_pid={$master_pid}\n";
    }
    $l[] = "[MILTER_GREYLIST]";
    $l[] = "service_name=APP_MILTERGREYLIST";
    $l[] = "master_version=" . GetVersionOf("milter-greylist");
    $l[] = "service_cmd=mgreylist";
    $l[] = "service_disabled={$enabled}";
    $l[] = "pid_path={$pid_path}";
    $l[] = "remove_cmd=--milter-grelist-remove";
    if (!$unix->process_exists($master_pid)) {
        $l[] = "running=0";
        $l[] = "";
        echo implode("\n", $l);
        exit;
    }
    $l[] = "running=1";
    $l[] = GetMemoriesOf($master_pid);
    $l[] = "";
    if ($GLOBALS["DEBUG"]) {
        echo __FUNCTION__ . "FINISH\n";
    }
    echo implode("\n", $l);
}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:43,代码来源:exec.milter-greylist.php


注:本文中的maincf_multi::GET_BIGDATA方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。