5 * Copyright 2004 $ThePhpWikiProgrammingTeam
7 * This file is part of PhpWiki.
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.
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.
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
25 * Loaded when config/config.ini was not found.
26 * So we have no main loop and no request object yet.
29 function init_install() {
30 // prevent from recursion
32 // setup default settings
34 IniConfig(dirname(__FILE__)."/../config/config-dist.ini");
39 * Display a screen of various settings:
40 * 1. convert from older index.php configuration [TODO]
41 * 2. database and admin_user setup based on configurator.php
42 * 3. dump the current settings to config/config.ini.
44 function run_install($part = '') {
47 if (empty($_GET)) $_GET =& $GLOBALS['HTTP_GET_VARS'];
48 $_GET['show'] = $part;
50 // setup default settings
51 if (!$already and !defined("_PHPWIKI_INSTALL_RUNNING")) {
52 define("_PHPWIKI_INSTALL_RUNNING", true);
53 include(dirname(__FILE__)."/../configurator.php");
64 // c-hanging-comment-ender-p: nil
65 // indent-tabs-mode: nil