* $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 *
- * Copyright (c) 2009, 2010 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 *
} // 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]