From 04dfa477d25f3fd382a183f0001314d434b354a1 Mon Sep 17 00:00:00 2001 From: naielv Date: Mon, 26 Jan 2026 09:15:54 +0100 Subject: [PATCH] some fixes --- public_html/club/foto_dl.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/public_html/club/foto_dl.php b/public_html/club/foto_dl.php index 4c16d6f..a242ca8 100755 --- a/public_html/club/foto_dl.php +++ b/public_html/club/foto_dl.php @@ -12,12 +12,15 @@ if (!file_exists($path) || !is_file($path)) { header("HTTP/1.1 404 Not Found"); die("File not found"); } +$mime = mime_content_type($path); + +// Check if thumbnail is requested if (file_exists($path . ".thumbnail") && $_GET["thumbnail"] == "1") { $path .= ".thumbnail"; $uripath .= ".thumbnail"; - // die(); + $mime = "image/jpeg"; } -header("Content-Type: " . mime_content_type($path)); +header("Content-Type: " . $mime); header('Content-Length: ' . filesize($path)); header('Cache-Control: max-age=7200'); header("X-Accel-Redirect: $uripath");