From 245e6413cb1ab3ff09c4e1d2d6e4c36dfd800801 Mon Sep 17 00:00:00 2001 From: dlandon Date: Thu, 2 May 2024 08:07:27 -0500 Subject: [PATCH] Exclude folders from /mnt/ and .Recycle.Bin from all folders. --- emhttp/plugins/dynamix/include/FileTree.php | 46 +++++++++++++-------- 1 file changed, 29 insertions(+), 17 deletions(-) diff --git a/emhttp/plugins/dynamix/include/FileTree.php b/emhttp/plugins/dynamix/include/FileTree.php index 23835897d..c0fe22875 100644 --- a/emhttp/plugins/dynamix/include/FileTree.php +++ b/emhttp/plugins/dynamix/include/FileTree.php @@ -9,7 +9,7 @@ * * History: * - * 1.2.1 - pass in a list of folders to exclude from the dropdown list + * 1.2.1 - exclude folders from the /mnt/ root folder * 1.2.0 - adapted by Bergware for use in Unraid - support UTF-8 encoding & hardening * 1.1.1 - SECURITY: forcing root to prevent users from determining system's file structure (per DaveBrad) * 1.1.0 - adding multiSelect (checkbox) support (08/22/2014) @@ -49,33 +49,45 @@ $filters = (array)$_POST['filter']; $match = $_POST['match']; $checkbox = $_POST['multiSelect']=='true' ? "" : ""; -/* Add the pickexclude functionality to exclude folders from the list. */ -$excludedFolders = explode(",", $_POST['pickexclude']); +/* Excluded folders to not show in the dropdown in the '/mnt/' directory only. */ +$excludedFolders = ["RecycleBin", "addons", "disks", "remotes", "rootshare", "user0"]; echo "