diff --git a/homepage/images/version.svg b/homepage/images/version.svg index 1d17fee..3cc111f 100644 --- a/homepage/images/version.svg +++ b/homepage/images/version.svg @@ -1 +1 @@ -SQLite: 0.12SQLite0.12 \ No newline at end of file +0.130.13 \ No newline at end of file diff --git a/homepage/index.php b/homepage/index.php index caccab9..221e6a1 100644 --- a/homepage/index.php +++ b/homepage/index.php @@ -36,7 +36,7 @@ if (!isset($_SERVER['PHP_AUTH_USER'])) {
-

BirdNET-Pi

+

BirdNET-Pi🍀 "; } if(isset($_GET['log'])) { diff --git a/homepage/style.css b/homepage/style.css index bdf9f1b..2723879 100644 --- a/homepage/style.css +++ b/homepage/style.css @@ -23,7 +23,7 @@ margin-right: auto; } -.banner img { +.logo img { position: absolute; top: 0; left: 0; @@ -90,6 +90,8 @@ vertical-align: middle; } + + .history table,.history img { width: auto; margin-left: auto; @@ -204,6 +206,11 @@ body::-webkit-scrollbar { } @media screen and (max-width: 600px) { + .stats img { + width: 100%; + margin-left:auto; + margin-rigth:auto; + } .viewdb table,.overview img { width: 100% } diff --git a/homepage/views.php b/homepage/views.php index 38f6b22..ac6469f 100644 --- a/homepage/views.php +++ b/homepage/views.php @@ -47,6 +47,8 @@ if(isset($_POST['view'])){ echo "
+ +
"; @@ -113,6 +115,42 @@ if(isset($_POST['view'])){ } include('scripts/exclude_list.php'); } + if($_POST['view'] == "File"){ + header('Location: scripts/filemanager/filemanager.php'); + } + if($_POST['view'] == "Webterm"){ + if (file_exists('/home/pi/BirdNET-Pi/thisrun.txt')) { + $config = parse_ini_file('/home/pi/BirdNET-Pi/thisrun.txt'); + } elseif (file_exists('/home/pi/BirdNET-Pi/firstrun.ini')) { + $config = parse_ini_file('/home/pi/BirdNET-Pi/firstrun.ini'); + } + $caddypwd = $config['CADDY_PWD']; + if (!isset($_SERVER['PHP_AUTH_USER'])) { + header('WWW-Authenticate: Basic realm="My Realm"'); + header('HTTP/1.0 401 Unauthorized'); + echo 'You cannot access the web terminal'; + exit; + } else { + $submittedpwd = $_SERVER['PHP_AUTH_PW']; + $submitteduser = $_SERVER['PHP_AUTH_USER']; + if($submittedpwd == $caddypwd && $submitteduser == 'birdnet'){ + #ACCESS THE WEB TERMINAL + if(empty($config['BIRDNETLOG_URL']) == false) { + $webterm = $config['WEBTERMINAL_URL']; + } elseif(empty($config['BIRDNETPI_URL'] == false)) { + $webterm = $config['BIRDNETPI_URL'].":8888"; + } else { + $webterm = "http://birdnetpi.local:8888"; + } + header("Location: $webterm"); + } else { + header('WWW-Authenticate: Basic realm="My Realm"'); + header('HTTP/1.0 401 Unauthorized'); + echo 'You cannot access the web terminal'; + exit; + } + } + } }else{ include('overview.php');} ?> diff --git a/scripts/filemanager/filemanager.php b/scripts/filemanager/filemanager.php index 1db4bb8..9450f33 100644 --- a/scripts/filemanager/filemanager.php +++ b/scripts/filemanager/filemanager.php @@ -3342,9 +3342,9 @@ function fm_show_nav_path($path) } ?>