예제 #1
0
    BuildSSLTables();
    die;
}
if ($argv[1] == "--testcnx") {
    $GLOBALS["OUTPUT"] = true;
    TESTCONNECTION();
    die;
}
if ($argv[1] == "--clean-all-sessions") {
    $GLOBALS["OUTPUT"] = true;
    CLEAN_ALL_SESSIONS();
    die;
}
if ($argv[1] == "--reconfigure-progress") {
    $GLOBALS["OUTPUT"] = true;
    RECONFIGURE_PROGRESS();
    die;
}
function build_progress($text, $pourc)
{
    $array["POURC"] = $pourc;
    $array["TEXT"] = $text;
    echo "[{$pourc}]: {$text}\n";
    @file_put_contents($GLOBALS["CACHEFILE"], serialize($array));
    @chmod($GLOBALS["CACHEFILE"], 0777);
}
function build_progress_reconfigure($text, $pourc)
{
    $filename = "/usr/share/artica-postfix/ressources/logs/web/hostpot.reconfigure.progress";
    $array["POURC"] = $pourc;
    $array["TEXT"] = $text;
예제 #2
0
function EMERGENCY_ON()
{
    $sock = new sockets();
    $sock->SET_INFO("ArticaHotSpotEmergency", 1);
    RECONFIGURE_PROGRESS(true);
}