diff --git a/tinyfilemanager.php b/tinyfilemanager.php index 05158214..2b53818c 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 @@ function getChecked($conf, $val, $txt) { // 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 @@ function getChecked($conf, $val, $txt) { 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 @@ function getChecked($conf, $val, $txt) { ?>
""
-
- Full path:
- File
- size: = 1000): ?> ()
-
- MIME-type:
-
+
""
+
+ Full path:
+ File
+ size: = 1000): ?> ()
+
+ MIME-type:
+
+ Files in archive:
+ Total size:
+ Size in archive:
+ Compression: %
+
- 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);
+ // Image info
+ if ($is_image) {
+ $image_size = getimagesize($file_path);
+ echo 'Image sizes: ' . (isset($image_size[0]) ? $image_size[0] : '0') . ' x ' . (isset($image_size[1]) ? $image_size[1] : '0') . '
';
+ }
+ // 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') . '
';
}
- echo 'Charset: ' . ($is_utf8 ? 'utf-8' : '8 bit') . '
';
- }
- ?>
-
- - - - - - - +
+ - + + + + + + + + + + + + '; @@ -1337,7 +1352,7 @@ function getChecked($conf, $val, $txt) { } } 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 @@ function getChecked($conf, $val, $txt) {