]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - lib/WikiDB/dba.php
remove final \n to be ob_cache independent
[SourceForge/phpwiki.git] / lib / WikiDB / dba.php
1 <?php rcs_id('$Id: dba.php,v 1.4 2004-11-21 11:59:25 rurban Exp $');
2
3 require_once('lib/WikiDB.php');
4 require_once('lib/WikiDB/backend/dba.php');
5 /**
6  *
7  */
8 class WikiDB_dba extends WikiDB
9 {
10     function WikiDB_dba ($dbparams) {
11         $backend = new WikiDB_backend_dba($dbparams);
12         $this->WikiDB($backend, $dbparams);
13
14         if (empty($dbparams['directory'])
15             || preg_match('@^/tmp\b@', $dbparams['directory'])) {
16             $this->_warnings
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');
18         }
19         else
20             $this->_warnings = false;
21     }
22     
23     function genericWarnings () {
24         return $this->_warnings;
25     }
26 };
27
28 // (c-file-style: "gnu")
29 // Local Variables:
30 // mode: php
31 // tab-width: 8
32 // c-basic-offset: 4
33 // c-hanging-comment-ender-p: nil
34 // indent-tabs-mode: nil
35 // End:   
36 ?>