]> git.mxchange.org Git - mailer.git/commitdiff
Set proper mode and values
authorRoland Häder <roland@mxchange.org>
Thu, 10 Jan 2013 01:31:10 +0000 (01:31 +0000)
committerRoland Häder <roland@mxchange.org>
Thu, 10 Jan 2013 01:31:10 +0000 (01:31 +0000)
autoreg.php

index a5bf978dcfc2c6239041eb0d6f0dba8be13ab85c..a7b5ee159ba45e4d55ecc7c9e389dfc4c082c95e 100644 (file)
@@ -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');