X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=birthday_confirm.php;h=8dd674554a8111d1efff54c441dc3362d5819a25;hp=27729533e4e3748d44c001562bdbeb1d976fb960;hb=feebd0199748544fe8c930b70e97452001a13f76;hpb=8a9324b2d931f54f54f4319fd7234910af77012c diff --git a/birthday_confirm.php b/birthday_confirm.php index 27729533e4..8dd674554a 100644 --- a/birthday_confirm.php +++ b/birthday_confirm.php @@ -44,7 +44,7 @@ $GLOBALS['module'] = "birthday_confirm"; $CSS = -1; // Load the required file(s) require ("inc/config.php"); -if (defined('mxchange_installed') && (mxchange_installed)) +if (defined('mxchange_installed') && (isBooleanConstantAndTrue('mxchange_installed'))) { // Script is installed so let's check for his confirmation link... $uid = strip_tags(bigintval($_GET['uid'])); @@ -71,10 +71,11 @@ WHERE b.userid=%d AND b.chk_value='%s' LIMIT 1", { // Set mode depending on how many mails the member has to confirm $locked = false; - if (($ref_payout > 0) && ($CONFIG['allow_direct_pay'] == 'N')) $locked = true; + if (($ref_payout > 0) && ($_CONFIG['allow_direct_pay'] == 'N')) $locked = true; // Add points to account - ADD_POINTS_REFSYSTEM($uid, $GIFT, false, "0", $locked, strtolower($CONFIG['birthday_mode'])); + $DEPTH = 0; + ADD_POINTS_REFSYSTEM($uid, $GIFT, false, "0", $locked, strtolower($_CONFIG['birthday_mode'])); // Remove entry from table $result = SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM "._MYSQL_PREFIX."_user_birthday WHERE userid=%d LIMIT 1", @@ -132,7 +133,7 @@ WHERE b.userid=%d AND b.chk_value='%s' LIMIT 1", else { // You have to configure first! - LOAD_URL(URL."/install.php"); + LOAD_URL("install.php"); } // Really all done here... ;-) ?>