- case "JACKPOT": // ... jackpot
- if ((SUB_JACKPOT($points) == -1) && ($_CONFIG['bonus_uid'] > 0))
- {
- // Check points 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)
- {
+ case 'JACKPOT': // ... jackpot
+ if ((SUB_JACKPOT($points) == -1) && (getConfig('bonus_uid') > 0)) {
+ // Check points amount first...
+ $total = GET_TOTAL_DATA(getConfig('bonus_uid'), 'user_points', 'points') - GET_TOTAL_DATA(getConfig('bonus_uid'), 'user_data', 'used_points');
+ if ($total >= $points) {
+ // Subtract points from userid's account
+ SUB_POINTS('bonus_payout_jackpot', getConfig('bonus_uid'), $points);
+ } // END - if
+ } // END - if
+ break;
+
+ case 'UID': // ... userid's account
+ // Check his amount first
+ $total = GET_TOTAL_DATA(getConfig('bonus_uid'), 'user_points', 'points') - GET_TOTAL_DATA(getConfig('bonus_uid'), 'user_data', 'used_points');
+ if ($total >= $points) {