diff --git a/modules/logator/logator.php b/modules/logator/logator.php index 611a9d9..68b9d7e 100644 --- a/modules/logator/logator.php +++ b/modules/logator/logator.php @@ -1,23 +1,5 @@ +

List of messages

+ + +

List of uploaded files

+ + microtime() ]; } + +function getFilesAsArray($path) { + $dirs = array_filter(glob($path . '/*'), 'is_file'); + $dirs = array_map(function ($dirName) { + $compo = explode('/', $dirName); + return $compo[count($compo)-1]; + }, $dirs); + return array_values($dirs); +} + +function getDirsAsArray($path) { + $dirs = array_filter(glob($path . '/*'), 'is_dir'); + $dirs = array_map(function ($dirName) { + $compo = explode('/', $dirName); + return $compo[count($compo)-1]; + }, $dirs); + return array_values($dirs); +}