removed some useless stuff
parent
b25ef05312
commit
3e6c23a002
|
@ -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 />";
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in New Issue