]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/guest/what-confirm.php
wernis extension is now alpha code (only listing in admin area is missing), naming...
[mailer.git] / inc / modules / guest / what-confirm.php
index 2f0f114206f12ef0506926d768da79941319c9d7..3c20c0156d25a1f6c7447663f89bd57d03782c85 100644 (file)
@@ -56,7 +56,7 @@ if (!empty($_GET['hash']))
 
                // Unlock his account (but only when it is on UNCONFIRMED!)
                $result = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_user_data SET status='CONFIRMED', ref_payout='%s' WHERE user_hash='%s' AND status='UNCONFIRMED' LIMIT 1",
-                array($CONFIG['ref_payout'], $_GET['hash']), __FILE__, __LINE__);
+                array($_CONFIG['ref_payout'], $_GET['hash']), __FILE__, __LINE__);
                if (SQL_AFFECTEDROWS($link, __FILE__, __LINE__) == 1)
                {
                        $msg = LOAD_EMAIL_TEMPLATE("confirm-member", "", bigintval($uid));
@@ -79,7 +79,7 @@ if (!empty($_GET['hash']))
                                        unset($DEPTH);
 
                                        // Shall I "pay" the referral points imidiately?
-                                       if ($CONFIG['ref_payout'] == "0")
+                                       if ($_CONFIG['ref_payout'] == "0")
                                        {
                                                // Yes, "pay" it now
                                                $locked = false;
@@ -91,18 +91,19 @@ if (!empty($_GET['hash']))
                                        }
 
                                        // If version matches add ref bonus to refid's account
-                                       if ((GET_EXT_VERSION("bonus") >= "0.4.4") && ($CONFIG['bonus_active'] == 'Y'))
+                                       if ((GET_EXT_VERSION("bonus") >= "0.4.4") && ($_CONFIG['bonus_active'] == 'Y'))
                                        {
                                                // Add points (directly only!)
                                                $result = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_user_data SET bonus_ref=bonus_ref+%s WHERE userid=%d LIMIT 1",
-                                                array($CONFIG['bonus_ref'], bigintval($rid)), __FILE__, __LINE__);
+                                                array($_CONFIG['bonus_ref'], bigintval($rid)), __FILE__, __LINE__);
 
                                                // Subtract points from system
-                                               BONUS_POINTS_HANDLER($CONFIG['bonus_ref']);
+                                               BONUS_POINTS_HANDLER($_CONFIG['bonus_ref']);
                                        }
 
                                        // Add one-time referral bonus over referral system or directly
-                                       ADD_POINTS_REFSYSTEM($rid, $CONFIG['points_ref'], true, bigintval($uid), $locked, $CONFIG['reg_points_mode']);
+                                       $DEPTH = 0;
+                                       ADD_POINTS_REFSYSTEM($rid, $_CONFIG['points_ref'], true, bigintval($uid), $locked, $_CONFIG['reg_points_mode']);
                                }
                        }
 
@@ -118,7 +119,7 @@ if (!empty($_GET['hash']))
                                $_COOKIE['lead_uid'] = bigintval($uid);
 
                                // Lead-Code mode enabled
-                               LOAD_URL(URL."/lead-confirm.php");
+                               LOAD_URL("lead-confirm.php");
                        } else {
                                define('__CONFIRM_MSG', GUEST_CONFIRMED_DONE);
                                define('__UID', bigintval($uid));
@@ -130,7 +131,7 @@ if (!empty($_GET['hash']))
                        $_COOKIE['lead_uid'] = bigintval($uid);
 
                        // Lead-Code mode enabled
-                       LOAD_URL(URL."/lead-confirm.php");
+                       LOAD_URL("lead-confirm.php");
                } else {
                        // Nobody was found unter this hash key... or our new member want's to confirm twice?
                        define('__CONFIRM_MSG', GUEST_CONFIRMED_TWICE);