diff --git a/index.php b/index.php index c2c4d82..cb4c29f 100644 --- a/index.php +++ b/index.php @@ -1,5 +1,16 @@ isFile()) { $extension = strtolower($file->getExtension()); if (in_array($extension, ['jpg', 'jpeg', 'png', 'gif'])) { - $images[] = str_replace('\\', '/', $file->getPathname()); + // Vérifier si l'image provient d'un dossier mature + if (!isMatureContent($file->getPathname())) { + $images[] = str_replace('\\', '/', $file->getPathname()); + } } } }