X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Fmodules%2Fmember%2Fwhat-rallyes.php;h=53c9d301fbd3e641431a589b4ccc00428db4de1f;hb=20741b93fd58620af677a7f1039ffd16ea6ec689;hp=f246691a83547ed0213c87b292c59340f3b2b9ba;hpb=a443166d3f417109c905dc399ee7149ca4de6319;p=mailer.git diff --git a/inc/modules/member/what-rallyes.php b/inc/modules/member/what-rallyes.php index f246691a83..53c9d301fb 100644 --- a/inc/modules/member/what-rallyes.php +++ b/inc/modules/member/what-rallyes.php @@ -14,12 +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 * - * Copyright (c) 2009, 2010 by Mailer Developer Team * - * 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 * @@ -45,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 @@ -79,7 +77,7 @@ if (SQL_NUMROWS($result) == 1) { // Rallye is 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'] = '{--RALLYE_EXPIRE_ONE_DAY--}'; } else { @@ -105,20 +103,20 @@ if (SQL_NUMROWS($result) == 1) { $content['end'] = generateDateTime($content['end_time'] , 1); if ($expired === true) { - $content['prices'] = addReferalRallyeWinners($content['id']); + $content['prices'] = addReferalRallyeWinners('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'], getMemberId()); + $content['top_users'] = addReferalRallyeTopUsers('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