diff --git a/tinyfilemanager.php b/tinyfilemanager.php index 6b2d94c..e91298d 100644 --- a/tinyfilemanager.php +++ b/tinyfilemanager.php @@ -102,7 +102,13 @@ if ($report_errors == true) { @ini_set('display_errors', 0); } -//Set Cookie +// Show Memory Used +function fm_memory($size) { + $unit = array('Byte', 'KB', 'MB', 'GB', 'TB', 'PB'); + return @round($size / pow(1024, ($i = floor(log($size, 1024)))), 2) . ' ' . $unit[$i]; +} + +// Set Cookie setcookie('fm_cache', true, 2147483647, "/"); // if fm included @@ -1701,6 +1707,7 @@ $all_files_size = 0;