- }
- break;
-
- case "UID": // ... userid's account
- // Check his amount first
- $TOTAL = GET_TOTAL_DATA($_CONFIG['bonus_uid'], "user_points", "points") - GET_TOTAL_DATA($_CONFIG['bonus_uid'], "user_data", "used_points");
- if ($TOTAL >= $points)
- {
- // Subtract points from userid's account
- SUB_POINTS($_CONFIG['bonus_uid'], $points);
- }
- else
- {
- // Try to subtract from jackpot
- $dummy = SUB_JACKPOT($points);
- }
- break;
- }