diff --git a/homepage/style.css b/homepage/style.css index 315f746..22bff90 100644 --- a/homepage/style.css +++ b/homepage/style.css @@ -286,11 +286,11 @@ button:hover { float: left; } -.systemcontrols form { +.systemcontrols form,.servicecontrols form { text-align: center; } -.systemcontrols button { +.systemcontrols button,.servicecontrols button { border: 2px solid black; background-color: rgb(219, 255, 235); padding: 12px; @@ -302,7 +302,7 @@ body::-webkit-scrollbar { } @media screen and (max-width: 1000px) { - .systemcontrols button{ + .systemcontrols button,.servicecontrols button { width: 60%; padding: 12px; background-color: rgb(219, 255, 235); @@ -350,7 +350,7 @@ body::-webkit-scrollbar { } @media screen and (max-width: 600px) { - .systemcontrols button{ + .systemcontrols button,.servicecontrols button { width: 80%; padding: 12px; background-color: rgb(219, 255, 235); diff --git a/homepage/views.php b/homepage/views.php index 6d775de..bbff324 100644 --- a/homepage/views.php +++ b/homepage/views.php @@ -34,6 +34,7 @@ if(isset($_POST['view'])){ if($_POST['view'] == "System Info"){header('location:phpsysinfo/index.php');} if($_POST['view'] == "System Controls"){include('scripts/system_controls.php');} + if($_POST['view'] == "Services"){include('scripts/service_controls.php');} if($_POST['view'] == "Spectrogram"){include('spectrogram.php');} if($_POST['view'] == "Overview"){include('overview.php');} if($_POST['view'] == "Today's Detections"){include('viewdb.php');} @@ -61,6 +62,7 @@ if(isset($_POST['view'])){ + diff --git a/scripts/service_controls.php b/scripts/service_controls.php index 8a14c8f..afef520 100644 --- a/scripts/service_controls.php +++ b/scripts/service_controls.php @@ -1,107 +1,80 @@ + - -
-Please wait 60-90 seconds
"; - echo str_pad($str, 4096); - ob_flush(); - flush(); -} -if(isset($command)){ -$results = shell_exec("$command 2>&1"); -echo "$results"; -} -} -ob_end_flush(); -?> -
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(); -?> +