} // END - if
// Add points over the ref system directly now
+ initReferalSystem();
addPointsThroughReferalSystem('autopurge_add', $userid, $points);
// Send out mail to user
if ($DATA['points'] > 0) {
// Add points directly to user's account
+ initReferalSystem();
addPointsThroughReferalSystem('rallye_winner:' . $winnerLevel, $userid, $DATA['points']);
} // END - if
updateReferalCounter($userid);
// Write his welcome-points
+ initReferalSystem();
addPointsThroughReferalSystem('register_welcome', $userid, getPointsRegister());
// Write catgories
// Exclude webmaster from doubling...
if ($content['userid'] != getConfig('doubler_userid')) {
// Add points
+ initReferalSystem();
addPointsThroughReferalSystem(sprintf("doubler_%s", strtolower(getConfig('doubler_send_mode'))), $content['userid'], $content['points']);
} // END - if
} // END - if
// Pay back points
+ initReferalSystem();
addPointsThroughReferalSystem('mail_deleted', $content['sender'], $totalPoints);
// Output message
} // END - if
// Now we just need to book that points on the user's account
+ initReferalSystem();
addPointsThroughReferalSystem('coupon_cashed', getMemberId(), $content['points']);
// Subtract points from member account if the admin has selected one
), __FILE__, __LINE__);
// Add points to account *directly* ...
+ initReferalSystem();
addPointsThroughReferalSystem('transfer', bigintval(postRequestParameter('to_userid')), bigintval(postRequestParameter('points')));
// ... and add it to current user's used points
$success = WERNIS_EXECUTE_WITHDRAW(postRequestParameter('wernis_userid'), md5(postRequestParameter('wds66_password')), postRequestParameter('amount'));
if ($success === true) {
// Add it to this amount
+ initReferalSystem();
addPointsThroughReferalSystem('wernis_withdraw', getMemberId(), bigintval(postRequestParameter('amount')));
// Update the user data as well..
// Load our winners...
while ($content = SQL_FETCHARRAY($result_main)) {
// Add points to user's account directly
+ initReferalSystem();
addPointsThroughReferalSystem('monthly_beg', $content['userid'], $content['beg_points']);
// Load email template and email it away
// Make sure zero points are not mailed
if ($content['points'] > 0) {
// Add points to user's account directly
+ initReferalSystem();
addPointsThroughReferalSystem('monthly_bonus', $content['userid'], $content['points']);
// Load email template and email it away
if (isValidUserId($userid)) {
// User does not exists, pay points back
$points = getPaymentPoints($mailData['payment_id']);
+ initReferalSystem();
addPointsThroughReferalSystem('pool_payback', $mailData['sender_userid'], $points);
// Add points together and remove user
loadTemplate($template, false, $content);
} elseif (isValidUserId($sender)) {
// Wrong image code! So add points to sender's account
+ initReferalSystem();
addPointsThroughReferalSystem('mailid_payback', $sender, $payment);
// Add payment points