From bb1d1d38015e3403b1791ac87025e0540d09dcf9 Mon Sep 17 00:00:00 2001 From: Roni <54395471+Roni-Neto@users.noreply.github.com> Date: Sat, 12 Feb 2022 04:47:35 -0300 Subject: [PATCH] added name of the file being edited (#542) 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 cb754fa..cbaf142 100644 --- a/tinyfilemanager.php +++ b/tinyfilemanager.php @@ -1771,6 +1771,7 @@ if (isset($_GET['edit'])) { fm_set_msg(lng('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 @@ -1969,7 +1970,7 @@ $tableTheme = (FM_THEME == "dark") ? "text-white bg-dark table-dark" : "bg-white if ($parent !== false) { ?> - + .. .. @@ -3378,7 +3379,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"; @@ -3411,7 +3412,7 @@ function fm_show_nav_path($path) } $root_url .= $sep . implode($sep, $array); } - echo '
' . $root_url . '
'; + echo '
' . $root_url . $editFile . '
'; ?>