- if ($expired)
- {
- define('__RALLYE_PRICES', RALLYE_LIST_WINNERS($id));
- define('__RALLYE_TOP_USERS', "<div align=\"center\" class=\"big\">".__RALLYE_EXTRAS."</div>");
- define('__RALLYE_CAN_WIN_THIS', RALLYE_OUR_WINNERS_ARE);
- }
- else
- {
- define('__RALLYE_PRICES', RALLYE_ADD_PRICES($id, "html"));
- define('__RALLYE_TOP_USERS', RALLYE_ADD_TOPUSERS($id, $GLOBALS['userid']));
- define('__RALLYE_CAN_WIN_THIS', RALLYE_YOU_CAN_WIN);
+ // Determine min prices (now in function)
+ $content['min_prices'] = determineReferralRallyeMinimumPrices($content['min_prices']);
+
+ if ($expired === true) {
+ $content['prices'] = addReferralRallyeWinners('guest', $content['id']);
+ $content['top_users'] = '<div align="center" class="big">' . $content['extras'] . '</div>';
+ $content['can_win_this'] = '{--RALLYE_OUR_WINNERS_ARE--}';
+ } else {
+ $content['prices'] = addReferralRallyePrices($content['id'], 'html');
+ $content['top_users'] = addReferralRallyeTopUsers('guest', $content['id'], getMemberId());
+ $content['can_win_this'] = '{--RALLYE_YOU_CAN_WIN--}';