hehe
This commit is contained in:
parent
c1c9a9133a
commit
ef8dd588a4
@ -47,9 +47,12 @@ if ($_SERVER['REQUEST_METHOD'] == "POST" && isset($_POST["submit"])) {
|
|||||||
$files = scandir($target_dir);
|
$files = scandir($target_dir);
|
||||||
$out = "<tr><th>Názov súboru</th><th>Download</th></tr>";
|
$out = "<tr><th>Názov súboru</th><th>Download</th></tr>";
|
||||||
foreach ($files as $file) {
|
foreach ($files as $file) {
|
||||||
$filename = $file;
|
if (!str_starts_with($file, '.')) {
|
||||||
$filepath = "/uploads/$file";
|
$filename = $file;
|
||||||
$out .= "<tr><td>SuperSubor</td><td><a href='$filepath' download>$filename</a></td></tr>";
|
$displayname = explode('.', $filename)[0];
|
||||||
|
$filepath = "/uploads/$file";
|
||||||
|
$out .= "<tr><td>$displayname</td><td><a href='$filepath' download>$filename</a></td></tr>";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user