diff --git a/tinyfilemanager.php b/tinyfilemanager.php index 0515821..2b53818 100644 --- a/tinyfilemanager.php +++ b/tinyfilemanager.php @@ -3,13 +3,13 @@ $CONFIG = '{"lang":"en","error_reporting":false,"show_hidden":false}'; /** - * H3K | Tiny File Manager V2.3.3 + * H3K | Tiny File Manager V2.3.4 * CCP Programmers | ccpprogrammers@gmail.com * https://tinyfilemanager.github.io */ //TFM version -define('VERSION', '2.3.3'); +define('VERSION', '2.3.4'); // Auth with login/password (set true/false to enable/disable it) $use_auth = true; @@ -1198,6 +1198,7 @@ if (isset($_GET['help'])) { // file viewer if (isset($_GET['view'])) { $file = $_GET['view']; + $quickView = (isset($_GET['quickView']) && $_GET['quickView'] == 1) ? true : false; $file = fm_clean_path($file); $file = str_replace('/', '', $file); if ($file == '' || !is_file($path . '/' . $file)) { @@ -1205,8 +1206,10 @@ if (isset($_GET['view'])) { fm_redirect(FM_SELF_URL . '?p=' . urlencode(FM_PATH)); } - fm_show_header(); // HEADER - fm_show_nav_path(FM_PATH); // current path + if(!$quickView) { + fm_show_header(); // HEADER + fm_show_nav_path(FM_PATH); // current path + } $file_url = FM_ROOT_URL . fm_convert_win((FM_PATH != '' ? '/' . FM_PATH : '') . '/' . $file); $file_path = $path . '/' . $file; @@ -1251,72 +1254,84 @@ if (isset($_GET['view'])) { ?>
-

""

-

- Full path:
- File - size: = 1000): ?> () -
- MIME-type:
- +

""

+

+ Full path:
+ File + size: = 1000): ?> () +
+ MIME-type:
+ + Files in archive:
+ Total size:
+ Size in archive:
+ Compression: %
+ '; + } + // Text info + if ($is_text) { + $is_utf8 = fm_is_utf8($content); + if (function_exists('iconv')) { + if (!$is_utf8) { + $content = iconv(FM_ICONV_INPUT_ENC, 'UTF-8//IGNORE', $content); + } + } + echo 'Charset: ' . ($is_utf8 ? 'utf-8' : '8 bit') . '
'; } ?> - Files in archive:
- Total size:
- Size in archive:
- Compression: %
+

+

+   + +   '; - } - // Text info - if ($is_text) { - $is_utf8 = fm_is_utf8($content); - if (function_exists('iconv')) { - if (!$is_utf8) { - $content = iconv(FM_ICONV_INPUT_ENC, 'UTF-8//IGNORE', $content); - } + // ZIP actions + if (!FM_READONLY && ($is_zip || $is_gzip) && $filenames !== false) { + $zip_name = pathinfo($file_path, PATHINFO_FILENAME); + ?> +   + +   + '; - } - ?> -

-

-   - -   + if ($is_text && !FM_READONLY) { + ?> + +   + +   + + +

-   - -   - -   -   - - -

- '; @@ -1337,7 +1352,7 @@ if (isset($_GET['view'])) { } } elseif ($is_image) { // Image content - if (in_array($ext, array('gif', 'jpg', 'jpeg', 'png', 'bmp', 'ico'))) { + if (in_array($ext, array('gif', 'jpg', 'jpeg', 'png', 'bmp', 'ico', 'svg'))) { echo '

'; } } elseif ($is_audio) { @@ -1373,7 +1388,9 @@ if (isset($_GET['view'])) {
+ @@ -2796,7 +2814,7 @@ global $lang; - + H3K | Tiny File Manager