"; include($fichier); echo "\n"; } $fichiers = glob("templates/*"); foreach($fichiers as $fichier) { $nom = preg_replace("#^templates/#", "", $fichier); $nom = preg_replace("#\.[^\.]+$#", "", $nom); echo "\n"; } ?>