]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - lib/WikiDB/file.php
Activated Id substitution for Subversion
[SourceForge/phpwiki.git] / lib / WikiDB / file.php
1 <?php
2
3 rcs_id( '$Id$' );
4
5 /**
6  Copyright 1999, 2000, 2001, 2002, 2003 $ThePhpWikiProgrammingTeam
7
8  This file is part of PhpWiki.
9
10  PhpWiki is free software; you can redistribute it and/or modify
11  it under the terms of the GNU General Public License as published by
12  the Free Software Foundation; either version 2 of the License, or
13  (at your option) any later version.
14
15  PhpWiki is distributed in the hope that it will be useful,
16  but WITHOUT ANY WARRANTY; without even the implied warranty of
17  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  GNU General Public License for more details.
19
20  You should have received a copy of the GNU General Public License
21  along with PhpWiki; if not, write to the Free Software
22  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
23  */
24
25
26 require_once( 'lib/WikiDB.php' );
27 require_once( 'lib/WikiDB/backend/file.php' );
28
29 /**
30  * Wrapper class for the file backend.
31  *
32  * Authors: Gerrit Riessen, gerrit.riessen@open-source-consultants.de
33  *          Jochen Kalmbach <Jochen@Kalmbachnet.de>
34  */
35 class WikiDB_file extends WikiDB
36 {  
37     /**
38      * Constructor requires the DB parameters. 
39      */
40     function WikiDB_file( $dbparams ) 
41     {
42         $backend = new WikiDB_backend_file( $dbparams );
43         $this->WikiDB($backend, $dbparams);
44
45         if (empty($dbparams['directory'])
46             || preg_match('@^/tmp\b@', $dbparams['directory']))
47             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!"), 
48                                   "Page", "/tmp"), E_USER_WARNING);
49     }
50 }
51
52
53 // $Log: not supported by cvs2svn $
54 // Revision 1.5  2005/02/18 20:41:28  uckelman
55 // Re-enabled /tmp warnings to save those who choose not to read the
56 //  instructions.
57 //
58 // Revision 1.4  2003/01/04 03:41:46  wainstead
59 // Added copyleft flowerboxes
60 //
61 // Revision 1.3  2003/01/04 03:29:02  wainstead
62 // ok, this time log tag for sure.
63 //
64 // revision 1.2
65 // Added credits, php emacs stuff, log tag for CVS.
66 //
67 // revision 1.1
68 // date: 2003/01/04 03:21:00;  author: wainstead;  state: Exp;
69 // New flat file database for the 1.3 branch thanks to Jochen Kalmbach.
70
71
72 // (c-file-style: "gnu")
73 // Local Variables:
74 // mode: php
75 // tab-width: 8
76 // c-basic-offset: 4
77 // c-hanging-comment-ender-p: nil
78 // indent-tabs-mode: nil
79 // End:   
80
81 ?>