From 3e6c23a002e15e69cf17496ed4f9900713660c9e Mon Sep 17 00:00:00 2001 From: Jan Danielzick Date: Wed, 12 Feb 2020 05:30:30 +0100 Subject: [PATCH] removed some useless stuff --- strassenkind.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/strassenkind.php b/strassenkind.php index 406536e..b25bf8e 100644 --- a/strassenkind.php +++ b/strassenkind.php @@ -32,16 +32,14 @@ echo "Done."; // run ondemand command list if demanded if (isset($_POST['ondemand'])) { foreach ($ondemand_commands as $command) { - echo "\n
 $command 
\n
 $output 
\n
"; + $output = shell_exec($command); + echo "
 $command 
\n
 $output 
\n
"; } } else { //run status command list otherwise foreach ($status_commands as $command) { - echo "\n
 $command 
\n
 $output 
\n
"; + $output = shell_exec($command); + echo "
 $command 
\n
 $output 
\n
"; } } ?>