Installation rewritten to use more EL code
[mailer.git] / install.php
index 5053ac7b8283cc17253edc0ea99d7c6e5f5e079c..85abd0c042d7d88318d5a49fc83badcea69b7cfa 100644 (file)
@@ -6,29 +6,17 @@
  * -------------------------------------------------------------------- *
  * File              : install.php                                      *
  * -------------------------------------------------------------------- *
- *                                                                      *
- *          ------------------------------------------------            *
- *         / PLEASE READ THIS!  /  BITTE LESEN SIE DIESES! /            *
- *        -------------------------------------------------             *
- *                                                                      *
- * -------------------------------------------------------------------- *
- * Short description : Installation script. Please delete this file     *
- *           after successfully installation or ANYONE can re-setup     *
- *           your mail exchange script!!!                               *
+ * Short description : Installation script.                             *
  * -------------------------------------------------------------------- *
- * Kurzbeschreibung  : Installationsscript. Bitte loeschen Sie diese    *
- *           Datei nach der fertiggestellten Installation oder JEDER    *
- *           kann Ihr Mailtausch-Script eventuell neu einstellen.       *
+ * Kurzbeschreibung  : Installationsscript.                             *
  * -------------------------------------------------------------------- *
  * $Revision::                                                        $ *
  * $Date::                                                            $ *
  * $Tag:: 0.2.1-FINAL                                                 $ *
  * $Author::                                                          $ *
- * Needs to be in all Files and every File needs "svn propset           *
- * svn:keywords Date Revision" (autoprobset!) at least!!!!!!            *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009, 2010 by Mailer Developer Team                    *
+ * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
  * For more information visit: http://www.mxchange.org                  *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -80,9 +68,9 @@ if (!isGetRequestParameterSet('page')) {
 setUsername('{--USERNAME_INSTALLER--}');
 
 // Already installed?
-if ((isInstalled()) && (getRequestParameter('page' != 'finished'))) {
+if ((isInstalled()) && (getRequestParameter('page') != 'finished')) {
        // Add fatal message
-       addFatalMessage(__FILE__, __LINE__, getMessage('ALREADY_INSTALLED'));
+       addFatalMessage(__FILE__, __LINE__, '{--ALREADY_INSTALLED--}');
 } // END - if
 
 // Load header here
@@ -94,11 +82,8 @@ runFilterChain('handle_fatal_errors');
 // Here start's our installtion stuff
 loadIncludeOnce('inc/install-inc.php');
 
-// Handle fatal errors again
-runFilterChain('handle_fatal_errors');
-
 // Load main installation table
-loadTemplate('install_main', false, $GLOBALS['install_content']);
+loadTemplate('install_main');
 
 // Footer
 loadIncludeOnce('inc/footer.php');