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