]> git.mxchange.org Git - mailer.git/commitdiff
Missing initReferalSystem() call added
authorRoland Häder <roland@mxchange.org>
Fri, 15 Jul 2011 22:46:05 +0000 (22:46 +0000)
committerRoland Häder <roland@mxchange.org>
Fri, 15 Jul 2011 22:46:05 +0000 (22:46 +0000)
12 files changed:
inc/libs/autopurge_functions.php
inc/libs/rallye_functions.php
inc/libs/register_functions.php
inc/mails/doubler_mails.php
inc/modules/admin/what-del_email.php
inc/modules/member/what-cash_coupon.php
inc/modules/member/what-transfer.php
inc/modules/member/what-wernis.php
inc/monthly/monthly_beg.php
inc/monthly/monthly_bonus.php
inc/pool/pool-user.php
mailid_top.php

index 72d4e0ae7eced026d68a3a4d617fef26720d5e55..12181ed9dacfe6bea89b51235c9b51af6f7ace36 100644 (file)
@@ -49,6 +49,7 @@ function addPointsAutoPurge ($userid, $points) {
        } // END - if
 
        // Add points over the ref system directly now
+       initReferalSystem();
        addPointsThroughReferalSystem('autopurge_add', $userid, $points);
 
        // Send out mail to user
index 8be338a0662694a510e26e160d426beed789ba3c..c7df107ad4773dabbb83e4a31b1b56471231a047 100644 (file)
@@ -510,6 +510,7 @@ function markReferalRallyesAsExpired ($result) {
 
                        if ($DATA['points'] > 0) {
                                // Add points directly to user's account
+                               initReferalSystem();
                                addPointsThroughReferalSystem('rallye_winner:' . $winnerLevel, $userid, $DATA['points']);
                        } // END - if
 
index cc3e18157866e4019a5d5e6b9d66e38ccb43b86d..dc557b742c8c026c002d87e64c8be2b97af33fbe 100644 (file)
@@ -366,6 +366,7 @@ function doRegistration () {
        updateReferalCounter($userid);
 
        // Write his welcome-points
+       initReferalSystem();
        addPointsThroughReferalSystem('register_welcome', $userid, getPointsRegister());
 
        // Write catgories
index 7fa1ae34a1a4aecc22c955ab843c85e8796b22d7..81069f6f7c66a71fbc19ead4203d61227ced10e5 100644 (file)
@@ -142,6 +142,7 @@ if (((!SQL_HASZERONUMS($result_total)) && (getConfig('doubler_sent_all') == 'Y')
                        // Exclude webmaster from doubling...
                        if ($content['userid'] != getConfig('doubler_userid')) {
                                // Add points
+                               initReferalSystem();
                                addPointsThroughReferalSystem(sprintf("doubler_%s", strtolower(getConfig('doubler_send_mode'))), $content['userid'], $content['points']);
                        } // END - if
 
index d78bcec4d06d8e7dd7d0262321d11eb6ee31cda8..de084bb7c3c8d9c05654dbb17f05206506b9cc77 100644 (file)
@@ -109,6 +109,7 @@ LIMIT 1",
                                } // END - if
 
                                // Pay back points
+                               initReferalSystem();
                                addPointsThroughReferalSystem('mail_deleted', $content['sender'], $totalPoints);
 
                                // Output message
index 7c9a24241f70e230ead3059a5bc239b7ef87932f..8d384e90ab5b7000abefb8ae1faf51372a53a85f 100644 (file)
@@ -119,6 +119,7 @@ LIMIT 1",
                        } // END - if
 
                        // Now we just need to book that points on the user's account
+                       initReferalSystem();
                        addPointsThroughReferalSystem('coupon_cashed', getMemberId(), $content['points']);
 
                        // Subtract points from member account if the admin has selected one
index 26abac20f4b0980321e499410c3fa4b0b330de3e..c8518df6cbebbc76f503d2d194f8c4a9666fa52f 100644 (file)
@@ -161,6 +161,7 @@ switch ($mode) {
                                        ), __FILE__, __LINE__);
 
                                // Add points to account *directly* ...
+                               initReferalSystem();
                                addPointsThroughReferalSystem('transfer', bigintval(postRequestParameter('to_userid')), bigintval(postRequestParameter('points')));
 
                                // ... and add it to current user's used points
index e00af871a2ee8333868e4aca17c1bae0ce3a523b..d53b7e34ffc24c479712875a0f4ea63094606b01 100644 (file)
@@ -175,6 +175,7 @@ if ((isFormSent()) && (isGetRequestParameterSet('mode'))) {
                                        $success = WERNIS_EXECUTE_WITHDRAW(postRequestParameter('wernis_userid'), md5(postRequestParameter('wds66_password')), postRequestParameter('amount'));
                                        if ($success === true) {
                                                // Add it to this amount
+                                               initReferalSystem();
                                                addPointsThroughReferalSystem('wernis_withdraw', getMemberId(), bigintval(postRequestParameter('amount')));
 
                                                // Update the user data as well..
index dfc0eb786365a794ecd9ff596b8c4abdf9e05c7a..dcb6daca2157c963e2b75c73115d2e63e61bde5c 100644 (file)
@@ -83,6 +83,7 @@ LIMIT {?beg_ranks?}", __FILE__, __LINE__);
                // Load our winners...
                while ($content = SQL_FETCHARRAY($result_main)) {
                        // Add points to user's account directly
+                       initReferalSystem();
                        addPointsThroughReferalSystem('monthly_beg', $content['userid'], $content['beg_points']);
 
                        // Load email template and email it away
index ab81c37f9d224ba6a3e353d00f3b629416891e45..5cc27ce3b207666350ad654de5fa27ffd709d581 100644 (file)
@@ -91,6 +91,7 @@ LIMIT {?bonus_ranks?}', __FILE__, __LINE__);
                        // Make sure zero points are not mailed
                        if ($content['points'] > 0) {
                                // Add points to user's account directly
+                               initReferalSystem();
                                addPointsThroughReferalSystem('monthly_bonus', $content['userid'], $content['points']);
 
                                // Load email template and email it away
index 77ab6bc0372bd155f142792f5de1616f4ec62cc4..bc832f06251617b24ae5a2433ec57ec22b9bea4b 100644 (file)
@@ -255,6 +255,7 @@ if (!SQL_HASZERONUMS($result_main)) {
                                                if (isValidUserId($userid)) {
                                                        // User does not exists, pay points back
                                                        $points = getPaymentPoints($mailData['payment_id']);
+                                                       initReferalSystem();
                                                        addPointsThroughReferalSystem('pool_payback', $mailData['sender_userid'], $points);
 
                                                        // Add points together and remove user
index 54f17d5ad32b494b566fdaa0c7e4d39847110970..57c541e9720ee4909758dab53976391f5167cd1f 100644 (file)
@@ -298,6 +298,7 @@ if ((isValidUserId($userId)) && (($mailId > 0) || ($bonusId > 0)) && (!ifFatalEr
                                                                                loadTemplate($template, false, $content);
                                                                        } elseif (isValidUserId($sender)) {
                                                                                // Wrong image code! So add points to sender's account
+                                                                               initReferalSystem();
                                                                                addPointsThroughReferalSystem('mailid_payback', $sender, $payment);
 
                                                                                // Add payment points