<?php
// Chercher tous les fichiers jpg/png/jpeg dans Images
$dirs = [
    'Images/',
    'images/',
    'Images/carousel_pagne/',
    'images/carousel_pagne/',
    'admin/Images/',
    'admin/images/'
];

foreach ($dirs as $dir) {
    if (is_dir($dir)) {
        echo "<strong>$dir</strong> :<br>";
        $files = scandir($dir);
        foreach ($files as $f) {
            if (in_array(pathinfo($f, PATHINFO_EXTENSION), ['jpg', 'jpeg', 'png'])) {
                echo "  - $f<br>";
            }
        }
        echo "<br>";
    }
}
?>