From 3a3e2704496e270438a603fbdacc7635efd38f36 Mon Sep 17 00:00:00 2001 From: frederik Date: Sat, 6 Apr 2024 19:24:32 +0200 Subject: [PATCH] stats.php: cleanup html --- scripts/stats.php | 50 ++++++++++++++++++++--------------------------- 1 file changed, 21 insertions(+), 29 deletions(-) diff --git a/scripts/stats.php b/scripts/stats.php index 84ae9f7..f4c74a5 100644 --- a/scripts/stats.php +++ b/scripts/stats.php @@ -46,24 +46,23 @@ if(!file_exists($home."/BirdNET-Pi/scripts/disk_check_exclude.txt") || strpos(fi file_put_contents($home."/BirdNET-Pi/scripts/disk_check_exclude.txt", ""); file_put_contents($home."/BirdNET-Pi/scripts/disk_check_exclude.txt", "##start\n##end\n"); } -?> +if (get_included_files()[0] === __FILE__) { + echo ' - BirdNET-Pi DB - +'; +} +?> - -
-
+
- +
+ + + +
fetchArray(SQLITE3_ASSOC)) @@ -101,11 +104,7 @@ if(!file_exists($home."/BirdNET-Pi/scripts/disk_check_exclude.txt") || strpos(fi if ($index < count($birds)) { ?>
- - - -
- - +
@@ -225,7 +215,9 @@ while($results=$result3->fetchArray(SQLITE3_ASSOC)){

- +
+ + - - - @@ -253,8 +243,10 @@ $file = file_get_contents($home."/BirdNET-Pi/scripts/disk_check_exclude.txt"); file_put_contents($home."/BirdNET-Pi/scripts/disk_check_exclude.txt", "##start"."\n".implode("\n",$excludelines)."\n".substr($file, strpos($file, "##end"))); ?>
+
Occurrences:
Max Confidence:
Best Recording:
-
+
- - +'; +}