0) && (getConfig('allow_direct_pay') != 'Y')) $locked = true; // Is begging rallye active? if (getConfig('beg_rallye') == 'Y') { // Add points to rallye account SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_user_data` SET `beg_points`=`beg_points`+%s WHERE `userid`=%s LIMIT 1", array($points, $userid), __FUNCTION__, __LINE__); } else { // Add points to account // @TODO Try to rewrite the following unset() unset($GLOBALS['ref_level']); addPointsThroughReferalSystem('beg', $userid, $points, false, 0, $locked, strtolower(getConfig('beg_mode'))); } // Subtract begged points from member account if the admin has selected one if (getConfig('beg_userid') > 0) { // Subtract from this account subtractPoints('beg_payout', getConfig('beg_userid'), $points); } // END - if } // [EOF] ?>