X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=birthday_confirm.php;h=c228c94a1379db3b2e856fcc28758a19a141829f;hp=68738e58d9e540a1d07dc21cdc328b6a2f7c36d4;hb=2a54b10c7d9da3b47d245b2911bed17b21a70414;hpb=64c8349613addc3da2242c5cd6b99d64e3fb5f8e diff --git a/birthday_confirm.php b/birthday_confirm.php index 68738e58d9..c228c94a13 100644 --- a/birthday_confirm.php +++ b/birthday_confirm.php @@ -1,7 +1,7 @@ "); +//* DEBUG: */ outputHtml("userid=".$userid.",chk=".$chk." (".strlen($chk).'/'.strlen(getRequestParameter('check')).'/'.SQL_NUMROWS($result).")
"); // Prepare content $content = array(); @@ -92,7 +92,7 @@ if (SQL_NUMROWS($result) == 1) { // Add points to account // @TODO Try to rewrite the following unset() unset($GLOBALS['ref_level']); - addPointsThroughReferalSystem('birthday_confirm', $userid, $data['points'], false, '0', $locked, strtolower(getConfig('birthday_mode'))); + addPointsThroughReferalSystem('birthday_confirm', $userid, $data['points'], false, 0, $locked, strtolower(getConfig('birthday_mode'))); // Remove entry from table SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM `{?_MYSQL_PREFIX?}_user_birthday` WHERE `userid`=%s AND `chk_value`='%s' LIMIT 1", @@ -106,7 +106,7 @@ if (SQL_NUMROWS($result) == 1) { $content['message'] = loadTemplate('birthday_msg', true, $data); } else { // Unconfirmed / locked accounts cannot get points - $content['message'] = sprintf(getMessage('BIRTHDAY_CANNOT_STATUS'), translateUserStatus($data['status'])); + $content['message'] = getMaskedMessage('BIRTHDAY_CANNOT_STATUS', translateUserStatus($data['status'])); } } else { // Cannot load data!