Method extensionVersionMatches() is now cached in
[mailer.git] / install.php
1 <?php
2 /************************************************************************
3  * Mailer v0.2.1-FINAL                                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 eventuell neu einstellen.       *
22  * -------------------------------------------------------------------- *
23  * $Revision::                                                        $ *
24  * $Date::                                                            $ *
25  * $Tag:: 0.2.1-FINAL                                                 $ *
26  * $Author::                                                          $ *
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 - 2009 by Roland Haeder                           *
31  * Copyright (c) 2009, 2010 by Mailer Developer Team                    *
32  * For more information visit: http://www.mxchange.org                  *
33  *                                                                      *
34  * This program is free software; you can redistribute it and/or modify *
35  * it under the terms of the GNU General Public License as published by *
36  * the Free Software Foundation; either version 2 of the License, or    *
37  * (at your option) any later version.                                  *
38  *                                                                      *
39  * This program is distributed in the hope that it will be useful,      *
40  * but WITHOUT ANY WARRANTY; without even the implied warranty of       *
41  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the        *
42  * GNU General Public License for more details.                         *
43  *                                                                      *
44  * You should have received a copy of the GNU General Public License    *
45  * along with this program; if not, write to the Free Software          *
46  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,               *
47  * MA  02110-1301  USA                                                  *
48  ************************************************************************/
49
50 // XDEBUG call
51 //* DEBUG: */ xdebug_start_trace();
52
53 // Load security system
54 require('inc/libs/security_functions.php');
55
56 // Init start time
57 $GLOBALS['startTime'] = microtime(true);
58
59 // Tell every module / require file we are installing
60 $GLOBALS['mxchange_installing'] = true;
61
62 // Set CSS variable for "normal mode"
63 $GLOBALS['output_mode'] = '0';
64
65 // Set module
66 $GLOBALS['module'] = 'install';
67
68 // Load config file
69 require('inc/config-global.php');
70
71 // Set content type
72 setContentType('text/html');
73
74 // Reload page to page=welcome when it is not specified
75 if (!isGetRequestParameterSet('page')) {
76         redirectToUrl('install.php?page=welcome');
77 } // END - if
78
79 // Set username
80 setUsername('{--USERNAME_INSTALLER--}');
81
82 // Already installed?
83 if ((isInstalled()) && (getRequestParameter('page' != 'finished'))) {
84         // Add fatal message
85         addFatalMessage(__FILE__, __LINE__, getMessage('ALREADY_INSTALLED'));
86 } // END - if
87
88 // Load header here
89 loadIncludeOnce('inc/header.php');
90
91 // Handle fatal errors
92 runFilterChain('handle_fatal_errors');
93
94 // Here start's our installtion stuff
95 loadIncludeOnce('inc/install-inc.php');
96
97 // Handle fatal errors again
98 runFilterChain('handle_fatal_errors');
99
100 // Load main installation table
101 loadTemplate('install_main', false, $GLOBALS['install_content']);
102
103 // Footer
104 loadIncludeOnce('inc/footer.php');
105
106 // [EOF]
107 ?>