From e041f5484220999360f72603cab9dd754e516d1a Mon Sep 17 00:00:00 2001 From: Damien LASSERRE Date: Wed, 16 Nov 2011 13:47:57 +0000 Subject: [PATCH] Modification du configuration.php pour ne lister que les .conf et pas les autre fichiers dans les indexes --- configure.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/configure.php b/configure.php index db2e230..2e97b30 100644 --- a/configure.php +++ b/configure.php @@ -23,7 +23,8 @@ Class configure $i = 1; while($file = readdir($dir)) { - if($file != '.' and $file != '..') { + $extension = explode('.', $file); + if($file != '.' and $file != '..' and $extension[1] == 'conf') { echo "\t\t".'['.$i.'] '. $file."\n"; $this->indexes[$i] = $file;$i++; } @@ -36,7 +37,7 @@ Class configure public function printMysqlServer() { - $dir = opendir($this->dirname); + $dir = opendir($this->dirname); $i = 1; while($rep = readdir($dir)) {