SQL_QUERY_ESC("UPDATE `{!_MYSQL_PREFIX!}_doubler` SET completed='Y' WHERE id=%s LIMIT 1",
array(bigintval($id)), __FILE__, __LINE__);
- $OK = false;
+ $okay = false;
// Check for jackpot inclusion in doubling process
if (($jackpot > 0) && ($jackpot >= $points) && (getConfig('doubler_jackpot') == "Y")) {
// Subtract points from jackpot
$jackpot -= $points;
// Okay, done!
- $OK = true;
+ $okay = true;
} // END - if
// Exclude also webmaster's ID in taking points from webmaster's account
- if (($user > 0) && ($user >= $points) && (!$OK) && (getConfig('doubler_uid') > 0) && ($uid != getConfig('doubler_uid'))) {
+ if (($user > 0) && ($user >= $points) && (!$okay) && (getConfig('doubler_uid') > 0) && ($uid != getConfig('doubler_uid'))) {
// Add points to used points
SUB_POINTS("doubler_payout", getConfig('doubler_uid'), $points);
// Okay, done!
- $OK = true;
+ $okay = true;
} // END - if
// Update doubler's account only when others are not updated
- if (!$OK) {
+ if (!$okay) {
// Add points to used doubler points
UPDATE_CONFIG("doubler_used", $points, "+");
} // END - if
// Load mail template and send mail away...
$msg = LOAD_EMAIL_TEMPLATE("member_doubler", $content, $uid);
- SEND_EMAIL($uid, DOUBLER_MEMBER_SUBJECT, $msg);
+ SEND_EMAIL($uid, getMessage('DOUBLER_MEMBER_SUBJECT'), $msg);
} // END - if
} // END - while
} // END - if