X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-config_refid.php;h=466e5737fd464b1ec0a0e4095c8e00f3bef6f0a9;hb=4f7df133f736da124e6f7bd02008b9093f736451;hp=9b4a3d57a7895339297b506a8d7390dd57a53aaf;hpb=c8d76610eb94093d4eed4fcd8a6cb72e74c8f6d8;p=mailer.git diff --git a/inc/modules/admin/what-config_refid.php b/inc/modules/admin/what-config_refid.php index 9b4a3d57a7..466e5737fd 100644 --- a/inc/modules/admin/what-config_refid.php +++ b/inc/modules/admin/what-config_refid.php @@ -6,9 +6,9 @@ * -------------------------------------------------------------------- * * 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:: $ * @@ -16,8 +16,8 @@ * $Author:: $ * * -------------------------------------------------------------------- * * 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 * @@ -41,14 +41,14 @@ if ((!defined('__SECURITY')) || (!isAdmin())) { } // 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['form_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) { @@ -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]