X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=autoreg.php;h=38b93cbe4c02327585b83f8ecd27113a505fe7b9;hb=056b8a9b8d4aae308b7061f1b398381707d309cd;hp=a5bf978dcfc2c6239041eb0d6f0dba8be13ab85c;hpb=596c8ab32594401ca84abfbfe35513ddfff31bec;p=mailer.git diff --git a/autoreg.php b/autoreg.php index a5bf978dcf..38b93cbe4c 100644 --- a/autoreg.php +++ b/autoreg.php @@ -10,13 +10,8 @@ * -------------------------------------------------------------------- * * Kurzbeschreibung : API-Script fuer ext-autoreg * * -------------------------------------------------------------------- * - * $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 * @@ -41,10 +36,14 @@ require('inc/libs/security_functions.php'); // Init start time $GLOBALS['__start_time'] = microtime(TRUE); -// Set module +/* + * Set output to "AJAX mode", proper module and prevent HTML headers/footers + * being sent. + */ +$GLOBALS['__output_mode'] = -2; $GLOBALS['__module'] = 'autoreg'; -$GLOBALS['__output_mode'] = 1; -$GLOBALS['__header_sent'] = 3; +$GLOBALS['__header_sent'] = 2; +$GLOBALS['__footer_sent'] = 2; // Load the required file(s) require('inc/config-global.php'); @@ -53,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] ?>