- // Prepare payment model for template
- if (getConfig('surfbar_pay_model') == "STATIC") {
- // Static model
- define('__CONFIG_SURFBAR_PAY_MODEL_STATIC' , ' chkecked="checked"');
- define('__CONFIG_SURFBAR_PAY_MODEL_DYNAMIC', '');
- } else {
- // Dynamic model
- define('__CONFIG_SURFBAR_PAY_MODEL_STATIC' , '');
- define('__CONFIG_SURFBAR_PAY_MODEL_DYNAMIC', ' chkecked="checked"');
- }
-
- // Prepare auto-sart
- if (getConfig('surfbar_autostart') == 'Y') {
- // Yes selected
- define('__CONFIG_SURFBAR_AUTOSTART_Y', ' chkecked="checked"');
- define('__CONFIG_SURFBAR_AUTOSTART_N', '');
- } else {
- // No selected
- define('__CONFIG_SURFBAR_AUTOSTART_Y', '');
- define('__CONFIG_SURFBAR_AUTOSTART_N', ' chkecked="checked"');
- }
-
- // Prepare notify limits
- if (getConfig('surfbar_notify_limits') == 'Y') {
- // Yes selected
- define('__CONFIG_SURFBAR_NOTIFY_LIMITS_Y', ' chkecked="checked"');
- define('__CONFIG_SURFBAR_NOTIFY_LIMITS_N', '');
- } else {
- // No selected
- define('__CONFIG_SURFBAR_NOTIFY_LIMITS_Y', '');
- define('__CONFIG_SURFBAR_NOTIFY_LIMITS_N', ' chkecked="checked"');
- }
-
- // Prepare notify admin about unlocked emails
- if (getConfig('surfbar_notify_admin_unlock') == 'Y') {
- // Yes selected
- define('__CONFIG_SURFBAR_NOTIFY_ADMIN_UNLOCK_Y', ' chkecked="checked"');
- define('__CONFIG_SURFBAR_NOTIFY_ADMIN_UNLOCK_N', '');
- } else {
- // No selected
- define('__CONFIG_SURFBAR_NOTIFY_ADMIN_UNLOCK_Y', '');
- define('__CONFIG_SURFBAR_NOTIFY_ADMIN_UNLOCK_N', ' chkecked="checked"');
- }
-
- // Prepare order migration
- if (getConfig('surfbar_migrate_order') == 'Y') {
- // Yes selected
- define('__CONFIG_SURFBAR_MIGRATE_ORDER_Y', ' chkecked="checked"');
- define('__CONFIG_SURFBAR_MIGRATE_ORDER_N', '');
- } else {
- // No selected
- define('__CONFIG_SURFBAR_MIGRATE_ORDER_Y', '');
- define('__CONFIG_SURFBAR_MIGRATE_ORDER_N', ' chkecked="checked"');
- }
-
- // Pause URL mode
- if (getConfig('surfbar_pause_mode') == "INTERNAL") {
- // Internal pause page
- define('__CONFIG_SURFBAR_PAUSE_MODE_INTERNAL', ' chkecked="checked"');
- define('__CONFIG_SURFBAR_PAUSE_MODE_EXTERNAL', '');
- } else {
- // External pause page (if not empty)
- define('__CONFIG_SURFBAR_PAUSE_MODE_INTERNAL', '');
- define('__CONFIG_SURFBAR_PAUSE_MODE_EXTERNAL', ' chkecked="checked"');
- }