Update index.php

This commit is contained in:
2026-02-22 15:38:05 -05:00
parent 6b888228be
commit 0ec7fd64c3
+5 -2
View File
@@ -2,6 +2,9 @@
$gif_files = glob($_SERVER['DOCUMENT_ROOT'] . '/assets/gifs/*.gif');
if (empty($gif_files)) { http_response_code(404); exit; }
$file = basename($gif_files[array_rand($gif_files)]);
$file = $gif_files[array_rand($gif_files)];
header('Location: https://sistav.com/assets/gifs/' . rawurlencode($file), true, 302);
header('Content-Type: image/gif');
header('Content-Length: ' . filesize($file));
header('Cache-Control: no-store, no-cache, must-revalidate');
readfile($file);