diff --git a/scripts/system_controls.php b/scripts/system_controls.php index 2034dc0..39d2f5f 100644 --- a/scripts/system_controls.php +++ b/scripts/system_controls.php @@ -78,11 +78,26 @@ a {
Executing $command"; - shell_exec("$command"); +$command = $_POST['submit']; +if($command == 'update_birdnet.sh'){ + $str= "

Updating . . .

+

Please wait 60 seconds

"; + echo str_pad($str, 4096); + ob_flush(); + flush(); } +if(isset($command)){ +$results = shell_exec("$command 2>&1"); +echo "
$results
"; +} +} +ob_end_flush(); ?>
+