}
// Exclude webmaster from doubling...
- if ($content['userid'] != getConfig('doubler_userid')) {
+ if ($content['userid'] != getDoublerUserid()) {
// Add points
initReferralSystem();
- addPointsThroughReferralSystem(sprintf("doubler_%s", strtolower(getConfig('doubler_send_mode'))), $content['userid'], $content['points']);
+ addPointsThroughReferralSystem(sprintf("doubler_%s", strtolower(getDoublerSendMode())), $content['userid'], $content['points']);
} // END - if
// Set entry as "payed"
} // END - if
// Exclude also webmaster's id in taking points from webmaster's account
- if (($userPoints > 0) && ($userPoints >= $content['points']) && ($okay === FALSE) && (getConfig('doubler_userid') > 0) && ($content['userid'] != getConfig('doubler_userid'))) {
+ if (($userPoints > 0) && ($userPoints >= $content['points']) && ($okay === FALSE) && (getDoublerUserid() > 0) && ($content['userid'] != getDoublerUserid())) {
// Subtract points
- $okay = subtractPoints('doubler_payout', getConfig('doubler_userid'), $content['points']);
+ $okay = subtractPoints('doubler_payout', getDoublerUserid(), $content['points']);
} // END - if
// Update doubler's account only when others are not updated