]> git.mxchange.org Git - mailer.git/blobdiff - inc/pool/pool-bonus.php
Damn typo fixed... ;-)
[mailer.git] / inc / pool / pool-bonus.php
index 7c295b2f340003af05a8499a766fb426cf1b2d42..928808d36921313c2a207219bdf087e17ac247e5 100644 (file)
  * -------------------------------------------------------------------- *
  * Kurzbeschreibung  : Sendet freigegebene Bonus-Mails aus dem Pool     *
  * -------------------------------------------------------------------- *
- *                                                                      *
+ * $Revision::                                                        $ *
+ * $Date::                                                            $ *
+ * $Tag:: 0.2.1-FINAL                                                 $ *
+ * $Author::                                                          $ *
+ * Needs to be in all Files and every File needs "svn propset           *
+ * svn:keywords Date Revision" (autoprobset!) at least!!!!!!            *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2008 by Roland Haeder                           *
  * For more information visit: http://www.mxchange.org                  *
@@ -38,7 +43,7 @@ if (!defined('__SECURITY')) {
 }
 
 // Don't run on daily reset
-if (defined('__DAILY_RESET')) {
+if (isResetModeEnabled()) {
        // Skip here
        return false;
 } elseif (!EXT_IS_ACTIVE("bonus")) {
@@ -47,8 +52,6 @@ if (defined('__DAILY_RESET')) {
 }
 
 // Need this here
-global $REPLACER;
-
 // Only send bonus mail when bonus extension is active and maximum send-mails is not reached
 if ($GLOBALS['pool_cnt'] < getConfig('max_send')) {
        // Do we need to send out bonus mails?
@@ -101,7 +104,7 @@ if ($GLOBALS['pool_cnt'] < getConfig('max_send')) {
                                        // Mark this user as "spammed" ;-) And place a line for him...
                                        if (REMOVE_RECEIVER($dummy, $key, $uid, $DATA['id'], $DATA['id'], true) == "done") {
                                                // Replace text variables
-                                               foreach ($REPLACER as $key => $value) {
+                                               foreach ($GLOBALS['replacer'] as $key => $value) {
                                                        if (isset($DATA[$key])) $DATA['text'] = str_replace($value, $DATA[$key], $DATA['text']);
                                                } // END - foreach