Changed paths to relative to support home-assistant ingress (#179)

This commit is contained in:
Jason Rhubottom
2024-08-25 00:55:17 -07:00
committed by GitHub
parent 7e7c31a227
commit b18172304e
4 changed files with 18 additions and 18 deletions
+2 -2
View File
@@ -48,8 +48,8 @@ if(isset($_GET['stream'])){
if(isset($_GET['filename'])) {
$filename = $_GET['filename'];
echo "
<iframe src=\"/views.php?view=Recordings&filename=$filename\"></iframe>";
<iframe src=\"views.php?view=Recordings&filename=$filename\"></iframe>";
} else {
echo "
<iframe src=\"/views.php\"></iframe>";
<iframe src=\"views.php\"></iframe>";
}
+3 -3
View File
@@ -120,13 +120,13 @@ if(isset($_GET['view'])){
include('scripts/service_controls.php');
}
if($_GET['view'] == "Spectrogram"){include('spectrogram.php');}
if($_GET['view'] == "View Log"){echo "<body style=\"scroll:no;overflow-x:hidden;\"><iframe style=\"width:calc( 100% + 1em);\" src=\"/log\"></iframe></body>";}
if($_GET['view'] == "View Log"){echo "<body style=\"scroll:no;overflow-x:hidden;\"><iframe style=\"width:calc( 100% + 1em);\" src=\"log\"></iframe></body>";}
if($_GET['view'] == "Overview"){include('overview.php');}
if($_GET['view'] == "Todays Detections"){include('todays_detections.php');}
if($_GET['view'] == "Kiosk"){$kiosk = true;include('todays_detections.php');}
if($_GET['view'] == "Species Stats"){include('stats.php');}
if($_GET['view'] == "Weekly Report"){include('weekly_report.php');}
if($_GET['view'] == "Streamlit"){echo "<iframe src=\"/stats\"></iframe>";}
if($_GET['view'] == "Streamlit"){echo "<iframe src=\"stats\"></iframe>";}
if($_GET['view'] == "Daily Charts"){include('history.php');}
if($_GET['view'] == "Tools"){
ensure_authenticated();
@@ -240,7 +240,7 @@ if(isset($_GET['view'])){
}
if($_GET['view'] == "Webterm"){
ensure_authenticated('You cannot access the web terminal');
echo "<iframe src='/terminal'></iframe>";
echo "<iframe src='terminal'></iframe>";
}
} elseif(isset($_GET['submit'])) {
ensure_authenticated();