From: Roland Häder Date: Thu, 10 Jan 2013 01:31:10 +0000 (+0000) Subject: Set proper mode and values X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=fb9a9090248ca810eab3028c660cc0fa429cf854;p=mailer.git Set proper mode and values --- diff --git a/autoreg.php b/autoreg.php index a5bf978dcf..a7b5ee159b 100644 --- a/autoreg.php +++ b/autoreg.php @@ -41,10 +41,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');