From 82929f548382d26efaf2b2c29c835ce2d9d905d4 Mon Sep 17 00:00:00 2001 From: alecos71 Date: Sun, 15 Oct 2017 16:10:07 +0200 Subject: [PATCH] Fix for various bugs This is my proposed code revised and corrected. I hope you'll find it useful. --- tinyfilemanager.php | 100 ++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 91 insertions(+), 9 deletions(-) diff --git a/tinyfilemanager.php b/tinyfilemanager.php index c179cf9..a312389 100644 --- a/tinyfilemanager.php +++ b/tinyfilemanager.php @@ -1,8 +1,10 @@ 
H3K File manager -
+


@@ -721,7 +724,7 @@ if (isset($_POST['copy']) && !FM_READONLY) { ?>

Copying

- +

- + @@ -1116,7 +1119,7 @@ $num_files = count($files); $num_folders = count($folders); $all_files_size = 0; ?> - + @@ -1775,7 +1778,7 @@ function fm_get_text_exts() 'txt', 'css', 'ini', 'conf', 'log', 'htaccess', 'passwd', 'ftpquota', 'sql', 'js', 'json', 'sh', 'config', 'php', 'php4', 'php5', 'phps', 'phtml', 'htm', 'html', 'shtml', 'xhtml', 'xml', 'xsl', 'm3u', 'm3u8', 'pls', 'cue', 'eml', 'msg', 'csv', 'bat', 'twig', 'tpl', 'md', 'gitignore', 'less', 'sass', 'scss', 'c', 'cpp', 'cs', 'py', - 'map', 'lock', 'dtd', 'svg', + 'map', 'lock', 'dtd', 'svg', 'tmp', 'dat', 'htpasswd', 'pl' ); } @@ -1972,6 +1975,83 @@ function fm_show_message() } } +/** + * Show page header in Login + */ +function fm_show_header_login() +{ + $sprites_ver = '20160315'; + header("Content-Type: text/html; charset=utf-8"); + header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); + header("Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0"); + header("Pragma: no-cache"); + + global $lang; + ?> + + + + +H3K | File Manager + + + + + + + + + + +
+