diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2019-08-07 13:18:45 +0200 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2019-08-07 13:18:45 +0200 |
commit | ce8c4c5e7d918d81e09710d7c89a45d36a80c32a (patch) | |
tree | 9ebe2fa7a2d89ebd3da16f229df3802041295b26 /app/fn/fn.php | |
parent | 7ccb591697227fcc77125e6b6fbe33f9fbe13ca4 (diff) | |
download | wcms-ce8c4c5e7d918d81e09710d7c89a45d36a80c32a.tar.gz wcms-ce8c4c5e7d918d81e09710d7c89a45d36a80c32a.zip |
new medialist parse synthax + media file id bugfix
Diffstat (limited to 'app/fn/fn.php')
-rw-r--r-- | app/fn/fn.php | 20 |
1 files changed, 17 insertions, 3 deletions
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 |