* $Tag:: 0.2.1-FINAL $ *
* $Author:: $ *
* -------------------------------------------------------------------- *
+ * @TODO Merge this script with mailid.php *
+ * -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
* Copyright (c) 2009 - 2011 by Mailer Developer Team *
* For more information visit: http://www.mxchange.org *
array($userId), __FILE__, __LINE__);
// Add points
- // @TODO Try to rewrite the following unset()
- unset($GLOBALS['ref_level']);
+ initReferalSystem();
addPointsThroughReferalSystem('mailid_okay', $userId, $payment);
// Shall I add bonus points for "turbo clickers" ?
// 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 ((((getBonusUserId() == $userId) && (getConfig('bonus_include_own') == 'Y')) || (getBonusUserId() != $userId)) && (getDefRefid() != $userId)) {
+ if ((((getBonusUserid() == $userId) && (getConfig('bonus_include_own') == 'Y')) || (getBonusUserid() != $userId)) && (getDefRefid() != $userId)) {
// Add points and remember ranking are done in this function....
addTurboBonus($urlId, $userId, $type);
} // END - if
// Load total points
- $content['total'] = getTotalPoints($userId);
+ $content['total_points'] = getTotalPoints($userId);
// Add payment points
$content['points'] = $payment;
loadTemplate($template, false, $content);
} elseif (isValidUserId($sender)) {
// Wrong image code! So add points to sender's account
- addPointsDirectly('mailid_payback', $sender, $payment);
+ addPointsThroughReferalSystem('mailid_payback', $sender, $payment);
// Load template
loadTemplate('mailid_points_failed', false, $content);