X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-config_removeip.php;h=c521ba724f855703565f156dd988f85cb2edeae7;hb=e5527fd38a6585c8466dc28d013f12d21eb7c07a;hp=8b69aff5cfff7650f60a05d19aeebdc07f63bbd9;hpb=20741b93fd58620af677a7f1039ffd16ea6ec689;p=mailer.git diff --git a/inc/modules/admin/what-config_removeip.php b/inc/modules/admin/what-config_removeip.php index 8b69aff5cf..c521ba724f 100644 --- a/inc/modules/admin/what-config_removeip.php +++ b/inc/modules/admin/what-config_removeip.php @@ -16,7 +16,7 @@ * $Author:: $ * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * Copyright (c) 2009 - 2011 by Mailer Developer Team * + * 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 * @@ -43,22 +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 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]