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 // run ondemand command list if demanded
if (isset($_POST['ondemand'])) { if (isset($_POST['ondemand'])) {
foreach ($ondemand_commands as $command) { foreach ($ondemand_commands as $command) {
echo "<!-- $command\n"; $output = shell_exec($command);
$output = system($command); echo "<pre class=\"commandLine\"> $command </pre>\n<pre class=\"commandLine\"> $output </pre>\n<hr />";
echo "-->\n<pre class=\"commandLine\"> $command </pre>\n<pre class=\"commandLine\"> $output </pre>\n<hr />";
} }
} else { } else {
//run status command list otherwise //run status command list otherwise
foreach ($status_commands as $command) { foreach ($status_commands as $command) {
echo "<!-- $command\n"; $output = shell_exec($command);
$output = system($command); echo "<pre class=\"commandLine\"> $command </pre>\n<pre class=\"commandLine\"> $output </pre>\n<hr />";
echo "-->\n<pre class=\"commandLine\"> $command </pre>\n<pre class=\"commandLine\"> $output </pre>\n<hr />";
} }
} }
?> ?>