Exemplo n.º 1
0
function buildFrontEnd()
{
    if (isset($_GET["right"])) {
        $cmd = LOCATE_PHP5_BIN2() . " /usr/share/artica-postfix/exec.admin.smtp.flow.status.php --force";
        error_log($cmd . " " . __FILE__);
        BuildingExecRightStatus("Scheduled", 10);
        NOHUP_EXEC(LOCATE_PHP5_BIN2() . " /usr/share/artica-postfix/exec.admin.smtp.flow.status.php --force");
        return null;
    }
    BuildingExecStatus("Scheduled", 10);
    error_log("[{$_SESSION["uid"]}]::schedule commande " . LOCATE_PHP5_BIN2() . " /usr/share/artica-postfix/exec.admin.status.postfix.flow.php --force");
    NOHUP_EXEC(LOCATE_PHP5_BIN2() . " /usr/share/artica-postfix/exec.admin.status.postfix.flow.php --force");
}
Exemplo n.º 2
0
function buildFrontEnd()
{
    if (isset($_GET["right"])) {
        $cmd = LOCATE_PHP5_BIN2() . " /usr/share/artica-postfix/exec.admin.smtp.flow.status.php --force";
        error_log($cmd . " " . __FILE__);
        BuildingExecRightStatus("Scheduled", 10);
        sys_THREAD_COMMAND_SET(LOCATE_PHP5_BIN2() . " /usr/share/artica-postfix/exec.admin.smtp.flow.status.php --force");
        return null;
    }
    BuildingExecStatus("Scheduled", 10);
    error_log("schedule commande " . LOCATE_PHP5_BIN2() . " /usr/share/artica-postfix/exec.admin.status.postfix.flow.php --force");
    sys_THREAD_COMMAND_SET(LOCATE_PHP5_BIN2() . " /usr/share/artica-postfix/exec.admin.status.postfix.flow.php --force");
}
function setup_center()
{
    if (!$GLOBALS["FORCE"]) {
        if (!Build_pid_func(__FILE__, __FUNCTION__)) {
            return false;
        }
        $time_file = "/etc/artica-postfix/croned.2/" . md5(__FILE__ . __FUNCTION__);
        $tt = file_time_sec($time_file);
        if ($tt < 30) {
            events(__FUNCTION__ . " {$tt} seconds, please wait 30s");
            return null;
        }
    }
    include_once dirname(__FILE__) . '/setup.index.php';
    error_log("Starting " . __FUNCTION__ . " in " . __FILE__);
    BuildingExecStatus("Setup center:: statistics...", 52);
    stat_packages();
    BuildingExecStatus("Setup center:: SMTP...", 54);
    smtp_packages();
    BuildingExecStatus("Setup center:: WEB...", 56);
    web_packages();
    BuildingExecStatus("Setup center:: Proxy...", 58);
    proxy_packages();
    BuildingExecStatus("Setup center:: Samba...", 60);
    samba_packages();
    BuildingExecStatus("Setup center:: System...", 62);
    system_packages();
    BuildingExecStatus("Setup center:: Xapian...", 64);
    xapian_packages();
    BuildingExecStatus("Setup center:: done...", 68);
    events(__FUNCTION__ . "() done..");
}