events("DIE, using remote statistics Appliance with Syslog..");
    ParseSquidLogBrut(false);
    die;
}
$nohup = $unix->find_program("nohup");
$php = $unix->LOCATE_PHP5_BIN();
$nice = EXEC_NICE();
events("Executed pid {$mypid}");
events("Execute ParseSquidLogBrut()");
ParseSquidLogBrut(false);
events("Execute ParseSquidLogMain()");
ParseSquidLogMain();
events("Execute ParseSquidLogMainError()");
ParseSquidLogMainError();
events("Execute ParseUserAuth()");
ParseUserAuth();
events("Execute youtube()");
youtube();
events("Execute useragents()");
useragents();
events("Execute ParseUsersSize()");
ParseUsersSize();
events("Execute nudityScan()");
nudityScan();
events("Execute WordScanners()");
WordScanners();
$CategoriesDatabasesByCron = @file_get_contents("/etc/artica-postfix/settings/Daemons/CategoriesDatabasesByCron");
if (!is_numeric($CategoriesDatabasesByCron)) {
    $CategoriesDatabasesByCron = 1;
} else {
    $CategoriesDatabasesByCron = 0;
if ($argv[1] == "--nudity") {
    nudityScan();
    die;
}
if ($argv[1] == "--brut") {
    ParseSquidLogBrut(true);
    die;
}
if ($argv[1] == "--squid-brut-proc") {
    die;
}
if ($argv[1] == "--squid-sql-proc") {
    die;
}
if ($argv[1] == "--users-auth") {
    ParseUserAuth(true);
    die;
}
if ($argv[1] == "--main") {
    ParseSquidLogMain(true);
    die;
}
if ($argv[1] == "--clean-squid-queues") {
    CleanSquidQueues();
    die;
}
$pidtime = "/etc/artica-postfix/pids/" . basename(__FILE__) . ".time";
$pidfile = "/etc/artica-postfix/pids/" . basename(__FILE__) . ".pid";
$RepairHourtimeFile = "/etc/artica-postfix/pids/" . basename(__FILE__) . ".repair-hour.time";
$RepairHourYoutubetimeFile = "/etc/artica-postfix/pids/" . basename(__FILE__) . ".youtube-hour.time";
$CategorizetimeFile = "/etc/artica-postfix/pids/" . basename(__FILE__) . ".SquidCategorizeTablestimeFile.time";