Added update_year.sh (still not fully flexible) and updated all years with it.
[mailer.git] / autoreg.php
index 3f53e3d8d217b4c3fedfabb9571cfc08c633cc5a..f4e281b6fb7ce0343599fc05b182ab41277acebf 100644 (file)
@@ -6,19 +6,13 @@
  * -------------------------------------------------------------------- *
  * File              : autoreg.php                                      *
  * -------------------------------------------------------------------- *
- * Short description : The surfbar itself                               *
+ * Short description : API script for ext-autoreg                       *
  * -------------------------------------------------------------------- *
- * Kurzbeschreibung  : Die Surfbar selbst                               *
- * -------------------------------------------------------------------- *
- * $Revision:: 1642                                                   $ *
- * $Date:: 2009-12-04 07:41:11 +0100 (Fri, 04 Dec 2009)               $ *
- * $Tag:: 0.2.1-FINAL                                                 $ *
- * $Author:: quix0r                                                   $ *
- * Needs to be in all Files and every File needs "svn propset           *
- * svn:keywords Date Revision" (autoprobset!) at least!!!!!!            *
+ * Kurzbeschreibung  : API-Script fuer ext-autoreg                      *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * For more information visit: http://www.mxchange.org                  *
+ * Copyright (c) 2009 - 2015 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 *
 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');
@@ -54,12 +52,12 @@ require('inc/config-global.php');
 setContentType('text/plain');
 
 // Load header
-loadIncludeOnce('inc/header.php');
+loadPageHeader();
 
 // @TODO Add processing of request here
 
 // Load footer
-loadIncludeOnce('inc/footer.php');
+loadPageFooter();
 
 // [EOF]
 ?>