Exemplo n.º 1
0
        ini_set('display_errors', 1);
        ini_set('error_reporting', E_ALL);
    }
}
if (!isset($GLOBALS["ARTICALOGDIR"])) {
    $GLOBALS["ARTICALOGDIR"] = @file_get_contents("/etc/artica-postfix/settings/Daemons/ArticaLogDir");
    if ($GLOBALS["ARTICALOGDIR"] == null) {
        $GLOBALS["ARTICALOGDIR"] = "/var/log/artica-postfix";
    }
}
if ($argv[1] == "--mysql-dirs") {
    Scan_mysql_dirs();
    die;
}
if ($argv[1] == "--shared") {
    shared();
    die;
}
if ($argv[1] == "--homes") {
    homes();
    die;
}
if (systemMaxOverloaded()) {
    writelogs("This system is too many overloaded, die()", __FUNCTION__, __FILE__, __LINE__);
    die;
}
ScanQueue();
die;
function ScanQueue()
{
    $unix = new unix();
Exemplo n.º 2
0
 function common()
 {
     if (function_exists("shared")) {
         shared();
     }
 }