removed some useless stuff

master
Jan Danielzick 2020-02-12 05:30:30 +01:00
parent b25ef05312
commit 3e6c23a002
1 changed files with 4 additions and 6 deletions

View File

@ -32,16 +32,14 @@ echo "Done.";
// run ondemand command list if demanded
if (isset($_POST['ondemand'])) {
foreach ($ondemand_commands as $command) {
echo "<!-- $command\n";
$output = system($command);
echo "-->\n<pre class=\"commandLine\"> $command </pre>\n<pre class=\"commandLine\"> $output </pre>\n<hr />";
$output = shell_exec($command);
echo "<pre class=\"commandLine\"> $command </pre>\n<pre class=\"commandLine\"> $output </pre>\n<hr />";
}
} else {
//run status command list otherwise
foreach ($status_commands as $command) {
echo "<!-- $command\n";
$output = system($command);
echo "-->\n<pre class=\"commandLine\"> $command </pre>\n<pre class=\"commandLine\"> $output </pre>\n<hr />";
$output = shell_exec($command);
echo "<pre class=\"commandLine\"> $command </pre>\n<pre class=\"commandLine\"> $output </pre>\n<hr />";
}
}
?>