]> git.mxchange.org Git - mailer.git/blobdiff - inc/mails/doubler_mails.php
Added purging of subid and server_name logs
[mailer.git] / inc / mails / doubler_mails.php
index 6babb35b1880d90a4563396ae719de11f2e1c426..e1620270bb5eeac782fb0f53526f2a3de1030ea9 100644 (file)
@@ -148,10 +148,10 @@ if (((!SQL_HASZERONUMS($result_total)) && (getConfig('doubler_sent_all') == 'Y')
                        }
 
                        // Exclude webmaster from doubling...
-                       if ($content['userid'] != getConfig('doubler_userid')) {
+                       if ($content['userid'] != getDoublerUserid()) {
                                // Add points
                                initReferralSystem();
-                               addPointsThroughReferralSystem(sprintf("doubler_%s", strtolower(getConfig('doubler_send_mode'))), $content['userid'], $content['points']);
+                               addPointsThroughReferralSystem(sprintf("doubler_%s", strtolower(getDoublerSendMode())), $content['userid'], $content['points']);
                        } // END - if
 
                        // Set entry as "payed"
@@ -168,9 +168,9 @@ if (((!SQL_HASZERONUMS($result_total)) && (getConfig('doubler_sent_all') == 'Y')
                        } // END - if
 
                        // Exclude also webmaster's id in taking points from webmaster's account
-                       if (($userPoints > 0) && ($userPoints >= $content['points']) && ($okay === FALSE) && (getConfig('doubler_userid') > 0) && ($content['userid'] != getConfig('doubler_userid'))) {
+                       if (($userPoints > 0) && ($userPoints >= $content['points']) && ($okay === FALSE) && (getDoublerUserid() > 0) && ($content['userid'] != getDoublerUserid())) {
                                // Subtract points
-                               $okay = subtractPoints('doubler_payout', getConfig('doubler_userid'), $content['points']);
+                               $okay = subtractPoints('doubler_payout', getDoublerUserid(), $content['points']);
                        } // END - if
 
                        // Update doubler's account only when others are not updated