From e494e18971130401fa97cba6970f31a05f0c6076 Mon Sep 17 00:00:00 2001 From: lolcat Date: Thu, 21 Mar 2024 22:03:37 -0400 Subject: [PATCH] autism --- listdir.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/listdir.php b/listdir.php index 4412086..7951b97 100644 --- a/listdir.php +++ b/listdir.php @@ -2,7 +2,7 @@ // do NOT append / at the end // Eg: /home/will/Downloads -$folder_base = "/home/will/Downloads"; +$folder_base = "/home/will/Music"; $items_per_page = 20; $max_results = 100; // will break; once we reach limit, -1 for no limit $motd = "get fucked"; @@ -438,7 +438,7 @@ if(is_dir($realpath)){ $range >= 0 && $range < $filesize ){ - + http_response_code(206); // partial content header("Content-Range: bytes " . $range . "-" . ($filesize - 1) . "/" . $filesize); header("Content-Length: " . $filesize - $range);