* $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 *
+ * Copyright (c) 2009 - 2011 by Mailer Developer Team *
* For more information visit: http://www.mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
}
// Add description as navigation point
-addMenuDescription('member', __FILE__);
+addYouAreHereLink('member', __FILE__);
if ((!isExtensionActive('primera')) && (!isAdmin())) {
// Extension 'primera' is not activated
// Is the mode set (payout only)
if (!isGetRequestParameterSet('mode')) {
- // Get referal id
- $content['refid'] = getConfig(('primera_refid'));
-
// Is there an id?
if ((!empty($content['primera_nickname'])) && (!isGetRequestParameterSet('mode'))) {
// Then use an other "mode"
if (getRequestParameter('mode') == 'pay') {
// Get total points and check if the user can request a payout
- $points = countSumTotalData(getMemberId(), 'user_points', 'points') - countSumTotalData(getMemberId(), 'user_data', 'used_points');
+ $points = getTotalPoints(getMemberId());
// No dots here...
$points = explode('.', $points);
// No, then abort here
loadTemplate('admin_settings_saved', false, '{--MEMBER_PRIMERA_MIN_PAYOUT_PAYOUT--}');
return;
- }
+ } // END - if
// Add points to content array
$content['points'] = $points;
switch (getRequestParameter('mode')) {
case 'pay': // Payout this exchange -> Primus
// Is the user id and password set?
- if (!isPostRequestParameterSet(('primera_nickname'))) {
+ if (!isPostRequestParameterSet('primera_nickname')) {
// Nothing entered in Primus nickname
loadTemplate('admin_settings_saved', false, '{--MEMBER_PRIMERA_EMPTY_USERNAME--}');
- } elseif (!isPostRequestParameterSet(('primera_password'))) {
+ } elseif (!isPostRequestParameterSet('primera_password')) {
// Nothing entered in Primera password
loadTemplate('admin_settings_saved', false, '{--MEMBER_PRIMERA_EMPTY_PASSWORD--}');
- } elseif (!isPostRequestParameterSet(('amount'))) {
+ } elseif (!isPostRequestParameterSet('amount')) {
// Nothing entered in amount
loadTemplate('admin_settings_saved', false, '{--MEMBER_PRIMERA_EMPTY_AMOUNT--}');
} elseif (postRequestParameter('amount') != bigintval(postRequestParameter('amount'))) {