]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - lib/WikiDB/dba.php
rcs_id no longer makes sense with Subversion global version number
[SourceForge/phpwiki.git] / lib / WikiDB / dba.php
1 <?php // rcs_id('$Id$');
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             trigger_error(sprintf(_("The %s files are in the %s directory. Please read the INSTALL file and move the database to a permanent location or risk losing all the pages!"), 
17                                   "DBA", "/tmp"), E_USER_WARNING);
18     }
19 };
20
21 // (c-file-style: "gnu")
22 // Local Variables:
23 // mode: php
24 // tab-width: 8
25 // c-basic-offset: 4
26 // c-hanging-comment-ender-p: nil
27 // indent-tabs-mode: nil
28 // End:   
29 ?>