2 /************************************************************************
3 * MXChange v0.1.0 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!!! *
19 * First of all setup the base URL. *
20 * -------------------------------------------------------------------- *
21 * Kurzbeschreibung : Installationsscript. Bitte loeschen Sie diese *
22 * Datei nach der fertiggestellten Installation oder JEDER *
23 * kann Ihr Mailtausch-Script neu einstellen!!! *
25 * Als erstes sollten Sie die Basis-URL einstellen. *
26 * -------------------------------------------------------------------- *
28 * -------------------------------------------------------------------- *
29 * Copyright (c) 2003 - 2008 by Roland Haeder *
30 * For more information visit: http://www.mxchange.org *
32 * This program is free software; you can redistribute it and/or modify *
33 * it under the terms of the GNU General Public License as published by *
34 * the Free Software Foundation; either version 2 of the License, or *
35 * (at your option) any later version. *
37 * This program is distributed in the hope that it will be useful, *
38 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
39 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
40 * GNU General Public License for more details. *
42 * You should have received a copy of the GNU General Public License *
43 * along with this program; if not, write to the Free Software *
44 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, *
46 ************************************************************************/
48 // Tell every module / include file we are installing
49 define ('mxchange_installing', true);
51 // Load security system
52 require ("inc/libs/security_functions.php");
54 // Init "action" and "what"
55 global $what, $action;
56 $GLOBALS['what'] = ""; $GLOBALS['action'] = "";
57 if (!empty($_GET['action'])) $GLOBALS['action'] = secureString($_GET['action']);
58 if (!empty($_GET['what'])) $GLOBALS['what'] = secureString($_GET['what']);
61 $GLOBALS['module'] = "install";
64 require ("inc/config.php");
67 require (PATH."inc/header.php");
69 // Reload page to page=welcome when it is not specified
70 if (!isset($_GET['page']))
72 LOAD_URL(URL."/install.php?page=welcome");
76 if ((mxchange_installed) && (admin_registered)) {
78 ADD_FATAL(ALREADY_INSTALLED);
81 // Does something goes wrong?
82 if ((sizeof($FATAL == 0)) && (empty($FATAL[0]))) {
83 // Add main installation table
84 LOAD_TEMPLATE("install_header");
86 // Here start's our installtion stuff
87 require_once (PATH."inc/install-inc.php");
89 // Close main installation table
90 LOAD_TEMPLATE("install_footer");
94 require (PATH."inc/footer.php");