Esempio n. 1
0
if(posix_getuid()<>0){die("Cannot be used in web server mode\n\n");}

	include_once(dirname(__FILE__) . '/ressources/class.users.menus.inc');
	include_once(dirname(__FILE__) . '/ressources/class.spamassassin.inc');
	include_once(dirname(__FILE__) . '/ressources/class.mysql.inc');
	include_once(dirname(__FILE__).  '/framework/class.unix.inc');
	include_once(dirname(__FILE__).  '/framework/frame.class.inc');
	include_once(dirname(__FILE__).  '/ressources/class.os.system.inc');
	include_once(dirname(__FILE__).  '/ressources/class.system.network.inc');	
	if(preg_match("#--verbose#",implode(" ",$argv))){$GLOBALS["VERBOSE"]=true;}
	if(preg_match("#--force#",implode(" ",$argv))){$GLOBALS["FORCE"]=true;}	

	if($argv[1]=="--build"){build();die();}
	if($argv[1]=="--multiples-start"){multiples_start();die();}
	if($argv[1]=="--multiples-status"){echo multiples_status();die();}
	if($argv[1]=="--multiples-restart"){multiples_restart();die();}
	if($argv[1]=="--multiples-stop"){multiples_stop();die();}
	
	
	


function build(){
 
	$sock=new sockets();
	$MAIN=unserialize(base64_decode($sock->GET_INFO("CrossRoadsParams")));
	
	@unlink("/etc/artica-postfix/croassroads.cmdline");

	if(!is_array($MAIN["BACKENDS"])){
Esempio n. 2
0
if (preg_match("#--verbose#", implode(" ", $argv))) {
    $GLOBALS["VERBOSE"] = true;
}
if (preg_match("#--force#", implode(" ", $argv))) {
    $GLOBALS["FORCE"] = true;
}
if ($argv[1] == "--build") {
    build();
    die;
}
if ($argv[1] == "--multiples-start") {
    multiples_start();
    die;
}
if ($argv[1] == "--multiples-status") {
    echo multiples_status();
    die;
}
if ($argv[1] == "--multiples-restart") {
    multiples_restart();
    die;
}
if ($argv[1] == "--multiples-stop") {
    multiples_stop();
    die;
}
function build()
{
    $sock = new sockets();
    $MAIN = unserialize(base64_decode($sock->GET_INFO("CrossRoadsParams")));
    @unlink("/etc/artica-postfix/croassroads.cmdline");