";
}
?>
Strassenkind Server Status
";
} else {
echo "";
}
}
add_button("Run ondemand commands", "ondemand");
add_button("Force ThreadR update", "git");
?>
') === false) {
$command = $command . " 2>&1";
}
$output = shell_exec($command);
echo " " . htmlspecialchars($command, $flags=ENT_DISALLOWED | ENT_HTML5 | ENT_QUOTES) . "
\n " . htmlspecialchars($output, $flags=ENT_DISALLOWED | ENT_HTML5 | ENT_QUOTES) . "
\n
";
}
}
}
// run ondemand command list if demanded
if (isset($_POST['ondemand'])) {
execute_command_list($ondemand_commands);
} elseif (isset($_POST['git'])) {
execute_command_list($git_commands);
} else {
//run status command list otherwise
execute_command_list($status_commands);
}
?>