forked from root/threadr.lostcave.ddnss.de
removed some useless stuff
parent
b25ef05312
commit
3e6c23a002
|
@ -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 />";
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue