]> git.mxchange.org Git - mailer.git/blob - install.php
Commented out for Opera fix, thanks to profi-concept. More headers added for buggy...
[mailer.git] / install.php
1 <?php
2 /************************************************************************
3  * MXChange v0.2.1                                    Start: 08/25/2003 *
4  * ===============                              Last change: 04/26/2004 *
5  *                                                                      *
6  * -------------------------------------------------------------------- *
7  * File              : install.php                                      *
8  * -------------------------------------------------------------------- *
9  *                                                                      *
10  *          ------------------------------------------------            *
11  *         / PLEASE READ THIS!  /  BITTE LESEN SIE DIESES! /            *
12  *        -------------------------------------------------             *
13  *                                                                      *
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  * -------------------------------------------------------------------- *
23  *                                                                      *
24  * -------------------------------------------------------------------- *
25  * Copyright (c) 2003 - 2008 by Roland Haeder                           *
26  * For more information visit: http://www.mxchange.org                  *
27  *                                                                      *
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.                                  *
32  *                                                                      *
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.                         *
37  *                                                                      *
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,               *
41  * MA  02110-1301  USA                                                  *
42  ************************************************************************/
43
44 // Tell every module / include file we are installing
45 define('mxchange_installing', true);
46
47 // Load security system
48 require ("inc/libs/security_functions.php");
49
50 // Init "action" and "what"
51 global $what, $action;
52 $GLOBALS['what']   = "";
53 $GLOBALS['action'] = "";
54
55 // Set module
56 $GLOBALS['module'] = "install";
57
58 // Load config file
59 require ("inc/config.php");
60
61 // Header
62 require (PATH."inc/header.php");
63
64 // Reload page to page=welcome when it is not specified
65 if (!isset($_GET['page'])) {
66         LOAD_URL("install.php?page=welcome");
67 } // END - if
68
69 // Already installed?
70 if ((isBooleanConstantAndTrue('mxchange_installed')) && (isBooleanConstantAndTrue('admin_registered'))) {
71         // Add fatal message
72         ADD_FATAL(ALREADY_INSTALLED);
73 } // END - if
74
75 // Does something goes wrong?
76 if ((sizeof($FATAL == 0)) && (empty($FATAL[0]))) {
77         // Add main installation table
78         LOAD_TEMPLATE("install_header");
79
80         // Here start's our installtion stuff
81         require_once (PATH."inc/install-inc.php");
82
83         // Close main installation table
84         LOAD_TEMPLATE("install_footer");
85 }
86
87 // Footer
88 require (PATH."inc/footer.php");
89
90 //
91 ?>