Use upcoming functions loadPageHeader() and loadPageFooter() instead of include
[mailer.git] / install.php
index 6b6c5d6957477d85f83abcb1f00b32b828f82bbc..948cbd9af6e328dc84e59150d7671c93ac154a6a 100644 (file)
  * -------------------------------------------------------------------- *
  * Kurzbeschreibung  : Installationsscript.                             *
  * -------------------------------------------------------------------- *
- * $Revision::                                                        $ *
- * $Date::                                                            $ *
- * $Tag:: 0.2.1-FINAL                                                 $ *
- * $Author::                                                          $ *
- * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2012 by Mailer Developer Team                   *
+ * Copyright (c) 2009 - 2013 by Mailer Developer Team                   *
  * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
 require('inc/libs/security_functions.php');
 
 // Init start time
-$GLOBALS['__start_time'] = microtime(true);
+$GLOBALS['__start_time'] = microtime(TRUE);
 
 // Tell every module / require file we are installing
-$GLOBALS['__mailer_installing'] = true;
+$GLOBALS['__mailer_installing'] = TRUE;
 
 // Set module and output mode
 $GLOBALS['__module']      = 'install';
@@ -73,12 +68,12 @@ if ((isInstalled()) && (getRequestElement('install_page') != 'finished')) {
 } // END - if
 
 // Load header here
-loadIncludeOnce('inc/header.php');
+loadPageHeader();
 
 // Handle fatal errors
 runFilterChain('handle_fatal_errors');
 
-// Do we have plain or AJAX-enabled installation?
+// Is plain or AJAX-enabled installation used?
 if (isGetRequestElementSet('installer')) {
        // Set installer type
        setSession('installer', getRequestElement('installer'));
@@ -96,7 +91,7 @@ if (isGetRequestElementSet('installer')) {
        );
 
        // Load main installation table
-       loadTemplate('install_main_ajax', false, $content);
+       loadTemplate('install_main_ajax', FALSE, $content);
 } elseif (isPlainInstaller()) {
        // Plain installer:
        // Load include file
@@ -110,7 +105,7 @@ if (isGetRequestElementSet('installer')) {
 }
 
 // Footer
-loadIncludeOnce('inc/footer.php');
+loadPageFooter();
 
 // [EOF]
 ?>