From ce8c4c5e7d918d81e09710d7c89a45d36a80c32a Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Wed, 7 Aug 2019 13:18:45 +0200 Subject: new medialist parse synthax + media file id bugfix --- app/fn/fn.php | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) (limited to 'app/fn') diff --git a/app/fn/fn.php b/app/fn/fn.php index fd609c1..83391f3 100644 --- a/app/fn/fn.php +++ b/app/fn/fn.php @@ -11,9 +11,6 @@ function class_autoloader($class) function readablesize($bytes) { - - $num = 5; - $location = 'tree'; $format = ' %d %s'; @@ -182,5 +179,22 @@ function compare($stringa, $stringb) +function findsize($file) +{ + if(substr(PHP_OS, 0, 3) == "WIN") + { + exec('for %I in ("'.$file.'") do @echo %~zI', $output); + $return = $output[0]; + } + else + { + $return = filesize($file); + } + return $return; +} + + + + ?> \ No newline at end of file -- cgit v1.2.3