testing another installation
This commit is contained in:
+7
-3
@@ -3,7 +3,11 @@
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<div class="banner">
|
||||
<div class="logo">
|
||||
<a href="https://github.com/mcguirepr89/BirdNET-Pi.git" target="_blank"><img src="images/bird.png"></a>
|
||||
<?php if(isset($_GET['logo'])) {
|
||||
echo "<a href=\"https://github.com/mcguirepr89/BirdNET-Pi.git\" target=\"_blank\"><img style=\"width:60;height:60;\" src=\"images/bird.png\"></a>";
|
||||
} else {
|
||||
echo "<a href=\"https://github.com/mcguirepr89/BirdNET-Pi.git\" target=\"_blank\"><img src=\"images/bird.png\"></a>";
|
||||
}?>
|
||||
</div>
|
||||
<?php
|
||||
if(isset($_GET['stream'])){
|
||||
@@ -61,9 +65,9 @@ if(isset($_GET['log'])) {
|
||||
$logs = "http://birdnetpi.local:8080";
|
||||
}
|
||||
}
|
||||
header("Location: $logs");
|
||||
header("Location: $logs?logo=smaller");
|
||||
} elseif(isset($_GET['spectrogram'])){
|
||||
header("Location: /spectrogram.php");
|
||||
header("Location: /spectrogram.php?logo=smaller");
|
||||
} else {
|
||||
echo "
|
||||
<iframe src=\"/views.php\">
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
+18
-3
@@ -20,9 +20,11 @@
|
||||
<button type="submit" name="view" value="Recordings" form="views">Recordings</button>
|
||||
</form>
|
||||
<form action="index.php" method="GET" id="Log">
|
||||
<input type="hidden" name="logo" value="smaller">
|
||||
<button type="submit" name="log" value="log" form="Log">View Log</button>
|
||||
</form>
|
||||
<form action="index.php" method="GET" id="spectrogram">
|
||||
<input type="hidden" name="logo" value="smaller">
|
||||
<button style="float:none;" type="submit" name="spectrogram" value="view" id="spectrogram" form="spectrogram">Spectrogram</button>
|
||||
</form>
|
||||
<button href="javascript:void(0);" class="icon" onclick="myFunction()"><img src="images/menu.png"></button>
|
||||
@@ -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= "<h3>Updating . . . </h3>
|
||||
<p>Please wait 60 seconds</p>";
|
||||
echo str_pad($str, 4096);
|
||||
ob_flush();
|
||||
flush();
|
||||
}
|
||||
if(isset($command)){
|
||||
$results = shell_exec("$command 2>&1");
|
||||
echo "<pre>$results</pre>";
|
||||
}
|
||||
ob_end_flush();
|
||||
} else {include('overview.php');}
|
||||
?>
|
||||
<script>
|
||||
function myFunction() {
|
||||
|
||||
Reference in New Issue
Block a user