diff --git a/tinyfilemanager.php b/tinyfilemanager.php index ca73f9d7..19c36a47 100644 --- a/tinyfilemanager.php +++ b/tinyfilemanager.php @@ -274,7 +274,7 @@ function session_error_handling_function($code, $msg, $file, $line) { // logout if (isset($_GET['logout'])) { unset($_SESSION[FM_SESSION_ID]['logged']); - unset( $_SESSION['token']); + unset( $_SESSION['token']); fm_redirect(FM_SELF_URL); } @@ -720,6 +720,9 @@ function get_file_path () { } $FM_PATH=FM_PATH; fm_redirect(FM_SELF_URL . '?p=' . urlencode($FM_PATH)); } +if (isset($_POST['foldersize'])) { + $_SESSION[FM_SESSION_ID]['foldersize'] = !($_SESSION[FM_SESSION_ID]['foldersize']??false); +} // Copy folder / file if (isset($_GET['copy'], $_GET['finish']) && !FM_READONLY) { @@ -798,7 +801,7 @@ function get_file_path () { if(!verifyToken($_POST['token'])) { fm_set_msg(lng('Invalid Token.'), 'error'); } - + // from $path = FM_ROOT_PATH; if (FM_PATH != '') { @@ -1117,9 +1120,9 @@ function get_file_path () { foreach($files as $file){ array_push($sanitized_files, fm_clean_path($file)); } - + $files = $sanitized_files; - + if (!empty($files)) { chdir($path); @@ -1225,7 +1228,7 @@ function get_file_path () { if(!verifyToken($_POST['token'])) { fm_set_msg(lng("Invalid Token."), 'error'); } - + $path = FM_ROOT_PATH; if (FM_PATH != '') { $path .= '/' . FM_PATH; @@ -1448,7 +1451,7 @@ function getUploadExt() {
@@ -1997,7 +2000,7 @@ class="edit-file"> @@ -2071,7 +2074,7 @@ class="edit-file">").attr("id",a.overlayId).css("position","absolute").css("display","none").append(s('').attr("src",s(this).data(a.dataKey)));a.css&&o.css(a.css),s("body").append(o),o.css("top",e.pageY+a.yOffset+"px").css("left",e.pageX+a.xOffset+"px").fadeIn(a.fadeIn)}),o.on("mouseout"+t,a.eventSelector,function(){s("#"+a.overlayId).remove()}),o.on("mousemove"+t,a.eventSelector,function(e){s("#"+a.overlayId).css("top",e.pageY+a.yOffset+"px").css("left",e.pageX+a.xOffset+"px")}),this},s.previewImage()}(jQuery); @@ -4157,7 +4183,7 @@ function confirmDailog(e, id = 0, title = "Action", content = "", action = null) }); @@ -4254,11 +4280,11 @@ function lng($txt) { $tr['en']['NormalEditor'] = 'Normal Editor'; $tr['en']['BackUp'] = 'Back Up'; $tr['en']['SourceFolder'] = 'Source Folder'; $tr['en']['Files'] = 'Files'; $tr['en']['Move'] = 'Move'; $tr['en']['Change'] = 'Change'; - $tr['en']['Settings'] = 'Settings'; $tr['en']['Language'] = 'Language'; + $tr['en']['Settings'] = 'Settings'; $tr['en']['Language'] = 'Language'; $tr['en']['ErrorReporting'] = 'Error Reporting'; $tr['en']['ShowHiddenFiles'] = 'Show Hidden Files'; $tr['en']['Help'] = 'Help'; $tr['en']['Created'] = 'Created'; $tr['en']['Help Documents'] = 'Help Documents'; $tr['en']['Report Issue'] = 'Report Issue'; - $tr['en']['Generate'] = 'Generate'; $tr['en']['FullSize'] = 'Full Size'; + $tr['en']['Generate'] = 'Generate'; $tr['en']['FullSize'] = 'Full Size'; $tr['en']['HideColumns'] = 'Hide Perms/Owner columns';$tr['en']['You are logged in'] = 'You are logged in'; $tr['en']['Nothing selected'] = 'Nothing selected'; $tr['en']['Paths must be not equal'] = 'Paths must be not equal'; $tr['en']['Renamed from'] = 'Renamed from'; $tr['en']['Archive not unpacked'] = 'Archive not unpacked';