- switch ($_GET['mode']) {
- case "pay": // Payout this exchange -> WDS66
- // Is the user ID and password set?
- if (empty($_POST['primus_nickname'])) {
- // Nothing entered in WDS66 user ID
- LOAD_TEMPLATE("admin_settings_saved", false, PRIMERA_MEMBER_EMPTY_USERNAME);
- OUTPUT_HTML("<br />");
- } elseif (empty($_POST['primera_password'])) {
- // Nothing entered in WDS66 password
- LOAD_TEMPLATE("admin_settings_saved", false, PRIMERA_MEMBER_EMPTY_PASSWORD);
- OUTPUT_HTML("<br />");
- } elseif (empty($_POST['amount'])) {
+ switch (getRequestParameter('mode')) {
+ case 'pay': // Payout this exchange -> Primus
+ // Is the user id and password set?
+ if (!isPostRequestParameterSet('primera_nickname')) {
+ // Nothing entered in Primus nickname
+ displayMessage('{--MEMBER_PRIMERA_EMPTY_USERNAME--}');
+ } elseif (!isPostRequestParameterSet('primera_password')) {
+ // Nothing entered in Primera password
+ displayMessage('{--MEMBER_PRIMERA_EMPTY_PASSWORD--}');
+ } elseif (!isPostRequestParameterSet('amount')) {