]> 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 3dd6b506526ebe6418e809ba99173e2f3b8bf9d0..466e5737fd464b1ec0a0e4095c8e00f3bef6f0a9 100644 (file)
@@ -6,20 +6,18 @@
  * -------------------------------------------------------------------- *
  * File              : what-config_refid.php                            *
  * -------------------------------------------------------------------- *
- * Short description : Setup default referal id                         *
+ * Short description : Setup default referral id                        *
  * -------------------------------------------------------------------- *
- * Kurzbeschreibung  : Standart Referal-Id einstellen                   *
+ * Kurzbeschreibung  : Standard Referral-Id einstellen                  *
  * -------------------------------------------------------------------- *
  * $Revision::                                                        $ *
  * $Date::                                                            $ *
  * $Tag:: 0.2.1-FINAL                                                 $ *
  * $Author::                                                          $ *
- * Needs to be in all Files and every File needs "svn propset           *
- * svn:keywords Date Revision" (autoprobset!) at least!!!!!!            *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009, 2010 by Mailer Developer Team                    *
- * For more information visit: http://www.mxchange.org                  *
+ * 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 *
  * it under the terms of the GNU General Public License as published by *
 // Some security stuff...
 if ((!defined('__SECURITY')) || (!isAdmin())) {
        die();
-}
+} // END - if
 
 // Add description as navigation point
-addMenuDescription('admin', __FILE__);
+addYouAreHereLink('admin', __FILE__);
 
-if (isFormSent()) {
+if (isFormSent('save_config')) {
        // Save data
        adminSaveSettingsFromPostData();
 } else {
        // Prepare member selection
-       $content['member_selection'] = addMemberSelectionBox(getConfig('def_refid'), 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) {
@@ -58,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]