<?php
/************************************************************************
- * MXChange v0.2.1 Start: 02/17/2005 *
- * ================ Last change: 02/17/2005 *
+ * Mailer v0.2.1-FINAL Start: 02/17/2005 *
+ * =================== Last change: 02/17/2005 *
* *
* -------------------------------------------------------------------- *
* File : what-doubler.php *
* 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 *
return;
} // END - if
-// Percent values etc.
-$content['charge'] = translateComma(getConfig('doubler_charge') * 100);
-$content['ref'] = translateComma(getConfig('doubler_ref') * 100);
-$content['total'] = translateComma(getConfig('doubler_points'));
-$content['min'] = translateComma(getConfig('doubler_min'));
-$content['max'] = translateComma(getConfig('doubler_max'));
+// Init nickname
+$content['nickname'] = '';
-// Default refid is the userid
-$content['userid'] = getUserId();
-
-// Transfer referal ID
+// Transfer referal id
if (isExtensionActive('nickname')) {
// Load nickname from DB
- $nick = getNickname(getUserId());
-
- 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'));
// Generate table with already payed out doubles
-$content['payout_history'] = generateDoublerTable(getUserId(), 'Y', 'N', 'DESC');
-
-// Generate table with next-to-run payouts
-$content['next_table'] = generateDoublerTable(getUserId());
+$content['payout_history'] = generateDoublerTable(getMemberId(), 'Y', 'N', 'DESC');
// Generate table with refferal payouts
-$content['payout_ref'] = generateDoublerTable(getUserId(), 'N', 'Y', 'DESC');
-
-// Generate timemark
-$content['timeout_mark'] = createFancyTime(getConfig('doubler_timeout'));
-
-// Points left to double
-$content['left'] = translateComma(DOUBLER_GET_TOTAL_POINTS_LEFT());
+$content['payout_ref'] = generateDoublerTable(getMemberId(), 'N', 'Y', 'DESC');
// Load template
loadTemplate('member_doubler', false, $content);