Delete gif directory

This commit is contained in:
2026-05-03 22:29:51 -04:00
committed by GitHub
parent 937ded1085
commit 3542eb3638
2 changed files with 0 additions and 19 deletions
-10
View File
@@ -1,10 +0,0 @@
<?php
$gif_files = glob($_SERVER['DOCUMENT_ROOT'] . '/assets/gifs/*.gif');
$gifs = array_map(fn($f) => '/assets/gifs/' . basename($f), $gif_files);
$base_url = 'https://sistav.com';
header('Content-Type: application/json');
echo json_encode([
'count' => count($gifs),
'gifs' => array_map(fn($g) => $base_url . $g, $gifs)
]);
-9
View File
@@ -1,9 +0,0 @@
<?php
$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)]);
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Pragma: no-cache');
header('Location: https://sistav.com/assets/gifs/' . rawurlencode($file), true, 302);