X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fmember%2Fwhat-rallyes.php;h=4ecc3cca97e98a874dfa3f44dfa226028c1c034e;hb=f6014bce7255a915872f2f463247440c0d58f9a9;hp=3daa41edce39aca87faaf670128c0617ac6224b9;hpb=1ebf518b9552f71ee95de6f4b80e6de3a27716d1;p=mailer.git diff --git a/inc/modules/member/what-rallyes.php b/inc/modules/member/what-rallyes.php index 3daa41edce..4ecc3cca97 100644 --- a/inc/modules/member/what-rallyes.php +++ b/inc/modules/member/what-rallyes.php @@ -1,7 +1,7 @@ = ($content['end_time'] - getConfig('ONE_DAY'))) { + } elseif (time() >= ($content['end_time'] - getOneDay())) { // Rallye will expire in less one day! - $content['extras'] = getMessage('RALLYE_EXPIRE_ONE_DAY'); + $content['extras'] = '{--RALLYE_EXPIRE_ONE_DAY--}'; } else { - // Link to referal links page - $content['extras'] = "{--RALLYE_GET_REFLINK--}"; + // Link to referral links page + $content['extras'] = '{--RALLYE_GET_REFERRAL_LINK--}'; } // Set admin line (currently set to impressum, later to contact form) - // @TODO Reactivate this: $content['admin'] = "".$content['login'].""; + // @TODO Reactivate this: $content['admin'] = '' . $content['login'] . ''; // Handle description... if ((empty($content['descr'])) && (!empty($content['template']))) { @@ -95,28 +95,28 @@ if (SQL_NUMROWS($result) == 1) { } // END - if // Determine min_users/prices - $content['min_users'] = determineReferalRallyeMinimumUsers($content['min_users']); - $content['min_prices'] = determineReferalRallyeMinimumPrices($content['min_prices']); + $content['min_users'] = determineReferralRallyeMinimumUsers($content['min_users']); + $content['min_prices'] = determineReferralRallyeMinimumPrices($content['min_prices']); // Set start and end time - $content['start'] = generateDateTime($content['start_time'], '1'); - $content['end'] = generateDateTime($content['end_time'] , '1'); + $content['start'] = generateDateTime($content['start_time'], 1); + $content['end'] = generateDateTime($content['end_time'] , 1); if ($expired === true) { - $content['prices'] = addReferalRallyeWinners($content['id']); - $content['top_users'] = "
".$content['extras']."
"; - $content['can_win_this'] = getMessage('RALLYE_OUR_WINNERS_ARE'); + $content['prices'] = addReferralRallyeWinners('member', $content['id']); + $content['top_users'] = '
' . $content['extras'] . '
'; + $content['can_win_this'] = '{--RALLYE_OUR_WINNERS_ARE--}'; } else { - $content['prices'] = addReferalRallyePrices($content['id'], 'html'); - $content['top_users'] = addReferalRallyeTopUsers($content['id'], getUserId()); - $content['can_win_this'] = getMessage('RALLYE_YOU_CAN_WIN'); + $content['prices'] = addReferralRallyePrices($content['id'], 'html'); + $content['top_users'] = addReferralRallyeTopUsers('member', $content['id'], getMemberId()); + $content['can_win_this'] = '{--RALLYE_YOU_CAN_WIN--}'; } // And load final template - loadTemplate('guest_rallye_show', false, $content); + loadTemplate('member_show_rallye', false, $content); } else { // No rallye found so far - loadTemplate('guest_no_rallyes'); + loadTemplate('member_rallye_404'); } // Free result