X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-config_removeip.php;h=464afebbd54e0bafb4127143202bce0c60d3fc83;hb=7858ec10092071d595c3814264c537cd16695875;hp=bcbd1bbd16c61b68456180ef662a25c1d0a48c8f;hpb=e2148142f8b1a8f40fd6e7ca32185569c5a9083e;p=mailer.git diff --git a/inc/modules/admin/what-config_removeip.php b/inc/modules/admin/what-config_removeip.php index bcbd1bbd16..464afebbd5 100644 --- a/inc/modules/admin/what-config_removeip.php +++ b/inc/modules/admin/what-config_removeip.php @@ -14,11 +14,10 @@ * $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 * - * 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 * @@ -42,31 +41,22 @@ if ((!defined('__SECURITY')) || (!isAdmin())) { } // END - if // Add description as navigation point -addMenuDescription('admin', __FILE__); +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]