]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-beg2.php
mailer project continued:
[mailer.git] / inc / modules / member / what-beg2.php
index dbeb5affa2c198f35a48f1aebcc178102030d185..f6b2fb935992459b9eeadc0c0bfdbc89671cc748 100644 (file)
@@ -16,8 +16,8 @@
  * $Author::                                                          $ *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
- * For more information visit: http://www.mxchange.org                  *
+ * 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 *
  * it under the terms of the GNU General Public License as published by *
@@ -37,7 +37,7 @@
 
 // Some security stuff...
 if (!defined('__SECURITY')) {
-       die();
+       exit();
 } elseif (!isMember()) {
        redirectToIndexMemberOnlyModule();
 }
@@ -61,12 +61,15 @@ if ((isExtensionActive('autopurge')) && (isBegActiveEnabled()) && ((getApInactiv
 
 // Let's check if there are some points left we can pay...
 $result = SQL_QUERY_ESC("SELECT
-       `userid`, `beg_points`, `last_online`
+       `userid`,
+       `beg_points`,
+       `last_online`
 FROM
        `{?_MYSQL_PREFIX?}_user_data`
 WHERE
        `beg_points` > 0 AND
        `status`='CONFIRMED'
+       " . runFilterChain('user_exclusion_sql', ' ') . "
        " . $lastOnline . "
 ORDER BY
        `beg_points` DESC,