tweaks for this
This commit is contained in:
+5
-13
@@ -25,13 +25,16 @@ foreach($pages as $page){
|
||||
echo $response;
|
||||
}
|
||||
if(isset($_POST['view'])){
|
||||
if($_POST['view'] == "System"){header('location:phpsysinfo/index.php');}
|
||||
if($_POST['view'] == "Spectrogram"){include('spectrogram.php');}
|
||||
if($_POST['view'] == "Overview"){include('overview.php');}
|
||||
if($_POST['view'] == "Database"){include('viewdb.php');}
|
||||
if($_POST['view'] == "Species Stats"){
|
||||
include('stats.php');
|
||||
if(isset($_POST['species'])){
|
||||
$data = [ 'species' => $_POST['species'] ];
|
||||
httpPost('/stats.php', $data);}
|
||||
httpPost('/stats.php', $data);
|
||||
}
|
||||
}
|
||||
if($_POST['view'] == "History"){
|
||||
include('history.php');
|
||||
@@ -45,21 +48,11 @@ if(isset($_POST['view'])){
|
||||
</form>";
|
||||
}
|
||||
if($_POST['view'] == "Live Stream"){
|
||||
echo "<div class=\"stream\"><audio controls autoplay><source src=\"/stream\" type=\"audio/mpeg\"></audio></div>";}
|
||||
echo "<audio controls autoplay><source src=\"/stream\" type=\"audio/mpeg\"></audio>";}
|
||||
if($_POST['view'] == "Extractions"){
|
||||
include('play.php');
|
||||
$data = [];
|
||||
httpPost('/play.php', $data);}
|
||||
while($_POST['view'] == "Spectrogram"){
|
||||
ob_start();
|
||||
$time = time();
|
||||
echo str_pad("<img src=\"/spectrogram.png?nocache=$time\">", '4096');
|
||||
ob_flush();
|
||||
flush();
|
||||
sleep($config['RECORDING_LENGTH']);
|
||||
ob_clean();
|
||||
ob_end_clean();
|
||||
ob_end_flush();}
|
||||
if($_POST['view'] == "Settings"){
|
||||
if(isset($_POST['submit'])){
|
||||
$data = [
|
||||
@@ -100,7 +93,6 @@ if(isset($_POST['view'])){
|
||||
}
|
||||
include('scripts/advanced.php');
|
||||
}
|
||||
if($_POST['view'] == "System"){header('location:phpsysinfo/index.php');}
|
||||
if($_POST['view'] == "Log"){
|
||||
$url = 'http://birdnetpi.local:8080';
|
||||
header("location: $url;");}
|
||||
|
||||
Reference in New Issue
Block a user