- unset($DEPTH);
- ADD_POINTS_REFSYSTEM("beg", $uid, $points, false, "0", $locked, strtolower(getConfig('beg_mode')));
+ // @TODO Try to rewrite the following unset()
+ unset($GLOBALS['ref_level']);
+ addPointsThroughReferalSystem('beg', $userid, $points, false, 0, $locked, strtolower(getConfig('beg_mode')));