define('SERVER_URL', "http://www.mxchange.org");
// This current patch level
-define('CURR_SVN_REVISION', "387");
+define('CURR_SVN_REVISION', "388");
// Take a prime number which is long (if you know a longer one please try it out!)
define('_PRIME', 591623);
* add_mode = Add points only to $uid or also refs? (WARNING! Changing "ref" to "direct"
* for default value will cause no referral will get points ever!!!)
*/
-function ADD_POINTS_REFSYSTEM($uid, $points, $send_notify=false, $rid="0", $locked=false, $add_mode="ref")
-{
+function ADD_POINTS_REFSYSTEM($uid, $points, $send_notify=false, $rid="0", $locked=false, $add_mode="ref") {
global $DEPTH, $_CONFIG, $DATA;
+ // Convert mode to lower-case
+ $add_mode = strtolower($add_mode);
+
// Debug message
//DEBUG_LOG(__FUNCTION__.": uid={$uid},points={$points}");