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);
|
||||
$out = "<tr><th>Názov súboru</th><th>Download</th></tr>";
|
||||
foreach ($files as $file) {
|
||||
if (!str_starts_with($file, '.')) {
|
||||
$filename = $file;
|
||||
$displayname = explode('.', $filename)[0];
|
||||
$filepath = "/uploads/$file";
|
||||
$out .= "<tr><td>SuperSubor</td><td><a href='$filepath' download>$filename</a></td></tr>";
|
||||
$out .= "<tr><td>$displayname</td><td><a href='$filepath' download>$filename</a></td></tr>";
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user