]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_refid.php
Filters for configurable userid exclusion added:
[mailer.git] / inc / modules / admin / what-config_refid.php
index 128275142c4c18925d260eb3b593967c2e1da483..466e5737fd464b1ec0a0e4095c8e00f3bef6f0a9 100644 (file)
@@ -6,9 +6,9 @@
  * -------------------------------------------------------------------- *
  * File              : what-config_refid.php                            *
  * -------------------------------------------------------------------- *
- * Short description : Setup default referal id                         *
+ * Short description : Setup default referral id                        *
  * -------------------------------------------------------------------- *
- * Kurzbeschreibung  : Standard Referal-Id einstellen                   *
+ * Kurzbeschreibung  : Standard Referral-Id einstellen                  *
  * -------------------------------------------------------------------- *
  * $Revision::                                                        $ *
  * $Date::                                                            $ *
@@ -16,7 +16,7 @@
  * $Author::                                                          $ *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2011 by Mailer Developer Team                   *
+ * Copyright (c) 2009 - 2012 by Mailer Developer Team                   *
  * For more information visit: http://mxchange.org                      *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -43,12 +43,12 @@ if ((!defined('__SECURITY')) || (!isAdmin())) {
 // Add description as navigation point
 addYouAreHereLink('admin', __FILE__);
 
-if (isFormSent()) {
+if (isFormSent('save_config')) {
        // Save data
        adminSaveSettingsFromPostData();
 } else {
        // Prepare member selection
-       $content['def_refid'] = addMemberSelectionBox(getDefRefid(), false, true, true, 'def_refid');
+       $content['def_refid'] = addMemberSelectionBox(getDefRefid(), FALSE, TRUE, TRUE, 'def_refid');
 
        // Prepare contants for the template
        foreach (array('refid_target_index','refid_target_register','select_user_zero_refid_y','select_user_zero_refid_n') as $entry) {
@@ -56,12 +56,10 @@ if (isFormSent()) {
        } // END - foreach
 
        // Set all selections
-       foreach (array('refid_target', 'select_user_zero_refid') as $entry) {
-               $content[$entry . '_' . strtolower(getConfig($entry))] = ' selected="selected"';
-       } // END - foreach
+       $content = merge_array($content, getSelectedConfig(array('refid_target', 'select_user_zero_refid')));
 
        // Load template
-       loadTemplate('admin_config_refid', false, $content);
+       loadTemplate('admin_config_refid', FALSE, $content);
 }
 
 // [EOF]