isDot()) continue; if ($file->isFile()) { $extension = strtolower($file->getExtension()); if (in_array($extension, ['jpg', 'jpeg', 'png', 'gif'])) { $relativePath = str_replace('\\', '/', substr($file->getPathname(), strlen(realpath('./')))); $url = $baseUrl . '/' . ltrim($relativePath, '/'); $images[] = $url; } } } usort($images, function($a, $b) { $pathA = realpath('.') . str_replace(getBaseUrl(), '', $a); $pathB = realpath('.') . str_replace(getBaseUrl(), '', $b); return filectime($pathB) - filectime($pathA); }); $headerImage = !empty($images) ? $images[0] : null; $parentPath = dirname($currentPath); if (!isSecurePath($parentPath)) { $parentPath = './liste_albums'; } ?> <?php echo htmlspecialchars($albumInfo['title']); ?> - ICO Retour