diff --git a/scripts/service_controls.php b/scripts/service_controls.php index b259fbd..6f26c1d 100644 --- a/scripts/service_controls.php +++ b/scripts/service_controls.php @@ -88,9 +88,19 @@ error_reporting(E_ALL); if(isset($_POST['submit'])){ $command = $_POST['submit']; -$results = shell_exec("$command"); -echo "$results"; +if($command == 'restart_services.sh'){ + $str= "

Restarting Services

+

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(); ?>