fixed the streamer mess

This commit is contained in:
mcguirepr89
2022-03-04 20:58:06 -05:00
parent e09c1fafb6
commit decf49e37c
3 changed files with 28 additions and 33 deletions
+4 -2
View File
@@ -23,7 +23,8 @@ if (!isset($_SERVER['PHP_AUTH_USER'])) {
if($submittedpwd == $caddypwd && $submitteduser == 'birdnet'){
echo "
<audio controls autoplay><source src=\"/stream\"></audio>
<h1><a href=\"\">BirdNET-Pi</a></h1>";
<h1><a href=\"\">BirdNET-Pi</a></h1>
</div>";
} else {
header('WWW-Authenticate: Basic realm="My Realm"');
header('HTTP/1.0 401 Unauthorized');
@@ -64,5 +65,6 @@ if(isset($_GET['log'])) {
header("Location: /spectrogram.php");
} else {
echo "
<iframe src=\"/views.php\">";
<iframe src=\"/views.php\">
</div>";
}
+4
View File
@@ -9,6 +9,10 @@ a {
text-decoration: none;
}
a:hover {
font-weight: bold;
}
h3 {
text-align: center;
}
+1 -12
View File
@@ -56,21 +56,11 @@ if($statement5 == False) {
$result5 = $statement5->execute();
$speciestally = $result5->fetchArray(SQLITE3_ASSOC);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Overview</title>
<style>
button, a, form {
padding: 0;
}
</style>
</head>
<body>
<div class="overview">
<table>
<tr>
@@ -99,10 +89,9 @@ padding: 0;
<button type="submit" name="species" value="<?php echo $mostrecent['Com_Name'];?>"><?php echo $mostrecent['Com_Name'];?>: </button>
<a href="https://wikipedia.org/wiki/<?php echo $sciname;?>" target="_blank"/><i><?php echo $mostrecent['Sci_Name'];?></i></a><br>Confidence: <?php echo $mostrecent['Confidence'];?><br>
<?php echo $mostrecent['Date']." ".$mostrecent['Time'];?><br><video controls poster="<?php echo $filename.".png";?>"><source src="<?php echo $filename;?>"></video></td>
</form>
</tr>
</table>
</form>
<?php
if (file_exists('/home/pi/BirdSongs/Extracted/Charts/'.$chart)) {
echo "<img class=\"centered\" src=\"/Charts/$chart?nocache=time()\">";