// Is there an id?
if ((!empty($content['primera_nickname'])) && (!isGetRequestParameterSet('mode'))) {
// Then use an other "mode"
// 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
if (getRequestParameter('mode') == 'pay') {
// Get total points and check if the user can request a payout
// No dots here...
$points = explode('.', $points);
$points = bigintval($points[0]);
// Remove the registration fee
// No dots here...
$points = explode('.', $points);
$points = bigintval($points[0]);
// Remove the registration fee
// Is this enougth for a payout?
if ($points < getConfig('primera_min_payout')) {
// No, then abort here
loadTemplate('admin_settings_saved', false, '{--MEMBER_PRIMERA_MIN_PAYOUT_PAYOUT--}');
return;
// Is this enougth for a payout?
if ($points < getConfig('primera_min_payout')) {
// No, then abort here
loadTemplate('admin_settings_saved', false, '{--MEMBER_PRIMERA_MIN_PAYOUT_PAYOUT--}');
return;
switch (getRequestParameter('mode')) {
case 'pay': // Payout this exchange -> Primus
// Is the user id and password set?
switch (getRequestParameter('mode')) {
case 'pay': // Payout this exchange -> Primus
// Is the user id and password set?
// Nothing entered in Primus nickname
loadTemplate('admin_settings_saved', false, '{--MEMBER_PRIMERA_EMPTY_USERNAME--}');
// Nothing entered in Primus nickname
loadTemplate('admin_settings_saved', false, '{--MEMBER_PRIMERA_EMPTY_USERNAME--}');
// Nothing entered in Primera password
loadTemplate('admin_settings_saved', false, '{--MEMBER_PRIMERA_EMPTY_PASSWORD--}');
// Nothing entered in Primera password
loadTemplate('admin_settings_saved', false, '{--MEMBER_PRIMERA_EMPTY_PASSWORD--}');
// Nothing entered in amount
loadTemplate('admin_settings_saved', false, '{--MEMBER_PRIMERA_EMPTY_AMOUNT--}');
} elseif (postRequestParameter('amount') != bigintval(postRequestParameter('amount'))) {
// Nothing entered in amount
loadTemplate('admin_settings_saved', false, '{--MEMBER_PRIMERA_EMPTY_AMOUNT--}');
} elseif (postRequestParameter('amount') != bigintval(postRequestParameter('amount'))) {