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 * -------------------------------------------------------------------- *
25 * $Tag:: 0.2.1-FINAL $ *
27 * Needs to be in all Files and every File needs "svn propset *
28 * svn:keywords Date Revision" (autoprobset!) at least!!!!!! *
29 * -------------------------------------------------------------------- *
30 * Copyright (c) 2003 - 2008 by Roland Haeder *
31 * For more information visit: http://www.mxchange.org *
33 * This program is free software; you can redistribute it and/or modify *
34 * it under the terms of the GNU General Public License as published by *
35 * the Free Software Foundation; either version 2 of the License, or *
36 * (at your option) any later version. *
38 * This program is distributed in the hope that it will be useful, *
39 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
40 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
41 * GNU General Public License for more details. *
43 * You should have received a copy of the GNU General Public License *
44 * along with this program; if not, write to the Free Software *
45 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, *
47 ************************************************************************/
49 // Load security system
50 require('inc/libs/security_functions.php');
52 // Tell every module / include file we are installing
53 $GLOBALS['mxchange_installing'] = true;
55 // Init "action" and "what"
56 $GLOBALS['what'] = '';
57 $GLOBALS['action'] = '';
59 // Set CSS variable for "normal mode"
60 $GLOBALS['output_mode'] = 0;
63 $GLOBALS['module'] = 'install';
66 require('inc/config-global.php');
71 addFatalMessage(__FILE__, __LINE__, getMessage('ALREADY_INSTALLED'));
74 // Does something goes wrong?
75 if (getTotalFatalErrors() == 0) {
76 // Reload page to page=welcome when it is not specified
77 if (!REQUEST_ISSET_GET('page')) {
78 redirectToUrl('install.php?page=welcome');
82 loadIncludeOnce('inc/header.php');
84 // Add main installation table
85 LOAD_TEMPLATE('install_header');
87 // Here start's our installtion stuff
88 loadIncludeOnce('inc/install-inc.php');
90 // Close main installation table
91 LOAD_TEMPLATE('install_footer');
94 loadIncludeOnce('inc/footer.php');
96 // Output fatal messages
97 loadInclude('inc/fatal_errors.php');