X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-config_removeip.php;h=c521ba724f855703565f156dd988f85cb2edeae7;hb=e5527fd38a6585c8466dc28d013f12d21eb7c07a;hp=faf1a07a775a0b9bc5dbe15f03f9f5bda5b0f912;hpb=c3b4eaf29946349ff058691db2dcb615a5379bb2;p=mailer.git diff --git a/inc/modules/admin/what-config_removeip.php b/inc/modules/admin/what-config_removeip.php index faf1a07a77..c521ba724f 100644 --- a/inc/modules/admin/what-config_removeip.php +++ b/inc/modules/admin/what-config_removeip.php @@ -16,8 +16,8 @@ * $Author:: $ * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * Copyright (c) 2009 - 2011 by Mailer Developer Team * - * For more information visit: http://www.mxchange.org * + * Copyright (c) 2009 - 2013 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 * @@ -43,29 +43,20 @@ if ((!defined('__SECURITY')) || (!isAdmin())) { // Add description as navigation point addYouAreHereLink('admin', __FILE__); -if (isFormSent()) { +if (isFormSent('save_config')) { // Save configuration adminSaveSettingsFromPostData(); } else { - // Prepare data - foreach (array('removeip_anon_ip','removeip_anon_host','removeip_anon_ua','removeip_anon_ref','removeip_admin_show','removeip_guest_show','removeip_member_show','removeip_sponsor_show') as $entry) { - $content[$entry . '_y'] = ''; - $content[$entry . '_n'] = ''; - $content[$entry . '_' . strtolower(getConfig($entry))] = ' selected="selected"'; - } // END - if - // Prepare more entries foreach (array('anonymous_ip_local','anonymous_ip_zero','anonymous_ip_random') as $entry) { - $content[$entry] = ''; + $content[$entry] = ''; } // END - foreach // Set default selections - foreach (array('anonymous_ip') as $entry) { - $content[$entry . '_' . strtolower(getConfig($entry))] = ' selected="selected"'; - } // END - foreach + $content = merge_array($content, getSelectedConfig(array('anonymous_ip'))); // Load template - loadTemplate('admin_config_removeip', false, $content); + loadTemplate('admin_config_removeip', FALSE, $content); } // [EOF]