X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=autoreg.php;h=f843365074270b763ba1a73389e42c47cb8bf750;hp=54b0b9eb8f79057b4742a04243c951d144554958;hb=cb11b0028323b24de48bfbab2ed576455e0d9465;hpb=e1cf98e08d4d92edf492396b82c67efa97a0ece8 diff --git a/autoreg.php b/autoreg.php index 54b0b9eb8f..f843365074 100644 --- a/autoreg.php +++ b/autoreg.php @@ -10,14 +10,9 @@ * -------------------------------------------------------------------- * * Kurzbeschreibung : API-Script fuer ext-autoreg * * -------------------------------------------------------------------- * - * $Revision:: $ * - * $Date:: $ * - * $Tag:: 0.2.1-FINAL $ * - * $Author:: $ * - * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * Copyright (c) 2009 - 2011 by Mailer Developer Team * - * For more information visit: http://www.mxchange.org * + * Copyright (c) 2009 - 2016 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 * @@ -39,26 +34,30 @@ require('inc/libs/security_functions.php'); // Init start time -$GLOBALS['startTime'] = microtime(true); +$GLOBALS['__start_time'] = microtime(TRUE); -// Set module -$GLOBALS['module'] = 'autoreg'; -$GLOBALS['output_mode'] = 1; -$GLOBALS['header_sent'] = 3; +/* + * Set output to "AJAX mode", proper module and prevent HTML headers/footers + * being sent. + */ +$GLOBALS['__output_mode'] = -2; +$GLOBALS['__module'] = 'autoreg'; +$GLOBALS['__header_sent'] = 2; +$GLOBALS['__footer_sent'] = 2; -// Load the required file(s) -require('inc/config-global.php'); +// Initialize application +require('inc/init.php'); // Set content type setContentType('text/plain'); // Load header -loadIncludeOnce('inc/header.php'); +loadPageHeader(); // @TODO Add processing of request here // Load footer -loadIncludeOnce('inc/footer.php'); +loadPageFooter(); // [EOF] ?>