]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - lib/WikiDB/dba.php
Reformat code
[SourceForge/phpwiki.git] / lib / WikiDB / dba.php
1 <?php
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     {
12         $backend = new WikiDB_backend_dba($dbparams);
13         $this->WikiDB($backend, $dbparams);
14
15         if (empty($dbparams['directory'])
16             || preg_match('@^/tmp\b@', $dbparams['directory'])
17         )
18             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!"),
19                 "DBA", "/tmp"), E_USER_WARNING);
20     }
21 }
22
23 ;
24
25 // Local Variables:
26 // mode: php
27 // tab-width: 8
28 // c-basic-offset: 4
29 // c-hanging-comment-ender-p: nil
30 // indent-tabs-mode: nil
31 // End: