Esempio n. 1
0
function CreatePidFile($PidFile)
{
    if (!CheckDaemon($PidFile)) {
        return false;
    }
    if (file_exists($PidFile)) {
        echo "Error: Pidfile (" . $PidFile . ") already present at " . __FILE__ . ":" . __LINE__ . "!\n";
        return false;
    } else {
        if ($pidfile = @fopen($PidFile, "w")) {
            fputs($pidfile, posix_getpid());
            fclose($pidfile);
            return true;
        } else {
            echo "can't create Pidfile {$PidFile} at " . __FILE__ . ":" . __LINE__ . "!\n";
            return false;
        }
    }
}
Esempio n. 2
0
    exit;
}
if (isset($_GET["AdminDeleteAllSqlEvents"])) {
    warnings_delete_all();
    exit;
}
if (isset($_GET["ShowFileLogs"])) {
    ShowFileLogs();
    exit;
}
if (isset($_GET["buildtables"])) {
    CheckTables();
    exit;
}
if (isset($_GET["CheckDaemon"])) {
    CheckDaemon();
    exit;
}
if (isset($_GET["EmergencyStart"])) {
    EmergencyStart();
    exit;
}
if (isset($_GET["memcomputer"])) {
    status_computer();
    exit;
}
if (isset($_GET["mem-dump-js"])) {
    status_memdump_load();
    exit;
}
if (isset($_GET["mem-dump"])) {
Esempio n. 3
0
if(isset($_GET["StartStopService-popup"])){StartStopService_popup();exit;}
if(isset($_GET["StartStopService-perform"])){StartStopService_perform();exit;}
if(isset($_GET["postfix-status-right"])){echo status_postfix();exit;}

if(isset($_GET["graph"])){graph();exit;}
if(isset($_GET["start-all-services"])){START_ALL_SERVICES();exit;}
if($_GET["status"]=="left"){status_left();exit;}
if($_GET["status"]=="right"){status_right();exit;}



if(isset($_GET["postfix-status"])){POSTFIX_STATUS();exit;}
if(isset($_GET["AdminDeleteAllSqlEvents"])){warnings_delete_all();exit;}
if(isset($_GET["ShowFileLogs"])){ShowFileLogs();exit;}
if(isset($_GET["buildtables"])){CheckTables();exit;}
if(isset($_GET["CheckDaemon"])){CheckDaemon();exit;}
if(isset($_GET["EmergencyStart"])){EmergencyStart();exit;}
if(isset($_GET["memcomputer"])){status_computer();exit;}
if(isset($_GET["mem-dump"])){status_memdump();exit;}
if(isset($_GET["memory-status"])){status_memdump_js();exit;}
if(isset($_GET["artica-meta"])){artica_meta();exit;}

page($users);

function warnings_js(){
	$page=CurrentPageName();
	$tpl=new templates();
	$title=$tpl->_ENGINE_parse_body("{$_GET["count"]} {warnings}");
	echo "YahooWinS('330','$page?warnings-popup=yes','$title');";