From c6156989725399a83f4a33384a3c60885ed6f211 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Mon, 30 Jan 2023 17:27:57 +0100 Subject: new www, c mods --- www/list.php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 www/list.php (limited to 'www/list.php') diff --git a/www/list.php b/www/list.php new file mode 100644 index 0000000..6dbeb40 --- /dev/null +++ b/www/list.php @@ -0,0 +1,17 @@ +"; + while (false !== ($entry = readdir($handle))) { + if (preg_match("/torrent$/", $entry)) { + $h = htmlspecialchars(explode(".", $entry)[0]); + echo '
  • ' . $h . ''; + } + } + die(); + closedir($handle); +} else { + die("ne morem brati direktorija"); +} -- cgit v1.2.3