From 087c3f6fb19598c847e0b8eb4529938b393f8003 Mon Sep 17 00:00:00 2001 From: mcguirepr89 Date: Tue, 25 Jan 2022 14:42:47 -0500 Subject: [PATCH] adding new list_pages tool --- scripts/edit_pages.php | 46 ++++++++++++++++++++++++++++++++++++++++ scripts/list_pages.php | 14 +++++++----- scripts/list_scripts.php | 2 +- 3 files changed, 56 insertions(+), 6 deletions(-) create mode 100644 scripts/edit_pages.php diff --git a/scripts/edit_pages.php b/scripts/edit_pages.php new file mode 100644 index 0000000..4597b03 --- /dev/null +++ b/scripts/edit_pages.php @@ -0,0 +1,46 @@ +Moved.', htmlspecialchars($url)); + exit(); +} + +// read the textfile +$text = file_get_contents($file); + +?> + + + + +
+ + +
+ +
+ diff --git a/scripts/list_pages.php b/scripts/list_pages.php index 9205868..0d2b8bb 100644 --- a/scripts/list_pages.php +++ b/scripts/list_pages.php @@ -5,6 +5,10 @@ ' Calibri', 'Trebuchet MS', 'sans-serif'; box-sizing: border-box; } +button { + font-size: large; + padding: 5px; +} /* Create two unequal columns that floats next to each other */ .column { float: left; @@ -80,7 +84,7 @@ width: 100%;
-
+ "; + echo "
"; if(is_dir($dir.'/'.$file)){ - printFoldersRecursive($dir.'/'.$file); + printFoldersRecursive($dir.'/'.$file); } } } -printFoldersRecursive('../../BirdSongs/Extracted'); +printFoldersRecursive('/home/pi/BirdNET-Pi'); ?>
diff --git a/scripts/list_scripts.php b/scripts/list_scripts.php index 4f5128e..2ed0600 100644 --- a/scripts/list_scripts.php +++ b/scripts/list_scripts.php @@ -89,7 +89,7 @@ function printFoldersRecursive($dir) { if (is_dir($dir)){ if ($dh = opendir($dir)){ while (($file = readdir($dh)) !== false){ - if($file != '.' && $file != '..') { + if($file != '.' && $file != '..' && $file != 'birdnet' && $file != '.git') { $allfiles[] = $file; } }