- 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 (getRequestElement('mode')) {
+ case 'pay': // Payout this exchange -> Primus
+ // Is the user id and password set?
+ if (!isPostRequestElementSet(('primera_nickname'))) {
+ // Nothing entered in Primus nickname
+ loadTemplate('admin_settings_saved', false, getMessage('PRIMERA_MEMBER_EMPTY_USERNAME'));
+ } elseif (!isPostRequestElementSet(('primera_password'))) {
+ // Nothing entered in Primera password
+ loadTemplate('admin_settings_saved', false, getMessage('PRIMERA_MEMBER_EMPTY_PASSWORD'));
+ } elseif (!isPostRequestElementSet(('amount'))) {