= e($gallery['title']) ?>
= count($gallery['images'] ?? []) ?> photos ยท available until = e($gallery['expires_at']) ?>
* * - Unknown or expired galleries show the same neutral "not available" page. * - Password-protected galleries show a password form; a successful unlock * is remembered in the session for that gallery only. * - Thumbnails and full-res originals are loaded by the browser directly * from S3 via short-lived presigned URLs. */ require __DIR__ . '/app/bootstrap.php'; session_boot(); $slug = (string)($_GET['g'] ?? ''); $gallery = $slug !== '' ? gallery_load($slug) : null; if ($gallery === null || gallery_is_expired($gallery)) { http_response_code(404); public_header('Gallery not available'); echo '
This gallery does not exist or is no longer online.
= count($gallery['images'] ?? []) ?> photos ยท available until = e($gallery['expires_at']) ?>