define('SERVER_URL', "http://www.mxchange.org");
// This current patch level
-define('CURR_SVN_REVISION', "521");
+define('CURR_SVN_REVISION', "522");
// Take a prime number which is long (if you know a longer one please try it out!)
define('_PRIME', 591623);
// Load our winners...
while ($content = SQL_FETCHARRAY($result_main)) {
// Add points to user's account directly
- ADD_POINTS_REFSYSTEM($content['uid'], $content['points'], false, "0", false, "direct");
+ ADD_POINTS_REFSYSTEM($content['userid'], $content['points'], false, "0", false, "direct");
- // Translate gender
+ // Translate gender/points
$content['gender'] = TRANSLATE_GENDER($content['gender']);
+ $content['points'] = TRANSLATE_COMMA($content['points']);
// Load email template and email it away
- $msg = LOAD_EMAIL_TEMPLATE("member_beg", $content, bigintval($content['uid']));
+ $msg = LOAD_EMAIL_TEMPLATE("member_beg", $content, bigintval($content['userid']));
SEND_EMAIL($content['email'], BEG_MONTHLY_RALLYE, $msg);
} // END - while
// Add points to user's account directly
ADD_POINTS_REFSYSTEM($content['uid'], $content['points'], false, "0", false, "direct");
- // Translate gender
+ // Translate gender/points
$content['gender'] = TRANSLATE_GENDER($content['gender']);
+ $content['points'] = TRANSLATE_COMMA($content['points']);
// Load email template and email it away
$msg = LOAD_EMAIL_TEMPLATE("member_bonus", $content['points'], bigintval($content['uid']));