// Exclude webmaster from doubling...
if ($uid != $_CONFIG['doubler_uid']) {
// Add points
- ADD_POINTS_REFSYSTEM($uid, $points, false, "0", false, "direct");
+ ADD_POINTS_REFSYSTEM(sprintf("doubler_%s", strtolower($_CONFIG['doubler_send_mode'])), $uid, $points, false, "0", false, "direct");
} // END - if
// Set entry as "payed"
// Exclude also webmaster's ID in taking points from webmaster's account
if (($user > 0) && ($user >= $points) && (!$OK) && ($_CONFIG['doubler_uid'] > 0) && ($uid != $_CONFIG['doubler_uid'])) {
// Add points to used points
- SUB_POINTS($_CONFIG['doubler_uid'], $points);
+ SUB_POINTS("doubler_payout", $_CONFIG['doubler_uid'], $points);
// Okay, done!
$OK = true;