]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_surfbar.php
Several more constants rewritten to getConfig()
[mailer.git] / inc / modules / admin / what-config_surfbar.php
index f1b04536c285976eb279e1439ef43f8c09b44ad4..84b4e89fe0d39a3eae182b9d431b19b87408d247 100644 (file)
@@ -46,7 +46,7 @@ if ((!defined('__SECURITY')) || (!IS_ADMIN())) {
 ADD_DESCR('admin', __FILE__);
 
 // Was the form submitted?
-if (IS_FORM_SENT()) {
+if (isFormSent()) {
        // Replace german decimal comma with computer decimal dot
        if (REQUEST_ISSET_POST(('surfbar_static_reward')))   REQUEST_SET_POST('surfbar_static_reward'  , convertCommaToDot(REQUEST_POST('surfbar_static_reward')));
        if (REQUEST_ISSET_POST(('surfbar_static_costs')))    REQUEST_SET_POST('surfbar_static_costs'   , convertCommaToDot(REQUEST_POST('surfbar_static_costs')));
@@ -127,6 +127,17 @@ if (IS_FORM_SENT()) {
                define('__CONFIG_SURFBAR_MIGRATE_ORDER_N', ' checked="checked"');
        }
 
+       // Prepare order migration
+       if (getConfig('surfbar_guest_login_form') == 'Y') {
+               // Yes selected
+               define('__CONFIG_SURFBAR_GUEST_LOGIN_FORM_Y', ' checked="checked"');
+               define('__CONFIG_SURFBAR_GUEST_LOGIN_FORM_N', '');
+       } else {
+               // No selected
+               define('__CONFIG_SURFBAR_GUEST_LOGIN_FORM_Y', '');
+               define('__CONFIG_SURFBAR_GUEST_LOGIN_FORM_N', ' checked="checked"');
+       }
+
        // Pause URL mode
        if (getConfig('surfbar_pause_mode') == 'INTERNAL') {
                // Internal pause page