X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fmember%2Fwhat-primera.php;h=d044bbd7e29d8f78b40e03d9e8aa476124e329d0;hb=8202991f32bfb2056e94a11746c0b5308fe4a273;hp=13a2a62c4a3adb0167b8e237ad0ac3f671c4faef;hpb=4a0e224c4e1754dbc2151fd707a926521dbafa7f;p=mailer.git diff --git a/inc/modules/member/what-primera.php b/inc/modules/member/what-primera.php index 13a2a62c4a..d044bbd7e2 100644 --- a/inc/modules/member/what-primera.php +++ b/inc/modules/member/what-primera.php @@ -17,7 +17,7 @@ * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * * Copyright (c) 2009 - 2011 by Mailer Developer Team * - * For more information visit: http://www.mxchange.org * + * 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 * @@ -64,11 +64,11 @@ $content = array(); $points = false; // Is the mode set (payout only) -if (!isGetRequestElementSet('mode')) { +if (!isGetRequestElementSet('do')) { // Is there an id? - if ((!empty($content['primera_nickname'])) && (!isGetRequestElementSet('mode'))) { - // Then use an other "mode" - setGetRequestElement('mode', 'list'); + if ((!empty($content['primera_nickname'])) && (!isGetRequestElementSet('do'))) { + // Then list all entries + setGetRequestElement('do', 'list'); // And load all rows! $result = SQL_QUERY_ESC("SELECT `id`,`primera_account`,`primera_amount`,`primera_timestamp`,`primera_type` FROM `{?_MYSQL_PREFIX?}_user_primera` WHERE `userid`=%s ORDER BY `primera_timestamp` DESC", @@ -88,11 +88,11 @@ if (!isGetRequestElementSet('mode')) { SQL_FREERESULT($result); } else { // Mode pay - setGetRequestElement('mode', 'pay'); + setGetRequestElement('do', 'pay'); } } // END - if -if (getRequestElement('mode') == 'pay') { +if (getRequestElement('do') == 'pay') { // Get total points and check if the user can request a payout $points = getTotalPoints(getMemberId()); @@ -114,14 +114,14 @@ if (getRequestElement('mode') == 'pay') { $content['points'] = $points; } else { // Invalid mode! - displayMessage('{%message,MEMBER_PRIMERA_MODE_INVALID=' . getRequestElement('mode') . '%}'); + displayMessage('{%message,MEMBER_PRIMERA_MODE_INVALID=' . getRequestElement('do') . '%}'); return; } // Is the formular sent? -if ((isFormSent()) && (isGetRequestElementSet('mode'))) { +if ((isFormSent()) && (isGetRequestElementSet('do'))) { // Check input data depending on the mode and execute the requested mode - switch (getRequestElement('mode')) { + switch (getRequestElement('do')) { case 'pay': // Payout this exchange -> Primus // Is the user id and password set? if (!isPostRequestElementSet('primera_nickname')) { @@ -149,7 +149,7 @@ if ((isFormSent()) && (isGetRequestElementSet('mode'))) { // Default is locked! $locked = true; - // Shall I 'pay' the referal points imidiately? + // Shall I 'pay' the referral points imidiately? if (getConfig('ref_payout') == '0') { // Yes, 'pay' it now $locked = false; @@ -176,14 +176,14 @@ if ((isFormSent()) && (isGetRequestElementSet('mode'))) { break; default: // Invalid mode! - logDebugMessage(__FILE__, __LINE__, sprintf("Invalid mode %s detected.", getRequestElement('mode'))); - displayMessage('{%message,MEMBER_PRIMERA_MODE_INVALID=' . getRequestElement('mode') . '%}'); + logDebugMessage(__FILE__, __LINE__, sprintf("Invalid mode %s detected.", getRequestElement('do'))); + displayMessage('{%message,MEMBER_PRIMERA_MODE_INVALID=' . getRequestElement('do') . '%}'); return; } } // END - if // Prepare mode for template name -$mode = sprintf("member_primera_mode_%s", getRequestElement('mode')); +$mode = sprintf("member_primera_mode_%s", getRequestElement('do')); // Load the template loadTemplate($mode, false, $content);