From fb9a9090248ca810eab3028c660cc0fa429cf854 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Thu, 10 Jan 2013 01:31:10 +0000 Subject: [PATCH] Set proper mode and values --- autoreg.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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'); -- 2.39.5