Update config.php
This commit is contained in:
parent
33eac24bfa
commit
1e39a90836
|
@ -8,6 +8,8 @@
|
|||
|
||||
if(!function_exists("read_config")) {
|
||||
function read_config() {
|
||||
$config = array();
|
||||
|
||||
if($handle = opendir('./config')) {
|
||||
while (false !== ($file = readdir($handle))) {
|
||||
if ($file != "." && $file != ".." && @end(explode('.', $file)) == 'ini') {
|
||||
|
@ -19,6 +21,8 @@ if(!function_exists("read_config")) {
|
|||
}
|
||||
closedir($handle);
|
||||
}
|
||||
|
||||
return $config;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user