]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - lib/install.php
enable action=remove which is undoable and seeable in RecentChanges: ADODB ony for...
[SourceForge/phpwiki.git] / lib / install.php
1 <?php //-*-php-*-
2 rcs_id('$Id: install.php,v 1.1 2004-12-06 19:49:58 rurban Exp $');
3
4 /*
5  Copyright 2004 $ThePhpWikiProgrammingTeam
6
7  This file is part of PhpWiki.
8
9  PhpWiki is free software; you can redistribute it and/or modify
10  it under the terms of the GNU General Public License as published by
11  the Free Software Foundation; either version 2 of the License, or
12  (at your option) any later version.
13
14  PhpWiki is distributed in the hope that it will be useful,
15  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17  GNU General Public License for more details.
18
19  You should have received a copy of the GNU General Public License
20  along with PhpWiki; if not, write to the Free Software
21  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
22  */
23
24 /**
25  * Loaded when config/config.ini was not found.
26  * So we have no main loop and no request object yet.
27  */
28
29 function init_install() {
30     // setup default settings
31     IniConfig(dirname(__FILE__)."/../config/config-dist.ini");
32 }
33
34 function run_install() {
35     // display a screen of various settings:
36     // 1. convert from older index.php configuration
37     // 2. database and admin_user setup based on configurator.php
38     include(dirname(__FILE__)."/../configurator.php");
39     // dump the current settings to config/config.ini.
40 }
41
42 init_install();
43 run_install();
44
45 /**
46  $Log: not supported by cvs2svn $
47
48  */
49
50 // For emacs users
51 // Local Variables:
52 // mode: php
53 // tab-width: 8
54 // c-basic-offset: 4
55 // c-hanging-comment-ender-p: nil
56 // indent-tabs-mode: nil
57 // End:
58 ?>