X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fmember%2Fwhat-rallyes.php;h=4ecc3cca97e98a874dfa3f44dfa226028c1c034e;hb=f6014bce7255a915872f2f463247440c0d58f9a9;hp=e5c70a987fa5759af54f0bb043313e62d4845e02;hpb=06d179ae45f3f049003e6fe213249842b2a630fe;p=mailer.git diff --git a/inc/modules/member/what-rallyes.php b/inc/modules/member/what-rallyes.php index e5c70a987f..4ecc3cca97 100644 --- a/inc/modules/member/what-rallyes.php +++ b/inc/modules/member/what-rallyes.php @@ -14,11 +14,10 @@ * $Date:: $ * * $Tag:: 0.2.1-FINAL $ * * $Author:: $ * - * Needs to be in all Files and every File needs "svn propset * - * svn:keywords Date Revision" (autoprobset!) at least!!!!!! * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * For more information visit: http://www.mxchange.org * + * Copyright (c) 2009 - 2011 by Mailer Developer Team * + * For more information visit: http://mxchange.org * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * @@ -44,10 +43,10 @@ if (!defined('__SECURITY')) { } // Add description as navigation point -addMenuDescription('member', __FILE__); +addYouAreHereLink('member', __FILE__); if ((!isExtensionActive('rallye')) && (!isAdmin())) { - loadTemplate('admin_settings_saved', false, generateExtensionInactiveNotInstalledMessage('rallye')); + displayMessage('{%pipe,generateExtensionInactiveNotInstalledMessage=rallye%}'); return; } // END - if @@ -64,7 +63,7 @@ INNER JOIN ON d.admin_id=a.id WHERE - d.notified='Y'".$ADD." + d.notified='Y'" . $ADD . " ORDER BY d.end_time ASC LIMIT 1", __FILE__, __LINE__); @@ -76,18 +75,18 @@ if (SQL_NUMROWS($result) == 1) { $expired = false; if ($content['end_time'] < time()) { // Rallye is expired - $content['extras'] = getMessage('RALLYE_HAS_EXPIRED'); + $content['extras'] = '{--RALLYE_HAS_EXPIRED--}'; $expired = true; - } elseif (time() >= ($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']))) { @@ -96,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); if ($expired === true) { - $content['prices'] = addReferalRallyeWinners($content['id']); + $content['prices'] = addReferralRallyeWinners('member', $content['id']); $content['top_users'] = '