is_valid()) { http_response_code(404); display_error_message('Album not found'); exit(0); } if (count($album->get_images()) == 0) { http_response_code(400); display_error_message('Album empty'); exit(0); } $image = 0; if (isset($_GET['image'])) { $image = $_GET['image']; if (!ctype_digit($image)) { http_response_code(404); display_error_message('Image not found in album'); exit(0); } else if ($image >= count($album->get_images())) { $image = count($album->get_images()) - 1; } } ?> <?php echo htmlspecialchars($album->get_title() . ' - ' . $LIBRARY_INFO['name'], ENT_QUOTES | ENT_HTML5); ?> X
i
get_title(), ENT_QUOTES | ENT_HTML5); ?>
Loading...
<
get_images()), ENT_QUOTES | ENT_HTML5); ?>
>
X