예제 #1
0
    exit;
}
if (isset($_GET["dnsmasq-status"])) {
    dnsmasq_status();
    exit;
}
if (isset($_GET["Update-Utility-status"])) {
    UpdateUtility_status();
    exit;
}
if (isset($_GET["UpdateUtilityStartTask"])) {
    UpdateUtility_run();
    exit;
}
if (isset($_GET["dmesg"])) {
    dmesg();
    exit;
}
if (isset($_GET["artica-cron-tasks"])) {
    artica_cron_tasks();
    exit;
}
if (isset($_GET["copyFiles"])) {
    copyFiles();
    exit;
}
if (isset($_GET["DeleteFiles"])) {
    DeleteFiles();
    exit;
}
if (isset($_GET["port-list"])) {
예제 #2
0
/**
 * Emits an assertion error
 *
 * @param string $file the script file
 * @param string $line the line of the assertion
 * @param string $code the error message
 */
function assert_handler($file, $line, $code)
{
    dmesg(gettext("ERROR: Assertion failed in") . " [{$file}:{$line}]: {$code}");
}