コード例 #1
0
    $instance = $_GET["instance"];
    if ($instance == "master") {
        $cmd = LOCATE_PHP5_BIN2() . " /usr/share/artica-postfix/exec.postfix.maincf.php --ssl";
        writelogs_framework($cmd, __FUNCTION__, __FILE__, __LINE__);
        sys_THREAD_COMMAND_SET($cmd);
        $cmd = LOCATE_PHP5_BIN2() . " /usr/share/artica-postfix/exec.postfix.hashtables.php --transport";
        writelogs_framework($cmd, __FUNCTION__, __FILE__, __LINE__);
        sys_THREAD_COMMAND_SET($cmd);
        return;
    }
    $cmd = LOCATE_PHP5_BIN2() . " /usr/share/artica-postfix/exec.postfix-multi.php --instance-reconfigure \"{$instance}\"";
    writelogs_framework($cmd, __FUNCTION__, __FILE__, __LINE__);
    sys_THREAD_COMMAND_SET($cmd);
}
if (isset($_GET["postfix-notifs"])) {
    postfix_notifs();
    exit;
}
function postfix_notifs()
{
    $instance = $_GET["hostname"];
    if ($instance == "master") {
        $cmd = LOCATE_PHP5_BIN2() . " /usr/share/artica-postfix/exec.postfix.maincf.php --notifs-templates";
        writelogs_framework($cmd, __FUNCTION__, __FILE__, __LINE__);
        sys_THREAD_COMMAND_SET($cmd);
        return;
    }
    $cmd = LOCATE_PHP5_BIN2() . " /usr/share/artica-postfix/exec.postfix-multi.php --instance-reconfigure \"{$instance}\"";
    writelogs_framework($cmd, __FUNCTION__, __FILE__, __LINE__);
    sys_THREAD_COMMAND_SET($cmd);
}
コード例 #2
0
ファイル: cmd.php プロジェクト: rsd/artica-1.5
		writelogs_framework($cmd,__FUNCTION__,__FILE__,__LINE__);
		sys_THREAD_COMMAND_SET($cmd);
		
		$cmd=LOCATE_PHP5_BIN2()." /usr/share/artica-postfix/exec.postfix.hashtables.php --transport";
		writelogs_framework($cmd,__FUNCTION__,__FILE__,__LINE__);
		sys_THREAD_COMMAND_SET($cmd);		
		return;
	}
	
	
	$cmd=LOCATE_PHP5_BIN2()." /usr/share/artica-postfix/exec.postfix-multi.php --instance-reconfigure \"$instance\"";
	writelogs_framework($cmd,__FUNCTION__,__FILE__,__LINE__);
	sys_THREAD_COMMAND_SET($cmd);			
}

if(isset($_GET["postfix-notifs"])){postfix_notifs();exit;}

function postfix_notifs(){
	$instance=$_GET["hostname"];
	if($instance=="master"){
		$cmd=LOCATE_PHP5_BIN2()." /usr/share/artica-postfix/exec.postfix.maincf.php --notifs-templates";
		writelogs_framework($cmd,__FUNCTION__,__FILE__,__LINE__);
		sys_THREAD_COMMAND_SET($cmd);
		return;
	}
	
	$cmd=LOCATE_PHP5_BIN2()." /usr/share/artica-postfix/exec.postfix-multi.php --instance-reconfigure \"$instance\"";
	writelogs_framework($cmd,__FUNCTION__,__FILE__,__LINE__);
	sys_THREAD_COMMAND_SET($cmd);	
}