From cbdd06ff6bcb3c5cce1e3ca1f482f226a67166eb Mon Sep 17 00:00:00 2001 From: Alice Jacka Date: Tue, 31 May 2022 21:35:40 +1000 Subject: [PATCH 1/2] add option to hide DirectLink button this is useful if the root_path is outside of $_SERVER['DOCUMENT_ROOT'] --- tinyfilemanager.php | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/tinyfilemanager.php b/tinyfilemanager.php index 1dbad3d..c4f85d2 100644 --- a/tinyfilemanager.php +++ b/tinyfilemanager.php @@ -79,6 +79,9 @@ $iconv_input_encoding = 'UTF-8'; // Doc - https://www.php.net/manual/en/function.date.php $datetime_format = 'd.m.y H:i'; +// hide the direct link button in the actions collumn of file list +$hide_directLink = true; + // Allowed file extensions for create and rename files // e.g. 'txt,html,css,js' $allowed_file_extensions = ''; @@ -2050,8 +2053,10 @@ $tableTheme = (FM_THEME == "dark") ? "text-white bg-dark table-dark" : "bg-white - + + " href="#" onclick="rename('', '');return false;"> - + + From a0d313a90bce25dba7363fad9f73bc533f4b6162 Mon Sep 17 00:00:00 2001 From: Alice Jacka Date: Tue, 31 May 2022 21:44:54 +1000 Subject: [PATCH 2/2] correct $hide_directLink default value I think it's time for bed --- tinyfilemanager.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tinyfilemanager.php b/tinyfilemanager.php index c4f85d2..59e8a65 100644 --- a/tinyfilemanager.php +++ b/tinyfilemanager.php @@ -80,7 +80,7 @@ $iconv_input_encoding = 'UTF-8'; $datetime_format = 'd.m.y H:i'; // hide the direct link button in the actions collumn of file list -$hide_directLink = true; +$hide_directLink = false; // Allowed file extensions for create and rename files // e.g. 'txt,html,css,js' @@ -2054,7 +2054,7 @@ $tableTheme = (FM_THEME == "dark") ? "text-white bg-dark table-dark" : "bg-white + if (!$hide_directLink) {?> @@ -2121,7 +2121,7 @@ $tableTheme = (FM_THEME == "dark") ? "text-white bg-dark table-dark" : "bg-white + if (!$hide_directLink) {?>