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)) {