Modification du configuration.php pour ne lister que les .conf et pas les autre fichiers dans les indexes
This commit is contained in:
parent
215c193982
commit
e041f54842
@ -23,7 +23,8 @@ Class configure
|
|||||||
$i = 1;
|
$i = 1;
|
||||||
|
|
||||||
while($file = readdir($dir)) {
|
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";
|
echo "\t\t".'['.$i.'] '. $file."\n";
|
||||||
$this->indexes[$i] = $file;$i++;
|
$this->indexes[$i] = $file;$i++;
|
||||||
}
|
}
|
||||||
@ -36,7 +37,7 @@ Class configure
|
|||||||
|
|
||||||
public function printMysqlServer()
|
public function printMysqlServer()
|
||||||
{
|
{
|
||||||
$dir = opendir($this->dirname);
|
$dir = opendir($this->dirname);
|
||||||
$i = 1;
|
$i = 1;
|
||||||
|
|
||||||
while($rep = readdir($dir)) {
|
while($rep = readdir($dir)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user