Ejemplo n.º 1
0
    die;
}
if ($argv[1] == "--database") {
    check_databases($bd);
    die;
}
if ($argv[1] == "--contextmenu") {
    plugin_contextmenu();
    die;
}
if ($argv[1] == "--build") {
    build();
    die;
}
if ($argv[1] == "--addressbook") {
    plugin_globaladdressbook();
    die;
}
if ($argv[1] == "--verifyTables") {
    verifyTables();
    die;
}
if ($argv[1] == "--hacks") {
    RoundCubeHacks();
    die;
}
if ($argv[1] == "--tableslist") {
    RoundCubeMysqlTablesList();
    die;
}
if (!$_GLOBAL["roundcube_installed"]) {
Ejemplo n.º 2
0
include_once(dirname(__FILE__) . '/ressources/class.apache.inc');
include_once(dirname(__FILE__) . '/framework/class.unix.inc');
include_once(dirname(__FILE__) . '/framework/frame.class.inc');

if(preg_match("#--verbose#",implode(" ",$argv))){$GLOBALS["VERBOSE"]=true;}
if($GLOBALS["VERBOSE"]){ini_set('html_errors',0);ini_set('display_errors', 1);ini_set('error_reporting', E_ALL);}
$bd="roundcubemail";
$GLOBALS["MYSQL_DB"]=$bd;	


if($argv[1]=="--sieverules"){plugin_sieverules();die();}
if($argv[1]=="--calendar"){plugin_calendar();die();}
if($argv[1]=="--database"){check_databases($bd);die();}
if($argv[1]=="--contextmenu"){plugin_contextmenu();die();}
if($argv[1]=="--build"){build();die();}
if($argv[1]=="--addressbook"){plugin_globaladdressbook();die();}
if($argv[1]=="--verifyTables"){verifyTables();die();}
if($argv[1]=="--hacks"){RoundCubeHacks();die();}
if($argv[1]=="--tableslist"){RoundCubeMysqlTablesList();die();}





if(!$_GLOBAL["roundcube_installed"]){die("Roundcube is not installed, aborting");}

$pid=getmypid();
$pidfile="/etc/artica-postfix/".basename(__FILE__).".pid";

$unix=new unix();
if($unix->process_exists($pid)){die();}