From dca5c530685c238ea9e0df7c1ff6b630827891ed Mon Sep 17 00:00:00 2001 From: Roni <54395471+Roni-Neto@users.noreply.github.com> Date: Tue, 4 May 2021 02:10:30 -0300 Subject: [PATCH] added name of the file being edited added name of the file being edited and a back button in a better location --- tinyfilemanager.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tinyfilemanager.php b/tinyfilemanager.php index 60dfad1..ba2f670 100644 --- a/tinyfilemanager.php +++ b/tinyfilemanager.php @@ -1711,6 +1711,7 @@ if (isset($_GET['edit'])) { fm_set_msg('File not found', 'error'); fm_redirect(FM_SELF_URL . '?p=' . urlencode(FM_PATH)); } + $editFile = ' : '. $file. ''; header('X-XSS-Protection:0'); fm_show_header(); // HEADER fm_show_nav_path(FM_PATH); // current path @@ -1909,7 +1910,7 @@ $tableTheme = (FM_THEME == "dark") ? "text-white bg-dark table-dark" : "bg-white if ($parent !== false) { ?> - + .. .. @@ -3296,7 +3297,7 @@ class FM_Zipper_Tar */ function fm_show_nav_path($path) { - global $lang, $sticky_navbar; + global $lang, $sticky_navbar, $editFile; $isStickyNavBar = $sticky_navbar ? 'fixed-top' : ''; $getTheme = fm_get_theme(); $getTheme .= " navbar-light"; @@ -3329,7 +3330,7 @@ function fm_show_nav_path($path) } $root_url .= $sep . implode($sep, $array); } - echo '
' . $root_url . '
'; + echo '
' . $root_url . $editFile . '
'; ?>