- obsolete templates/scripts removed
[mailer.git] / 0.2.1 / install.php
1 <?php\r
2 /************************************************************************\r
3  * MXChange v0.1.0                                    Start: 08/25/2003 *\r
4  * ===============                              Last change: 04/26/2004 *\r
5  *                                                                      *\r
6  * -------------------------------------------------------------------- *\r
7  * File              : install.php                                      *\r
8  * -------------------------------------------------------------------- *\r
9  *                                                                      *\r
10  *          ------------------------------------------------            *\r
11  *         / PLEASE READ THIS!  /  BITTE LESEN SIE DIESES! /            *\r
12  *        -------------------------------------------------             *\r
13  *                                                                      *\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
18  *                                                                      *\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
24  *                                                                      *\r
25  *           Als erstes sollten Sie die Basis-URL einstellen.           *\r
26  * -------------------------------------------------------------------- *\r
27  *                                                                      *\r
28  * -------------------------------------------------------------------- *\r
29  * Copyright (c) 2003 - 2008 by Roland Haeder                           *\r
30  * For more information visit: http://www.mxchange.org                  *\r
31  *                                                                      *\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
36  *                                                                      *\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
41  *                                                                      *\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
47 \r
48 // Tell every module / include file we are installing\r
49 define ('mxchange_installing', true);\r
50 \r
51 // Load security system\r
52 require ("inc/libs/security_functions.php");\r
53 \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'] = secureString($_GET['action']);\r
58 if (!empty($_GET['what'])) $GLOBALS['what'] = secureString($_GET['what']);\r
59 \r
60 // Set module\r
61 $GLOBALS['module'] = "install";\r
62 \r
63 // Load config file\r
64 require ("inc/config.php");\r
65 \r
66 // Header\r
67 require (PATH."inc/header.php");\r
68 \r
69 // Reload page to page=welcome when it is not specified\r
70 if (!isset($_GET['page']))\r
71 {\r
72         LOAD_URL(URL."/install.php?page=welcome");\r
73 }\r
74 \r
75 // Already installed?\r
76 if ((mxchange_installed) && (admin_registered)) {\r
77         // Add fatal message\r
78         ADD_FATAL(ALREADY_INSTALLED);\r
79 }\r
80 \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
85 \r
86         // Here start's our installtion stuff\r
87         require_once (PATH."inc/install-inc.php");\r
88 \r
89         // Close main installation table\r
90         LOAD_TEMPLATE("install_footer");\r
91 }\r
92 \r
93 // Footer\r
94 require (PATH."inc/footer.php");\r
95 \r
96 //\r
97 ?>\r