From c5a49c1cca854466c7d75e0d0c75c0aaeb10c1c6 Mon Sep 17 00:00:00 2001
From: mcguirepr89
Date: Fri, 25 Feb 2022 11:35:47 -0500
Subject: [PATCH] newif overhauls so far
---
homepage/external.html | 60 ----
homepage/footer.html | 22 --
homepage/index.html | 42 ---
homepage/index.php | 54 +++
homepage/menu.html | 92 -----
homepage/menu_de.html | 80 -----
homepage/mobile.html | 509 ----------------------------
homepage/top.html | 51 ---
homepage/top_de.html | 51 ---
scripts/add_to_exclude.php | 14 -
scripts/add_to_include.php | 14 -
scripts/clear_all_data.sh | 2 -
scripts/del_from_exclude.php | 22 --
scripts/del_from_include.php | 22 --
scripts/exclude_list.php | 117 ++-----
scripts/filemanager/filemanager.php | 2 +-
scripts/include_list.php | 95 +-----
scripts/index.html | 2 +-
scripts/install_services.sh | 2 -
19 files changed, 83 insertions(+), 1170 deletions(-)
delete mode 100644 homepage/external.html
delete mode 100644 homepage/footer.html
delete mode 100644 homepage/index.html
delete mode 100644 homepage/menu.html
delete mode 100644 homepage/menu_de.html
delete mode 100644 homepage/mobile.html
delete mode 100644 homepage/top.html
delete mode 100644 homepage/top_de.html
delete mode 100644 scripts/add_to_exclude.php
delete mode 100644 scripts/add_to_include.php
delete mode 100644 scripts/del_from_exclude.php
delete mode 100644 scripts/del_from_include.php
diff --git a/homepage/external.html b/homepage/external.html
deleted file mode 100644
index ec8343d..0000000
--- a/homepage/external.html
+++ /dev/null
@@ -1,60 +0,0 @@
-
-
-HTML Frames Example - Content
-
-
-
-tbc....
-Thanks
-stefan kahl
-patrick mcguire
-Similar Systems
-Technical Details
-machine learning
-deep learning
-Used Tools
-SoX
-ffmpeg
-Python
-Tensorfflow (Lite)
-Rasberian OS
-Disclaimer
-Other Systems
-links to other systems
-
-
-
-Content
-Replacing the Contents of the Current Frame
-Clicking on these links will open the new page within the current frame.
-
-
-Replacing the Whole Frameset
-When you click on any of the following links, the whole frameset is replaced with the new website. This is because we're using target="_top" in the anchor links.
-
-
-Open a New Window
-These links open in a new browser window. This is because we use target="_blank".
-
-
-
-
\ No newline at end of file
diff --git a/homepage/footer.html b/homepage/footer.html
deleted file mode 100644
index 9741849..0000000
--- a/homepage/footer.html
+++ /dev/null
@@ -1,22 +0,0 @@
-
-
-HTML Frames Example - Footer
-
-
-
- Play Live Audio
-
-
-
diff --git a/homepage/index.html b/homepage/index.html
deleted file mode 100644
index a1294b0..0000000
--- a/homepage/index.html
+++ /dev/null
@@ -1,42 +0,0 @@
-
-
-
-
-
+
All Species Labels
-
-
- Add to list
- Remove from list
-
+
Add to list
+
Remove from list
-
Excluded Species List
-
-
- Please Select
+
+
+ Please Select
$lines";
+ $filename = '/home/pi/BirdNET-Pi/exclude_species_list.txt';
+$eachline = file($filename, FILE_IGNORE_NEW_LINES);
+foreach($eachline as $lines){
+ echo "$lines ";
}?>
+
-
-
diff --git a/scripts/filemanager/filemanager.php b/scripts/filemanager/filemanager.php
index 1db4bb8..79e9df1 100644
--- a/scripts/filemanager/filemanager.php
+++ b/scripts/filemanager/filemanager.php
@@ -3344,7 +3344,7 @@ function fm_show_nav_path($path)
BirdNET-Pi Homepage
-
+
diff --git a/scripts/include_list.php b/scripts/include_list.php
index 9cfe118..64b5d50 100644
--- a/scripts/include_list.php
+++ b/scripts/include_list.php
@@ -1,94 +1,19 @@
and add php start and close tag
-//comment these two lines when code started working fine
error_reporting(E_ALL);
ini_set('display_errors',1);
-$filename = 'labels.txt';
+$filename = 'scripts/labels.txt';
$eachlines = file($filename, FILE_IGNORE_NEW_LINES);
?>
-
-
-
+
All Species Labels
-
+
Please Select
$lines";
}?>
+
-
-
- Add to list
- Remove from list
-
+
Add to list
+
Remove from list
-
Included Species List
-
+
Please Select
$lines";
}?>
+
-
-
diff --git a/scripts/index.html b/scripts/index.html
index 033ac3b..5686399 100644
--- a/scripts/index.html
+++ b/scripts/index.html
@@ -73,7 +73,7 @@ a {
-
+
Web Terminal
diff --git a/scripts/install_services.sh b/scripts/install_services.sh
index 211a6a1..0686de4 100755
--- a/scripts/install_services.sh
+++ b/scripts/install_services.sh
@@ -158,8 +158,6 @@ create_necessary_dirs() {
sudo -u ${USER} ln -fs $(dirname ${my_dir})/templates/green_bootstrap.css ${HOME}/phpsysinfo/templates/
sudo -u ${USER} ln -fs $(dirname ${my_dir})/templates/index_bootstrap.html ${HOME}/phpsysinfo/templates/html
- echo "Setting Wttr.in URL to "${LATITUDE}", "${LONGITUDE}""
- sudo -u${USER} sed -i "s/https:\/\/v2.wttr.in\//https:\/\/v2.wttr.in\/"${LATITUDE},${LONGITUDE}"/g" $(dirname ${my_dir})/homepage/menu.html
chmod -R g+rw $(dirname ${my_dir})
chmod -R g+rw ${RECS_DIR}
}