AntiBK/admin/functions.php
Ivor Barhansky 36bf662112 code-upload (#1)
Upload code

Изменил(а) на 'README.md'

Изменил(а) на 'README.md'

Reviewed-on: https://src.lopar.us/lopar/AntiBK/pulls/1
Co-Authored-By: Ivor Barhansky <lopar@noreply.lopar.us>
Co-Committed-By: Ivor Barhansky <lopar@noreply.lopar.us>
2021-02-11 16:13:04 +00:00

13 lines
332 B
PHP

<?
defined('AntiBK') or die('Доступ запрещен!');
function formatfilesize ($data)
{
// bytes
if ($data < 1024) return $data.' bytes';
// kilobytes
else if ($data < 1024000) return round(($data / 1024), 1).' kb';
// megabytes
else return round(($data / 1024000), 1).' mb';
}
?>