// Referal points found so add them and set line(s) to completed='Y'
$points += $ref;
$result_ref = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_doubler SET completed='Y' WHERE refid=%s AND completed='N' AND is_ref='Y'",
- array(bigintval($uid)), __FILE__, __LINE__);
+ array(bigintval($uid)), __FILE__, __LINE__);
} else {
// No referal points found
$ref = 0;
// 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"
$result = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_doubler SET completed='Y' WHERE id=%s LIMIT 1",
- array(bigintval($id)), __FILE__, __LINE__);
+ array(bigintval($id)), __FILE__, __LINE__);
$OK = false;
// Check for jackpot inclusion in doubling process
// 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;