diff --git a/homepage/index.php b/homepage/index.php index 0aed13a..0fe3688 100644 --- a/homepage/index.php +++ b/homepage/index.php @@ -9,6 +9,7 @@ echo ""; }?> +
+

BirdNET-Pi

"; } else { @@ -42,34 +44,17 @@ if(isset($_GET['stream'])){
+

BirdNET-Pi

"; } if(isset($_GET['log'])) { if (file_exists('/home/pi/BirdNET-Pi/thisrun.txt')) { - $config = parse_ini_file('/home/pi/BirdNET-Pi/thisrun.txt'); - if(empty($config['BIRDNETLOG_URL']) !== true) { - $logs = $config['BIRDNETLOG_URL']; - } elseif(empty($config['BIRDNETPI_URL'] !== true)) { - $logs = $config['BIRDNETPI_URL'].":8080"; - } else { - $logs = "http://birdnetpi.local:8080"; - } - } elseif (file_exists('/home/pi/BirdNET-Pi/firstrun.ini')) { - $config = parse_ini_file('/home/pi/BirdNET-Pi/firstrun.ini'); - if(empty($config['BIRDNETLOG_URL']) !== true){ - $logs = $config['BIRDNETLOG_URL']; - } elseif(empty($config['BIRDNETPI_URL'] !== true)) { - $logs = $config['BIRDNETPI_URL'].":8080"; - } else { - $logs = "http://birdnetpi.local:8080"; - } - } - header("Location: $logs?logo=smaller"); + header("Location: /log");} } elseif(isset($_GET['spectrogram'])){ - header("Location: /spectrogram.php?logo=smaller"); + header("Location: /spectrogram.php"); } else { - echo " + echo "