Use upcoming functions loadPageHeader() and loadPageFooter() instead of include
authorRoland Haeder <roland@mxchange.org>
Thu, 17 Apr 2014 21:10:11 +0000 (23:10 +0200)
committerRoland Haeder <roland@mxchange.org>
Thu, 17 Apr 2014 21:10:11 +0000 (23:10 +0200)
files (which made the script slower).

Signed-off-by: Roland Häder <roland@mxchange.org>
21 files changed:
ajax.php
api.php
autoreg.php
beg.php
birthday_confirm.php
cron.php
css.php
doubler.php
img.php
inc/footer.php
inc/header.php
inc/module-functions.php
index.php
install.php
js.php
lead-confirm.php
mailid.php
network-delurl.php
network-vcheck.php
show_bonus.php
surfbar.php

index f0a0489..e580859 100644 (file)
--- a/ajax.php
+++ b/ajax.php
  * -------------------------------------------------------------------- *
  * Kurzbeschreibung  : AJAX-Abfragescript                               *
  * -------------------------------------------------------------------- *
- * $Revision::                                                        $ *
- * $Date::                                                            $ *
- * $Tag:: 0.2.1-FINAL                                                 $ *
- * $Author::                                                          $ *
- * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
  * Copyright (c) 2009 - 2013 by Mailer Developer Team                   *
  * For more information visit: http://mxchange.org                      *
@@ -63,7 +58,7 @@ loadIncludeOnce('inc/ajax-functions.php');
 initAjax();
 
 // Load header here
-loadIncludeOnce('inc/header.php');
+loadPageHeader();
 
 // Process only POST requests and that at least 'level' is set
 if ((getHttpRequestMethod() == 'POST') && (isPostRequestElementSet('level'))) {
@@ -84,7 +79,7 @@ if ((getHttpRequestMethod() == 'POST') && (isPostRequestElementSet('level'))) {
 } // END - if
 
 // Footer
-loadIncludeOnce('inc/footer.php');
+loadPageFooter();
 
 // [EOF]
 ?>
diff --git a/api.php b/api.php
index a6524ae..dedbd9c 100644 (file)
--- a/api.php
+++ b/api.php
  * -------------------------------------------------------------------- *
  * Kurzbeschreibung  : Allgemeines API-Script                           *
  * -------------------------------------------------------------------- *
- * $Revision::                                                        $ *
- * $Date::                                                            $ *
- * $Tag:: 0.2.1-FINAL                                                 $ *
- * $Author::                                                          $ *
- * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
  * Copyright (c) 2009 - 2013 by Mailer Developer Team                   *
  * For more information visit: http://mxchange.org                      *
@@ -63,12 +58,12 @@ require('inc/config-global.php');
 //initApi();
 
 // Load header here
-loadIncludeOnce('inc/header.php');
+loadPageHeader();
 
 // @TODO Do stuff here
 
 // Footer
-loadIncludeOnce('inc/footer.php');
+loadPageFooter();
 
 // [EOF]
 ?>
index aa1f7d8..38b93cb 100644 (file)
  * -------------------------------------------------------------------- *
  * Kurzbeschreibung  : API-Script fuer ext-autoreg                      *
  * -------------------------------------------------------------------- *
- * $Revision::                                                        $ *
- * $Date::                                                            $ *
- * $Tag:: 0.2.1-FINAL                                                 $ *
- * $Author::                                                          $ *
- * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
  * Copyright (c) 2009 - 2013 by Mailer Developer Team                   *
  * For more information visit: http://mxchange.org                      *
@@ -57,12 +52,12 @@ require('inc/config-global.php');
 setContentType('text/plain');
 
 // Load header
-loadIncludeOnce('inc/header.php');
+loadPageHeader();
 
 // @TODO Add processing of request here
 
 // Load footer
-loadIncludeOnce('inc/footer.php');
+loadPageFooter();
 
 // [EOF]
 ?>
diff --git a/beg.php b/beg.php
index e9877f9..226e198 100644 (file)
--- a/beg.php
+++ b/beg.php
  * -------------------------------------------------------------------- *
  * Kurzbeschreibung  : Bettel-Link fuer Mitglieder                      *
  * -------------------------------------------------------------------- *
- * $Revision::                                                        $ *
- * $Date::                                                            $ *
- * $Tag:: 0.2.1-FINAL                                                 $ *
- * $Author::                                                          $ *
- * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
  * Copyright (c) 2009 - 2013 by Mailer Developer Team                   *
  * For more information visit: http://mxchange.org                      *
@@ -162,7 +157,7 @@ if (isGetRequestElementSet('userid')) {
                sqlFreeResult($result);
 
                // Include header
-               loadIncludeOnce('inc/header.php');
+               loadPageHeader();
 
                // Load final template
                loadTemplate('beg_link', FALSE, $content);
@@ -182,7 +177,7 @@ if (isGetRequestElementSet('userid')) {
                }
 
                // Include footer
-               loadIncludeOnce('inc/footer.php');
+               loadPageFooter();
        } elseif ((getUserData('status') != 'CONFIRMED') && (getUserData('status') != 'failed')) {
                // Maybe locked/unconfirmed account?
                $errorCode = generateErrorCodeFromUserStatus();
index a54278b..b8b7421 100644 (file)
  * -------------------------------------------------------------------- *
  * Kurzbeschreibung  : Geburtstagsgutschrift bestaetigen                *
  * -------------------------------------------------------------------- *
- * $Revision::                                                        $ *
- * $Date::                                                            $ *
- * $Tag:: 0.2.1-FINAL                                                 $ *
- * $Author::                                                          $ *
- * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
  * Copyright (c) 2009 - 2013 by Mailer Developer Team                   *
  * For more information visit: http://mxchange.org                      *
@@ -121,13 +116,13 @@ sqlFreeResult($result);
 $GLOBALS['__module'] = 'birthday_confirm';
 
 // Include header
-loadIncludeOnce('inc/header.php');
+loadPageHeader();
 
 // Load final template and output it
 loadTemplate('birthday_confirm', FALSE, $content);
 
 // Include footer
-loadIncludeOnce('inc/footer.php');
+loadPageFooter();
 
 // [EOF]
 ?>
index acf0639..14721d1 100644 (file)
--- a/cron.php
+++ b/cron.php
  * -------------------------------------------------------------------- *
  * Kurzbeschreibung  : Cronjob-Script fuer externen/lokalen Aufruf      *
  * -------------------------------------------------------------------- *
- * $Revision::                                                        $ *
- * $Date::                                                            $ *
- * $Tag:: 0.2.1-FINAL                                                 $ *
- * $Author::                                                          $ *
- * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
  * Copyright (c) 2009 - 2013 by Mailer Developer Team                   *
  * For more information visit: http://mxchange.org                      *
@@ -57,12 +52,12 @@ $GLOBALS['__footer_sent'] = 2;
 require('inc/config-global.php');
 
 // Load header here
-loadIncludeOnce('inc/header.php');
+loadPageHeader();
 
 // @TODO Do stuff here
 
 // Footer
-loadIncludeOnce('inc/footer.php');
+loadPageFooter();
 
 // [EOF]
 ?>
diff --git a/css.php b/css.php
index 08ae246..3b8a281 100644 (file)
--- a/css.php
+++ b/css.php
  * -------------------------------------------------------------------- *
  * Kurzbeschreibung  : Ausgabe der Cascading-Style-Sheets (CSS)         *
  * -------------------------------------------------------------------- *
- * $Revision::                                                        $ *
- * $Date::                                                            $ *
- * $Tag:: 0.2.1-FINAL                                                 $ *
- * $Author::                                                          $ *
- * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
  * Copyright (c) 2009 - 2013 by Mailer Developer Team                   *
  * For more information visit: http://mxchange.org                      *
@@ -55,13 +50,13 @@ require('inc/config-global.php');
 setContentType('text/css');
 
 // Load header
-loadIncludeOnce('inc/header.php');
+loadPageHeader();
 
 // Load CSS code
 loadInclude('inc/stylesheet.php');
 
 // Load footer
-loadIncludeOnce('inc/footer.php');
+loadPageFooter();
 
 // [EOF]
 ?>
index 46f16f9..a9b0a2c 100644 (file)
  * -------------------------------------------------------------------- *
  * Kurzbeschreibung  : Punkteverdoppler                                 *
  * -------------------------------------------------------------------- *
- * $Revision::                                                        $ *
- * $Date::                                                            $ *
- * $Tag:: 0.2.1-FINAL                                                 $ *
- * $Author::                                                          $ *
- * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
  * Copyright (c) 2009 - 2013 by Mailer Developer Team                   *
  * For more information visit: http://mxchange.org                      *
@@ -177,7 +172,7 @@ if (getDoublerSendMode() == 'DIRECT') {
 } // END - if
 
 // Output header
-loadIncludeOnce('inc/header.php');
+loadPageHeader();
 
 if (isValidUserData()) {
        // Transfer userid/nickname to constant
@@ -206,7 +201,7 @@ $content['payout_history'] = generateDoublerTable(0, 'Y', 'N', 'DESC');
 loadTemplate('doubler_index', FALSE, $content);
 
 // Output footer
-loadIncludeOnce('inc/footer.php');
+loadPageFooter();
 
 // [EOF]
 ?>
diff --git a/img.php b/img.php
index d9780a6..aa6fd1f 100644 (file)
--- a/img.php
+++ b/img.php
  * -------------------------------------------------------------------- *
  * Kurzbeschreibung  : Code-Bild fuer verschiedene Zwecke               *
  * -------------------------------------------------------------------- *
- * $Revision::                                                        $ *
- * $Date::                                                            $ *
- * $Tag:: 0.2.1-FINAL                                                 $ *
- * $Author::                                                          $ *
- * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
  * Copyright (c) 2009 - 2013 by Mailer Developer Team                   *
  * For more information visit: http://mxchange.org                      *
@@ -49,7 +44,7 @@ $GLOBALS['__output_mode'] = -3;
 require('inc/config-global.php');
 
 // Load header
-loadIncludeOnce('inc/header.php');
+loadPageHeader();
 
 // Code set?
 if (isGetRequestElementSet('code')) {
@@ -67,7 +62,7 @@ if (isGetRequestElementSet('code')) {
 }
 
 // Finish generation here
-loadIncludeOnce('inc/footer.php');
+loadPageFooter();
 
 // [EOF]
 ?>
index 37a86ad..f551ef4 100644 (file)
@@ -1,63 +1,3 @@
 <?php
-/************************************************************************
- * Mailer v0.2.1-FINAL                                Start: 08/25/2003 *
- * ===================                          Last change: 10/23/2004 *
- *                                                                      *
- * -------------------------------------------------------------------- *
- * File              : footer.php                                       *
- * -------------------------------------------------------------------- *
- * Short description : Add the HTML code for the footer                 *
- * -------------------------------------------------------------------- *
- * Kurzbeschreibung  : Den Fuss des HTML-Codes hinzufuegen              *
- * -------------------------------------------------------------------- *
- * $Revision::                                                        $ *
- * $Date::                                                            $ *
- * $Tag:: 0.2.1-FINAL                                                 $ *
- * $Author::                                                          $ *
- * -------------------------------------------------------------------- *
- * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * 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 *
- * it under the terms of the GNU General Public License as published by *
- * the Free Software Foundation; either version 2 of the License, or    *
- * (at your option) any later version.                                  *
- *                                                                      *
- * This program is distributed in the hope that it will be useful,      *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of       *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the        *
- * GNU General Public License for more details.                         *
- *                                                                      *
- * You should have received a copy of the GNU General Public License    *
- * along with this program; if not, write to the Free Software          *
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,               *
- * MA  02110-1301  USA                                                  *
- ************************************************************************/
-
-// Some security stuff...
-if (!defined('__SECURITY')) {
-       die();
-} // END - if
-
-// Init page footer
-$GLOBALS['__page_footer'] = '';
-
-// Footer disabled (e.g. CSS/AJAX/image output) or already sent?
-// 1234      5                         54    45                              5    5                              543    3                443    3                 443    3                  44321
-if ((((!isset($GLOBALS['__footer_sent'])) || (($GLOBALS['__footer_sent'] != 1) && ($GLOBALS['__footer_sent'] != 2))) && (!isCssOutputMode()) && (!isAjaxOutputMode()) && (!isImageOutputMode()))) {
-       // Run the filter, sweet huh?
-       runFilterChain('page_footer');
-
-       // Load page footer
-       $GLOBALS['__page_footer'] .= loadTemplate('page_footer', TRUE);
-} // END - if
-
-// Footer has been reached
-$GLOBALS['__footer_sent'] = 1;
-
-// Shutdown
-doShutdown();
-
-// [EOF]
+// @DEPRECATED
 ?>
index 7dbc6b3..f551ef4 100644 (file)
@@ -1,73 +1,3 @@
 <?php
-/************************************************************************
- * Mailer v0.2.1-FINAL                                Start: 08/25/2003 *
- * ===================                          Last change: 11/24/2004 *
- *                                                                      *
- * -------------------------------------------------------------------- *
- * File              : header.php                                       *
- * -------------------------------------------------------------------- *
- * Short description : Outputs header HTML code, will not when frameset *
- *           is active                                                  *
- * -------------------------------------------------------------------- *
- * Kurzbeschreibung  : Gibt nur dann HTML-Code fuer den Kopf-Bereich    *
- *           aus, wenn Frameset nicht aktiv ist                         *
- * -------------------------------------------------------------------- *
- * $Revision::                                                        $ *
- * $Date::                                                            $ *
- * $Tag:: 0.2.1-FINAL                                                 $ *
- * $Author::                                                          $ *
- * -------------------------------------------------------------------- *
- * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * 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 *
- * it under the terms of the GNU General Public License as published by *
- * the Free Software Foundation; either version 2 of the License, or    *
- * (at your option) any later version.                                  *
- *                                                                      *
- * This program is distributed in the hope that it will be useful,      *
- * but WITHOUT ANY WARRANTY; without even the implied warranty of       *
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the        *
- * GNU General Public License for more details.                         *
- *                                                                      *
- * You should have received a copy of the GNU General Public License    *
- * along with this program; if not, write to the Free Software          *
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,               *
- * MA  02110-1301  USA                                                  *
- ************************************************************************/
-
-// Some security stuff...
-if (!defined('__SECURITY')) {
-       die();
-} // END - if
-
-// Init header
-$GLOBALS['__page_header'] = '';
-
-// Is the header already sent?
-if (($GLOBALS['__header_sent'] != 1) && ($GLOBALS['__header_sent'] != 2)) {
-       // Set default HTTP status to "200 OK"
-       setHttpStatus('200 OK');
-
-       // If not in CSS mode generate the header
-       if ((!isCssOutputMode()) && (!isAjaxOutputMode()) && (!isImageOutputMode())) {
-               // Prepare the header for HTML output
-               loadHtmlHeader();
-       } // END - if
-
-       // Closing HEAD tag
-       if ($GLOBALS['__header_sent'] == '0') {
-               $GLOBALS['__header_sent'] = 1;
-       } // END - if
-} // END - if
-
-// Add BODY tag or not?
-// @TODO Find a way to not use direct module comparison
-if ((!isCssOutputMode()) && (!isRawOutputMode()) && ($GLOBALS['__header_sent'] == 1) && (getModule() != 'frametester') && (!isFramesetModeEnabled())) {
-       loadTemplate('page_body');
-       $GLOBALS['__header_sent'] = 2;
-} // END - if
-
-// [EOF]
+// @DEPRECATED
 ?>
index f7779d0..49845ac 100644 (file)
  * -------------------------------------------------------------------- *
  * Kurzbeschreibung  : Modulfunktionen                                  *
  * -------------------------------------------------------------------- *
- * $Revision::                                                        $ *
- * $Date::                                                            $ *
- * $Tag:: 0.2.1-FINAL                                                 $ *
- * $Author::                                                          $ *
- * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
  * Copyright (c) 2009 - 2013 by Mailer Developer Team                   *
  * For more information visit: http://mxchange.org                      *
@@ -488,8 +483,8 @@ function doIncludeModule () {
        // Set content type
        setContentType('text/html');
 
-       // The header file
-       loadIncludeOnce('inc/header.php');
+       // Load page header
+       loadPageHeader();
 
        // Modules are by default not valid!
        $isModuleValid = FALSE;
@@ -522,7 +517,7 @@ function doIncludeModule () {
        } // END - if
 
        // Add the footer (this will call doShutdown())
-       loadIncludeOnce('inc/footer.php');
+       loadPageFooter();
 }
 
 // "Getter" for menu mode from given module
index ee98e09..329b0c2 100644 (file)
--- a/index.php
+++ b/index.php
  * Kurzbeschreibung  : Index-Seite. Eine simple Weiterleitung auf die   *
  *           modules.php                                                *
  * -------------------------------------------------------------------- *
- * $Revision::                                                        $ *
- * $Date::                                                            $ *
- * $Tag:: 0.2.1-FINAL                                                 $ *
- * $Author::                                                          $ *
- * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
  * Copyright (c) 2009 - 2013 by Mailer Developer Team                   *
  * For more information visit: http://mxchange.org                      *
@@ -58,7 +53,7 @@ setWhat(getIndexHome());
 
 // Shall we display 'home' in index.php?
 if ((isExtensionInstalledAndNewer('sql_patches', '0.8.3')) && (isDisplayHomeInIndexEnabled())) {
-       // Include module (and exit in inc/footer.php)
+       // Include module
        doIncludeModule();
 } // END - if
 
@@ -72,7 +67,7 @@ if ((isSessionVariableSet('visited')) || (getIndexDelay() > -1)) {
        setContentType('text/html');
 
        // Header
-       loadIncludeOnce('inc/header.php');
+       loadPageHeader();
 
        // Is the index page configured for redirect pr not?
        if (getConfig('index_cookie') > 0) {
@@ -97,7 +92,7 @@ if ((isSessionVariableSet('visited')) || (getIndexDelay() > -1)) {
        } // END - if
 
        // Footer (which will call doShutdown() for us)
-       loadIncludeOnce('inc/footer.php');
+       loadPageFooter();
 } else {
        // Redirect to main page
        redirectToUrl('modules.php?module=index');
index 44559e8..948cbd9 100644 (file)
  * -------------------------------------------------------------------- *
  * Kurzbeschreibung  : Installationsscript.                             *
  * -------------------------------------------------------------------- *
- * $Revision::                                                        $ *
- * $Date::                                                            $ *
- * $Tag:: 0.2.1-FINAL                                                 $ *
- * $Author::                                                          $ *
- * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
  * Copyright (c) 2009 - 2013 by Mailer Developer Team                   *
  * For more information visit: http://mxchange.org                      *
@@ -73,7 +68,7 @@ if ((isInstalled()) && (getRequestElement('install_page') != 'finished')) {
 } // END - if
 
 // Load header here
-loadIncludeOnce('inc/header.php');
+loadPageHeader();
 
 // Handle fatal errors
 runFilterChain('handle_fatal_errors');
@@ -110,7 +105,7 @@ if (isGetRequestElementSet('installer')) {
 }
 
 // Footer
-loadIncludeOnce('inc/footer.php');
+loadPageFooter();
 
 // [EOF]
 ?>
diff --git a/js.php b/js.php
index 5594b86..287edd2 100644 (file)
--- a/js.php
+++ b/js.php
  * -------------------------------------------------------------------- *
  * Kurzbeschreibung  : Code-Bild fuer verschiedene Zwecke               *
  * -------------------------------------------------------------------- *
- * $Revision::                                                        $ *
- * $Date::                                                            $ *
- * $Tag:: 0.2.1-FINAL                                                 $ *
- * $Author::                                                          $ *
- * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
  * Copyright (c) 2009 - 2013 by Mailer Developer Team                   *
  * For more information visit: http://mxchange.org                      *
@@ -66,7 +61,7 @@ setHttpStatus('404 Not Found');
 // Is 'js' is provied?
 if (isGetRequestElementSet('js')) {
        // Load header
-       loadIncludeOnce('inc/header.php');
+       loadPageHeader();
 
        // Prepare include file for looking
        $inc = sprintf('inc/js/js-%s.php', getRequestElement('js'));
@@ -81,7 +76,7 @@ if (isGetRequestElementSet('js')) {
        } // END - if
 
        // Load footer
-       loadIncludeOnce('inc/footer.php');
+       loadPageFooter();
 } // END - if
 
 // Shutdown
index 34deb6a..12b6106 100644 (file)
  * -------------------------------------------------------------------- *
  * Kurzbeschreibung  : Alles um den Bestaetigungslink                   *
  * -------------------------------------------------------------------- *
- * $Revision::                                                        $ *
- * $Date::                                                            $ *
- * $Tag:: 0.2.1-FINAL                                                 $ *
- * $Author::                                                          $ *
- * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
  * Copyright (c) 2009 - 2013 by Mailer Developer Team                   *
  * For more information visit: http://mxchange.org                      *
@@ -55,7 +50,7 @@ setContentType('text/html');
 redirectOnUninstalledExtension('lead');
 
 // Header
-loadIncludeOnce('inc/header.php');
+loadPageHeader();
 
 // Initialize the array for the template
 $content = array(
@@ -76,7 +71,7 @@ if ((isSessionVariableSet('lead_userid')) && (fetchUserData(getSession('lead_use
 loadTemplate('lead_code', FALSE, $content);
 
 // Footer
-loadIncludeOnce('inc/footer.php');
+loadPageFooter();
 
 // [EOF]
 ?>
index a1b85ad..90a2210 100644 (file)
  * -------------------------------------------------------------------- *
  * Kurzbeschreibung  : Bestaetigung von Mails                           *
  * -------------------------------------------------------------------- *
- * $Revision::                                                        $ *
- * $Date::                                                            $ *
- * $Tag:: 0.2.1-FINAL                                                 $ *
- * $Author::                                                          $ *
- * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
  * Copyright (c) 2009 - 2013 by Mailer Developer Team                   *
  * For more information visit: http://mxchange.org                      *
@@ -89,7 +84,7 @@ if ((isValidId($data['userid'])) && (isValidId($data['id'])) && (!empty($data['t
        // No image?
        if ($data['do'] != 'img') {
                // ... then output header
-               loadIncludeOnce('inc/header.php');
+               loadPageHeader();
        } // END - fi
 
        // Init result for below sqlNumRows() function
@@ -254,7 +249,7 @@ handleMailIdErrorCode($data['error_code']);
 // Insert footer if no image
 if ($data['do'] != 'img') {
        // Write footer
-       loadIncludeOnce('inc/footer.php');
+       loadPageFooter();
 } // END - if
 
 // Really all done here... ;-)
index c05da15..3f51c9f 100644 (file)
  * -------------------------------------------------------------------- *
  * Kurzbeschreibung  : VCheck Script fuer Erweiterung ext-network       *
  * -------------------------------------------------------------------- *
- * $Revision::                                                        $ *
- * $Date::                                                            $ *
- * $Tag:: 0.2.1-FINAL                                                 $ *
- * $Author::                                                          $ *
- * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
  * Copyright (c) 2009 - 2013 by Mailer Developer Team                   *
  * For more information visit: http://mxchange.org                      *
@@ -55,7 +50,7 @@ setHttpStatus('500 Internal Server Error');
 setContentType('text/plain');
 
 // Load header
-loadIncludeOnce('inc/header.php');
+loadPageHeader();
 
 // Is the required extension installed?
 if ((isExtensionInstalled('network')) && (countRequestGet() > 0)) {
@@ -64,7 +59,7 @@ if ((isExtensionInstalled('network')) && (countRequestGet() > 0)) {
 } // END - if
 
 // Load footer
-loadIncludeOnce('inc/footer.php');
+loadPageFooter();
 
 // [EOF]
 ?>
index e18e81a..ce7a708 100644 (file)
  * -------------------------------------------------------------------- *
  * Kurzbeschreibung  : VCheck Script fuer Erweiterung ext-network       *
  * -------------------------------------------------------------------- *
- * $Revision::                                                        $ *
- * $Date::                                                            $ *
- * $Tag:: 0.2.1-FINAL                                                 $ *
- * $Author::                                                          $ *
- * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
  * Copyright (c) 2009 - 2013 by Mailer Developer Team                   *
  * For more information visit: http://mxchange.org                      *
@@ -55,7 +50,7 @@ setHttpStatus('500 Internal Server Error');
 setContentType('text/plain');
 
 // Load header
-loadIncludeOnce('inc/header.php');
+loadPageHeader();
 
 // Is the required extension installed?
 if ((isExtensionInstalled('network')) && (countRequestGet() > 0)) {
@@ -64,7 +59,7 @@ if ((isExtensionInstalled('network')) && (countRequestGet() > 0)) {
 } // END - if
 
 // Load footer
-loadIncludeOnce('inc/footer.php');
+loadPageFooter();
 
 // [EOF]
 ?>
index daffd41..c581222 100644 (file)
  * -------------------------------------------------------------------- *
  * Kurzbeschreibung  : Rankliste fuer Turbo-Bonus anzeigen              *
  * -------------------------------------------------------------------- *
- * $Revision::                                                        $ *
- * $Date::                                                            $ *
- * $Tag:: 0.2.1-FINAL                                                 $ *
- * $Author::                                                          $ *
- * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
  * Copyright (c) 2009 - 2013 by Mailer Developer Team                   *
  * For more information visit: http://mxchange.org                      *
@@ -55,7 +50,7 @@ setContentType('text/html');
 redirectOnUninstalledExtension('bonus');
 
 // Include header
-loadIncludeOnce('inc/header.php');
+loadPageHeader();
 
 if ((isValidId(getRequestElement('userid'))) && (getRequestElement('d') > 0) && (isGetRequestElementSet('t'))) {
        // Set row name
@@ -132,7 +127,7 @@ LIMIT 1",
 loadTemplate('show_bonus', FALSE, $content);
 
 // Include footer
-loadIncludeOnce('inc/footer.php');
+loadPageFooter();
 
 // [EOF]
 ?>
index d94497b..700bd62 100644 (file)
  * -------------------------------------------------------------------- *
  * Kurzbeschreibung  : Die Surfbar selbst                               *
  * -------------------------------------------------------------------- *
- * $Revision::                                                        $ *
- * $Date::                                                            $ *
- * $Tag:: 0.2.1-FINAL                                                 $ *
- * $Author::                                                          $ *
- * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
  * Copyright (c) 2009 - 2013 by Mailer Developer Team                   *
  * For more information visit: http://mxchange.org                      *
@@ -74,7 +69,7 @@ if (!isMember()) {
                        redirectToUrl($url);
                } else {
                        // Load header
-                       loadIncludeOnce('inc/header.php');
+                       loadPageHeader();
 
                        // Is there a 'code' provided?
                        if (isGetRequestElementSet('code')) {
@@ -89,7 +84,7 @@ if (!isMember()) {
                        $GLOBALS['__header_sent'] = 2;
 
                        // Load footer
-                       loadIncludeOnce('inc/footer.php');
+                       loadPageFooter();
                }
        } else {
                // Redirect
@@ -107,7 +102,7 @@ doSurfbarSelfMaintenance();
 if ((isSurfbarReloadFull()) || ((!isFullPage()) && (in_array(getRequestElement('frame'), array('stop', 'stop2', 'stats', 'textlinks'))))) {
        // Reload-lock is full, surfbar stopped so...
        // Load header
-       loadIncludeOnce('inc/header.php');
+       loadPageHeader();
 
        // Load template
        if (((!isFullPage()) && (getRequestElement('frame') == 'stop2')) || (isFullPage())) {
@@ -165,13 +160,13 @@ if ((isSurfbarReloadFull()) || ((!isFullPage()) && (in_array(getRequestElement('
                } // END - if
 
                // Load header to avoid a bug
-               loadIncludeOnce('inc/header.php');
+               loadPageHeader();
        } else {
                // Reload to stop frame!
                redirectToSurfbarStopPage();
        }
 
-       // All done, so fix notice for footer.php
+       // All done, so fix notice for loadTemplateFooter()
        $GLOBALS['__footer_sent'] = 1;
 } else {
        // Prepare content
@@ -203,7 +198,7 @@ if ((isSurfbarReloadFull()) || ((!isFullPage()) && (in_array(getRequestElement('
        }
 
        // Load header
-       loadIncludeOnce('inc/header.php');
+       loadPageHeader();
 
        // Determine template name
        $templateName = determineSurfbarTemplateName();
@@ -215,7 +210,7 @@ if ((isSurfbarReloadFull()) || ((!isFullPage()) && (in_array(getRequestElement('
 
 // Load footer
 $GLOBALS['__footer_sent'] = 3;
-loadIncludeOnce('inc/footer.php');
+loadPageFooter();
 
 // [EOF]
 ?>