$file = self::untilde($file);
- #if (!is_readable($file))
if (!is_readable($file)) continue;
if (preg_match('/\.(yaml|yml)$/i',$file) and ($yaml = self::yaml_parse_file($file))) {
$dbs = array_replace_recursive($dbs,$yaml);
- #If (!empty($dbs['crypt'])) debug($dbs['crypt']);
} elseif (preg_match('/\.php$/i',$file)) {
require($file);
'~/.dbq.yaml',
'~/.dbq.php',
]
+ ,(array)glob($_ENV['HOME'].'/.dbq/*.yml')
+ ,(array)glob($_ENV['HOME'].'/.dbq/*.yaml')
+ ,(array)glob($_ENV['HOME'].'/.dbq/*.php')
);
+
#bye($DB_CONFS);
$DB_CONFS = Db::conf_load($DB_CONFS);
+#bye(array_keys($DB_CONFS));
?>