diff --git a/homepage/index.php b/homepage/index.php
index 938247b..0aed13a 100644
--- a/homepage/index.php
+++ b/homepage/index.php
@@ -3,7 +3,11 @@
-

+

";
+} else {
+echo "

";
+}?>
diff --git a/homepage/style.css b/homepage/style.css
index 7a056cd..352964c 100644
--- a/homepage/style.css
+++ b/homepage/style.css
@@ -285,6 +285,16 @@ button:hover {
float: left;
}
+.systemcontrols form {
+ text-align: center;
+}
+
+.systemcontrols button {
+ border: 2px solid black;
+ background-color: rgb(159, 226, 155);
+ width: 20%;
+}
+
body::-webkit-scrollbar {
display:none
}
diff --git a/homepage/views.php b/homepage/views.php
index b723ad8..c8e8b5d 100644
--- a/homepage/views.php
+++ b/homepage/views.php
@@ -20,9 +20,11 @@
@@ -156,7 +158,7 @@ if(isset($_POST['view'])){
} else {
$webterm = "http://birdnetpi.local:8888";
}
- header("Location: $webterm");
+ header("Location: $webterm");
} else {
header('WWW-Authenticate: Basic realm="My Realm"');
header('HTTP/1.0 401 Unauthorized');
@@ -165,8 +167,21 @@ if(isset($_POST['view'])){
}
}
}
-}else{
- include('overview.php');}
+} elseif(isset($_POST['submit'])) {
+ $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();
+} else {include('overview.php');}
?>