diff --git a/www/files/index.php b/www/files/index.php index 0ab133c..4b73348 100644 --- a/www/files/index.php +++ b/www/files/index.php @@ -50,8 +50,10 @@ if (sizeof($info) > 1 && ($info[1] === 'elwig' || $info[1] === 'winziprint')) { exit(); } +$filesRaw = scandir('.'); +usort($filesRaw, 'version_compare'); $files = []; -foreach (scandir('.') as $file) { +foreach ($filesRaw as $file) { if (str_starts_with($file, ".") || str_ends_with($file, ".php")) continue; $files[$file] = [filesize($file), filemtime($file), filectime($file)]; } @@ -149,7 +151,7 @@ if ($format === 'json') {
Name | Größe | Änderungsdatum |
---|---|---|
Name | Größe | Änderungsdatum |
$name | " . number_format($size / 1024 / 1024, 1) . " MB | " . date('d.m.Y, H:i', $mtime) . " |