Use Dir Basename

This commit is contained in:
seiichiro 2022-01-11 16:32:12 +01:00
parent f53e96c299
commit 192806dd23

View file

@ -36,8 +36,9 @@ if (isset($_SESSION['files'])
{
$files = $_SESSION['files'];
} else {
$dirs = glob($imagedir.$dir.'/*' , GLOB_ONLYDIR);
print_r($dirs);
$tmpdirs = glob(Helpers::end_dir($imagedir.$dir).'*' , GLOB_ONLYDIR);
foreach ($tmpdirs as $tmpdir):
$dirs[] = basename($tmpdir);
$rmdirs = $dirs;
$rmdirs[] = '.';
$rmdirs[] = '..';