Files
breadcrumb-the-shire/pages/branding/logo(none).phtml
2026-02-04 23:31:53 +01:00

20 lines
524 B
PHTML

<?php
use MintyPHP\Service\BrandingLogoService;
$size = isset($_GET['size']) ? (int) $_GET['size'] : null;
$path = BrandingLogoService::findLogoPath($size);
if (!$path || !is_file($path)) {
http_response_code(404);
return;
}
$mime = BrandingLogoService::detectMime($path);
header('Content-Type: ' . $mime);
header('X-Content-Type-Options: nosniff');
header("Content-Security-Policy: sandbox");
header('Cache-Control: public, max-age=86400');
header('Content-Length: ' . filesize($path));
readfile($path);
return;