diff --git a/index.php b/index.php
index f82fa3c..267bafc 100644
--- a/index.php
+++ b/index.php
@@ -47,9 +47,12 @@ if ($_SERVER['REQUEST_METHOD'] == "POST" && isset($_POST["submit"])) {
$files = scandir($target_dir);
$out = "
Názov súboru | Download |
";
foreach ($files as $file) {
- $filename = $file;
- $filepath = "/uploads/$file";
- $out .= "SuperSubor | $filename |
";
+ if (!str_starts_with($file, '.')) {
+ $filename = $file;
+ $displayname = explode('.', $filename)[0];
+ $filepath = "/uploads/$file";
+ $out .= "$displayname | $filename |
";
+ }
}
} else {