1 <?php rcs_id('$Id: dba.php,v 1.4 2004-11-21 11:59:25 rurban Exp $');
3 require_once('lib/WikiDB.php');
4 require_once('lib/WikiDB/backend/dba.php');
8 class WikiDB_dba extends WikiDB
10 function WikiDB_dba ($dbparams) {
11 $backend = new WikiDB_backend_dba($dbparams);
12 $this->WikiDB($backend, $dbparams);
14 if (empty($dbparams['directory'])
15 || preg_match('@^/tmp\b@', $dbparams['directory'])) {
17 = sprintf(_("DBA files are in the %s directory. Please read the INSTALL file and move the DB file to a permanent location or risk losing all the pages!"),'/tmp');
20 $this->_warnings = false;
23 function genericWarnings () {
24 return $this->_warnings;
28 // (c-file-style: "gnu")
33 // c-hanging-comment-ender-p: nil
34 // indent-tabs-mode: nil