From 419b9da3145e2aa685a59ab4ecab3a9c66b59c95 Mon Sep 17 00:00:00 2001 From: mcguirepr89 Date: Tue, 8 Mar 2022 10:08:59 -0500 Subject: [PATCH] adding service controls --- homepage/style.css | 8 +- homepage/views.php | 2 + scripts/service_controls.php | 185 +++++++++++++++-------------------- scripts/system_controls.php | 28 +----- 4 files changed, 87 insertions(+), 136 deletions(-) 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 @@ + - - -
-
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
-
-Restarting Services -

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

Live Audio Stream

+ + + + +
+
+

Web Terminal

+ + + + +
+
+

BirdNET Log

+ + + + +
+
+

Extraction Service

+ + + + +
+
+

BirdNET Analysis Server

+ + + + +
+
+

BirdNET Analysis Client

+ + + + +
+
+

Recording Service

+ + + + +
+
+

Chart Viewer

+ + + + +
+
+

Spectrogram Viewer

+ + + + +
+
+

Pushed Notifications

+ + + + +
+
+ +
+
diff --git a/scripts/system_controls.php b/scripts/system_controls.php index 49f7363..cff40b3 100644 --- a/scripts/system_controls.php +++ b/scripts/system_controls.php @@ -1,29 +1,8 @@ -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(); -?> +
+
@@ -37,7 +16,4 @@ ob_end_flush();
-
- -