From cbdd06ff6bcb3c5cce1e3ca1f482f226a67166eb Mon Sep 17 00:00:00 2001 From: Alice Jacka Date: Tue, 31 May 2022 21:35:40 +1000 Subject: [PATCH] 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;"> - + +