View file includes/func_formatsize.php
<? error_reporting(0); if (!defined('SECURED')) { die("Unknown Error!"); } function formatsize($file_size){ if($file_size >= 1073741824){ $file_size = round($file_size / 1073741824 * 100) / 100 . " Гб"; }elseif( $file_size >= 1048576){ $file_size = round($file_size / 1048576 * 100) / 100 . " Мб"; }elseif( $file_size >= 1024){ $file_size = round($file_size / 1024 * 100) / 100 . " Кб"; }else{ $file_size = $file_size . " байт";} return $file_size; } ?>