]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_removeip.php
Rewrote some parts:
[mailer.git] / inc / modules / admin / what-config_removeip.php
index 1954b8fc40688264ca4062fd4f13e76e6ab00f3b..c521ba724f855703565f156dd988f85cb2edeae7 100644 (file)
@@ -16,7 +16,7 @@
  * $Author::                                                          $ *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
- * Copyright (c) 2009 - 2012 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]