From 22b9615a2defcf0bbc909c59becfcf4c1950c821 Mon Sep 17 00:00:00 2001 From: ehpersonal38 <103586016+ehpersonal38@users.noreply.github.com> Date: Sun, 17 Apr 2022 09:46:43 -0400 Subject: [PATCH] iframe closing tags I was investigating why the top nav hamburger button didn't work on mobile when you were on system info, log, or streamlit page, and discovered the iframes didn't have closing tags! Also note to self: don't run random git commands you find on stackoverflow -- my birds.db was erased :((( (doing a cron backup every day now!) --- homepage/index.php | 2 +- homepage/views.php | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/homepage/index.php b/homepage/index.php index a24da86..c989aa9 100644 --- a/homepage/index.php +++ b/homepage/index.php @@ -55,5 +55,5 @@ if(isset($_GET['stream'])){ "; } echo " - "; diff --git a/homepage/views.php b/homepage/views.php index 7f35a7f..612f4ab 100644 --- a/homepage/views.php +++ b/homepage/views.php @@ -33,15 +33,15 @@
";} + if($_GET['view'] == "System Info"){echo "";} if($_GET['view'] == "System Controls"){include('scripts/system_controls.php');} if($_GET['view'] == "Services"){include('scripts/service_controls.php');} if($_GET['view'] == "Spectrogram"){include('spectrogram.php');} - if($_GET['view'] == "View Log"){echo "";} if($_GET['view'] == "Overview"){include('overview.php');} if($_GET['view'] == "Today's Detections"){include('todays_detections.php');} if($_GET['view'] == "Species Stats"){echo "

";include('stats.php');} - if($_GET['view'] == "Streamlit"){echo "";} if($_GET['view'] == "Daily Charts"){include('history.php');} if($_GET['view'] == "Tools"){ if (file_exists('./scripts/thisrun.txt')) { @@ -137,7 +137,7 @@ if(isset($_GET['view'])){ include('./scripts/exclude_list.php'); } if($_GET['view'] == "File"){ - echo ""; } if($_GET['view'] == "Webterm"){ if (file_exists('./scripts/thisrun.txt')) { @@ -156,7 +156,7 @@ if(isset($_GET['view'])){ $submitteduser = $_SERVER['PHP_AUTH_USER']; if($submittedpwd == $caddypwd && $submitteduser == 'birdnet'){ #ACCESS THE WEB TERMINAL - echo ""; } else { header('WWW-Authenticate: Basic realm="My Realm"'); header('HTTP/1.0 401 Unauthorized');