} // END - switch
// Export data into constants for the template
- $content['points'] = translateComma($payment);
$content['banner'] = loadTemplate('mailid_banner', true);
// Only when user extension = v0.1.2: Update mails-confirmed counter
// Is an active-rallye running and this is not a notification mail?
if ((isBonusRallyeActive()) && ($notify != 'Y')) {
// Shall I exclude the webmaster's own userid from the active-rallye?
- if ((((getConfig('bonus_userid') == $url_userid) && (getConfig('bonus_include_own') == 'Y')) || (getConfig('bonus_userid') != $url_userid)) && (getConfig('def_refid') != $url_userid)) {
+ if ((((getBonusUserId() == $url_userid) && (getConfig('bonus_include_own') == 'Y')) || (getBonusUserId() != $url_userid)) && (getConfig('def_refid') != $url_userid)) {
// Add points and remember ranking are done in this function....
addTurboBonus($urlId, $url_userid, $type);
} // END - if
// Load total points
- $content['total'] = translateComma(
- countSumTotalData($url_userid, 'user_points', 'points') -
- countSumTotalData($url_userid, 'user_data', 'used_points')
- );
+ $content['total'] = getTotalPoints($url_userid);
// Load template
loadTemplate($template, false, $content);