reasonableframework/system/config.php
2017-12-18 05:40:04 +09:00

14 lines
347 B
PHP

<?php
$config = array();
if($handle = opendir('./config')) {
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != ".." && end(explode('.', $file)) == 'ini') {
$ini = parse_ini_file('./config/' . $file);
foreach($ini as $k=>$v) {
$config[$k] = $v;
}
}
}
closedir($handle);
}