X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=autoreg.php;h=aa1f7d8404f6a6ab17bcc23070a01f17144671f2;hp=6deabf125cca5121e958fc7d0e194a4071b29909;hb=8cab12aa2bd0bd1de03a377b37cd42faae64b0e1;hpb=c3b4eaf29946349ff058691db2dcb615a5379bb2 diff --git a/autoreg.php b/autoreg.php index 6deabf125c..aa1f7d8404 100644 --- a/autoreg.php +++ b/autoreg.php @@ -6,9 +6,9 @@ * -------------------------------------------------------------------- * * File : autoreg.php * * -------------------------------------------------------------------- * - * Short description : The surfbar itself * + * Short description : API script for ext-autoreg * * -------------------------------------------------------------------- * - * Kurzbeschreibung : Die Surfbar selbst * + * Kurzbeschreibung : API-Script fuer ext-autoreg * * -------------------------------------------------------------------- * * $Revision:: $ * * $Date:: $ * @@ -16,8 +16,8 @@ * $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 - 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 * @@ -39,12 +39,16 @@ 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');