X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fmember%2Fwhat-doubler.php;h=c6e61825a6e0def63fbe174646a4506f1077b6f0;hb=4b2090a4cedf39aafa708025c493685fab1036b5;hp=2d99333fbaba97efc439e8301683e1425052c377;hpb=1bf7c189fda17ce6c702f600c0eb084b681a307b;p=mailer.git diff --git a/inc/modules/member/what-doubler.php b/inc/modules/member/what-doubler.php index 2d99333fba..c6e61825a6 100644 --- a/inc/modules/member/what-doubler.php +++ b/inc/modules/member/what-doubler.php @@ -18,6 +18,7 @@ * 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 * * * * This program is free software; you can redistribute it and/or modify * @@ -51,43 +52,24 @@ if ((!isExtensionActive('doubler')) && (!isAdmin())) { return; } // END - if -// Percent values etc. -// @TODO The '*100' is in the way to get moved into the template -$content['charge'] = translateComma(getConfig('doubler_charge') * 100); -$content['ref'] = translateComma(getConfig('doubler_ref') * 100); - -// Default refid is the userid -$content['userid'] = getMemberId(); +// Init nickname +$content['nickname'] = ''; // Transfer referal id if (isExtensionActive('nickname')) { // Load nickname from DB - $nick = getNickname(getMemberId()); - - if (!empty($nick)) { - // Set nickname - $content['userid'] = $nick; - } // END - if + $content['nickname'] = getNickname(getMemberId()); } // END - if // Which mail-send-mode did the admin setup? -$content['payout_time'] = getMessage('DOUBLER_PAYOUT_TIME_' . getConfig('doubler_send_mode')); +$content['payout_time'] = '{--DOUBLER_PAYOUT_TIME_' . getConfig('doubler_send_mode') . '--}'; // Generate table with already payed out doubles $content['payout_history'] = generateDoublerTable(getMemberId(), 'Y', 'N', 'DESC'); -// Generate table with next-to-run payouts -$content['next_table'] = generateDoublerTable(getMemberId()); - // Generate table with refferal payouts $content['payout_ref'] = generateDoublerTable(getMemberId(), 'N', 'Y', 'DESC'); -// Generate timemark -$content['timeout_mark'] = createFancyTime(getConfig('doubler_timeout')); - -// Points left to double -$content['left'] = translateComma(DOUBLER_GET_TOTAL_POINTS_LEFT()); - // Load template loadTemplate('member_doubler', false, $content);