コード例 #1
0
ファイル: smtp.rules.php プロジェクト: brucewu16899/artica
function import_headers_regex()
{
    $main = new main_header_check();
    $main->import_examples();
}
コード例 #2
0
function import_headers_regex()
{
    $main_header = new main_header_check();
    $hash = $main_header->import_examples(true);
    writelogs("{$_GET["hostname"]}:: Import " . count($hash) . " rules", __FUNCTION__, __FILE__, __LINE__);
    if (is_array($hash)) {
        $main = new maincf_multi($_GET["hostname"], $_GET["ou"]);
        $main->SET_BIGDATA("header_check", base64_encode(serialize($hash)));
        $sock = new sockets();
        if ($_GET["hostname"] == "master") {
            $sock->getFrameWork("cmd.php?headers-check-postfix=yes");
        } else {
            $sock->getFrameWork("cmd.php?postfix-multi-settings={$_GET["hostname"]}");
        }
    }
}