fix: add list to quicknote and quickupload
This commit is contained in:
parent
abd4773e16
commit
51d27c6f1c
4 changed files with 56 additions and 18 deletions
|
|
@ -1,23 +1,5 @@
|
|||
<?php
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
header('Content-Type: application/json');
|
||||
|
||||
$logAt = __DIR__ . '/../../tmp/requests';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue