files (which made the script slower).
Signed-off-by: Roland Häder <roland@mxchange.org>
* -------------------------------------------------------------------- *
* 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 *
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'))) {
} // END - if
// Footer
-loadIncludeOnce('inc/footer.php');
+loadPageFooter();
// [EOF]
?>
* -------------------------------------------------------------------- *
* 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 *
//initApi();
// Load header here
-loadIncludeOnce('inc/header.php');
+loadPageHeader();
// @TODO Do stuff here
// Footer
-loadIncludeOnce('inc/footer.php');
+loadPageFooter();
// [EOF]
?>
* -------------------------------------------------------------------- *
* 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 *
setContentType('text/plain');
// Load header
-loadIncludeOnce('inc/header.php');
+loadPageHeader();
// @TODO Add processing of request here
// Load footer
-loadIncludeOnce('inc/footer.php');
+loadPageFooter();
// [EOF]
?>
* -------------------------------------------------------------------- *
* 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 *
sqlFreeResult($result);
// Include header
- loadIncludeOnce('inc/header.php');
+ loadPageHeader();
// Load final template
loadTemplate('beg_link', FALSE, $content);
}
// Include footer
- loadIncludeOnce('inc/footer.php');
+ loadPageFooter();
} elseif ((getUserData('status') != 'CONFIRMED') && (getUserData('status') != 'failed')) {
// Maybe locked/unconfirmed account?
$errorCode = generateErrorCodeFromUserStatus();
* -------------------------------------------------------------------- *
* 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 *
$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]
?>
* -------------------------------------------------------------------- *
* 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 *
require('inc/config-global.php');
// Load header here
-loadIncludeOnce('inc/header.php');
+loadPageHeader();
// @TODO Do stuff here
// Footer
-loadIncludeOnce('inc/footer.php');
+loadPageFooter();
// [EOF]
?>
* -------------------------------------------------------------------- *
* 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 *
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]
?>
* -------------------------------------------------------------------- *
* 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 *
} // END - if
// Output header
-loadIncludeOnce('inc/header.php');
+loadPageHeader();
if (isValidUserData()) {
// Transfer userid/nickname to constant
loadTemplate('doubler_index', FALSE, $content);
// Output footer
-loadIncludeOnce('inc/footer.php');
+loadPageFooter();
// [EOF]
?>
* -------------------------------------------------------------------- *
* 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 *
require('inc/config-global.php');
// Load header
-loadIncludeOnce('inc/header.php');
+loadPageHeader();
// Code set?
if (isGetRequestElementSet('code')) {
}
// Finish generation here
-loadIncludeOnce('inc/footer.php');
+loadPageFooter();
// [EOF]
?>
<?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
?>
<?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
?>
* -------------------------------------------------------------------- *
* 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 *
// 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;
} // END - if
// Add the footer (this will call doShutdown())
- loadIncludeOnce('inc/footer.php');
+ loadPageFooter();
}
// "Getter" for menu mode from given module
* 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 *
// 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
setContentType('text/html');
// Header
- loadIncludeOnce('inc/header.php');
+ loadPageHeader();
// Is the index page configured for redirect pr not?
if (getConfig('index_cookie') > 0) {
} // END - if
// Footer (which will call doShutdown() for us)
- loadIncludeOnce('inc/footer.php');
+ loadPageFooter();
} else {
// Redirect to main page
redirectToUrl('modules.php?module=index');
* -------------------------------------------------------------------- *
* 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 *
} // END - if
// Load header here
-loadIncludeOnce('inc/header.php');
+loadPageHeader();
// Handle fatal errors
runFilterChain('handle_fatal_errors');
}
// Footer
-loadIncludeOnce('inc/footer.php');
+loadPageFooter();
// [EOF]
?>
* -------------------------------------------------------------------- *
* 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 *
// 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'));
} // END - if
// Load footer
- loadIncludeOnce('inc/footer.php');
+ loadPageFooter();
} // END - if
// Shutdown
* -------------------------------------------------------------------- *
* 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 *
redirectOnUninstalledExtension('lead');
// Header
-loadIncludeOnce('inc/header.php');
+loadPageHeader();
// Initialize the array for the template
$content = array(
loadTemplate('lead_code', FALSE, $content);
// Footer
-loadIncludeOnce('inc/footer.php');
+loadPageFooter();
// [EOF]
?>
* -------------------------------------------------------------------- *
* 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 *
// No image?
if ($data['do'] != 'img') {
// ... then output header
- loadIncludeOnce('inc/header.php');
+ loadPageHeader();
} // END - fi
// Init result for below sqlNumRows() function
// Insert footer if no image
if ($data['do'] != 'img') {
// Write footer
- loadIncludeOnce('inc/footer.php');
+ loadPageFooter();
} // END - if
// Really all done here... ;-)
* -------------------------------------------------------------------- *
* 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 *
setContentType('text/plain');
// Load header
-loadIncludeOnce('inc/header.php');
+loadPageHeader();
// Is the required extension installed?
if ((isExtensionInstalled('network')) && (countRequestGet() > 0)) {
} // END - if
// Load footer
-loadIncludeOnce('inc/footer.php');
+loadPageFooter();
// [EOF]
?>
* -------------------------------------------------------------------- *
* 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 *
setContentType('text/plain');
// Load header
-loadIncludeOnce('inc/header.php');
+loadPageHeader();
// Is the required extension installed?
if ((isExtensionInstalled('network')) && (countRequestGet() > 0)) {
} // END - if
// Load footer
-loadIncludeOnce('inc/footer.php');
+loadPageFooter();
// [EOF]
?>
* -------------------------------------------------------------------- *
* 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 *
redirectOnUninstalledExtension('bonus');
// Include header
-loadIncludeOnce('inc/header.php');
+loadPageHeader();
if ((isValidId(getRequestElement('userid'))) && (getRequestElement('d') > 0) && (isGetRequestElementSet('t'))) {
// Set row name
loadTemplate('show_bonus', FALSE, $content);
// Include footer
-loadIncludeOnce('inc/footer.php');
+loadPageFooter();
// [EOF]
?>
* -------------------------------------------------------------------- *
* 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 *
redirectToUrl($url);
} else {
// Load header
- loadIncludeOnce('inc/header.php');
+ loadPageHeader();
// Is there a 'code' provided?
if (isGetRequestElementSet('code')) {
$GLOBALS['__header_sent'] = 2;
// Load footer
- loadIncludeOnce('inc/footer.php');
+ loadPageFooter();
}
} else {
// Redirect
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())) {
} // 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
}
// Load header
- loadIncludeOnce('inc/header.php');
+ loadPageHeader();
// Determine template name
$templateName = determineSurfbarTemplateName();
// Load footer
$GLOBALS['__footer_sent'] = 3;
-loadIncludeOnce('inc/footer.php');
+loadPageFooter();
// [EOF]
?>