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