From: Nicolas Boisselier Date: Wed, 12 Oct 2016 09:27:17 +0000 (+0200) Subject: fix buix with dropbox X-Git-Url: https://git.nbdom.net/?a=commitdiff_plain;h=1c4063cc48fd05a4bd7808e56ea303003f61d2cc;p=nb.git fix buix with dropbox --- diff --git a/etc/dbq.php b/etc/dbq.php index 12041bc8..9aa48d27 100644 --- a/etc/dbq.php +++ b/etc/dbq.php @@ -89,12 +89,13 @@ foreach ($DBQ as $id => $db) { or empty($db['type'] ) or $db['type']!='sqlite' or empty($db['host'] ) - #or !is_readable($fname=basename($db['host'],'.db')) - #or !is_readable($fname) or !is_readable($db['host']) + or !strpos($db['host'],'.db') ) continue; + $fname = basename($db['host'],'.db'); $fname = preg_replace('/\..*$/','',basename($db['host'])); + $DBQ['all']['types']['sql_pre'][] = "ATTACH DATABASE '".$db['host']."' as ".$fname.""; conf_merge($DBQ[$fname],$DBQ['all']);