2 /************************************************************************
3 * MXChange v0.2.1 Start: 08/25/2003 *
4 * =============== Last change: 04/26/2004 *
6 * -------------------------------------------------------------------- *
8 * -------------------------------------------------------------------- *
10 * ------------------------------------------------ *
11 * / PLEASE READ THIS! / BITTE LESEN SIE DIESES! / *
12 * ------------------------------------------------- *
14 * -------------------------------------------------------------------- *
15 * Short description : Installation script. Please delete this file *
16 * after successfully installation or ANYONE can re-setup *
17 * your mail exchange script!!! *
18 * -------------------------------------------------------------------- *
19 * Kurzbeschreibung : Installationsscript. Bitte loeschen Sie diese *
20 * Datei nach der fertiggestellten Installation oder JEDER *
21 * kann Ihr Mailtausch-Script neu einstellen!!! *
22 * -------------------------------------------------------------------- *
24 * -------------------------------------------------------------------- *
25 * Copyright (c) 2003 - 2008 by Roland Haeder *
26 * For more information visit: http://www.mxchange.org *
28 * This program is free software; you can redistribute it and/or modify *
29 * it under the terms of the GNU General Public License as published by *
30 * the Free Software Foundation; either version 2 of the License, or *
31 * (at your option) any later version. *
33 * This program is distributed in the hope that it will be useful, *
34 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
35 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
36 * GNU General Public License for more details. *
38 * You should have received a copy of the GNU General Public License *
39 * along with this program; if not, write to the Free Software *
40 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, *
42 ************************************************************************/
44 // Tell every module / include file we are installing
45 $GLOBALS['mxchange_installing'] = true;
47 // Load security system
48 require("inc/libs/security_functions.php");
50 // Init "action" and "what"
51 $GLOBALS['what'] = "";
52 $GLOBALS['action'] = "";
54 // Set CSS variable for "normal mode"
55 $GLOBALS['output_mode'] = 0;
58 $GLOBALS['module'] = "install";
61 require("inc/config.php");
64 LOAD_INC("inc/header.php");
66 // Reload page to page=welcome when it is not specified
67 if (!REQUEST_ISSET_GET('page')) {
68 LOAD_URL("install.php?page=welcome");
72 if ((isInstalled()) && (isAdminRegistered())) {
74 addFatalMessage(__FILE__, __LINE__, getMessage('ALREADY_INSTALLED'));
77 // Does something goes wrong?
78 if (getTotalFatalErrors() == 0) {
79 // Add main installation table
80 LOAD_TEMPLATE("install_header");
82 // Here start's our installtion stuff
83 LOAD_INC_ONCE("inc/install-inc.php");
85 // Close main installation table
86 LOAD_TEMPLATE("install_footer");
90 LOAD_INC("inc/footer.php");