]> git.mxchange.org Git - mailer.git/blobdiff - beg.php
Mailer project continued:
[mailer.git] / beg.php
diff --git a/beg.php b/beg.php
index 20a109c180a9ae59cd108c2ee70442f4b152a022..1e8ef5f93e6e7c66bb99033ad24a1f66ef14b346 100644 (file)
--- a/beg.php
+++ b/beg.php
@@ -16,7 +16,7 @@
  * $Author::                                                          $ *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
+ * Copyright (c) 2009 - 2012 by Mailer Developer Team                   *
  * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
 require('inc/libs/security_functions.php');
 
 // Init start time
-$GLOBALS['startTime'] = microtime(true);
+$GLOBALS['__start_time'] = microtime(true);
 
-// Set module
-$GLOBALS['__module'] = 'beg';
-$GLOBALS['output_mode'] = -1;
+// Set module and output mode (HTML)
+$GLOBALS['__module']      = 'beg';
+$GLOBALS['__output_mode'] = '0';
 $errorCode = NULL;
 
 // Load the required file(s)
@@ -122,7 +122,7 @@ if (isGetRequestElementSet('userid')) {
                                 * but only when there is no admin begging.
                                 * Admins shall be able to test it!
                                 */
-                               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_beg_ips` (`userid`,`remote_ip`,`sid`,`timeout`) VALUES ('%s','%s','%s', UNIX_TIMESTAMP())",
+                               SQL_QUERY_ESC("INSERT INTO `{?_MYSQL_PREFIX?}_beg_ips` (`userid`, `remote_ip`, `sid`, `timeout`) VALUES ('%s','%s','%s', UNIX_TIMESTAMP())",
                                        array(
                                                getUserData('userid'),
                                                detectRemoteAddr(),
@@ -212,7 +212,7 @@ if (isGetRequestElementSet('userid')) {
 }
 
 // Really all done here... ;-)
-shutdown();
+doShutdown();
 
 // [EOF]
 ?>