X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-config_autopurge.php;h=118fb8ed8d4f8a21d5d94d8b72f7a9fa56e8e359;hb=5f70ac9d208ca39e3381705afcad2654a700a850;hp=994886dea6c9834354a2bbd2ff462f72dc3cf20a;hpb=c3b4eaf29946349ff058691db2dcb615a5379bb2;p=mailer.git diff --git a/inc/modules/admin/what-config_autopurge.php b/inc/modules/admin/what-config_autopurge.php index 994886dea6..118fb8ed8d 100644 --- a/inc/modules/admin/what-config_autopurge.php +++ b/inc/modules/admin/what-config_autopurge.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,41 +43,23 @@ if ((!defined('__SECURITY')) || (!isAdmin())) { // Add description as navigation point addYouAreHereLink('admin', __FILE__); -if (isFormSent()) { +if (isFormSent('save_config')) { // Data was submitted so we store it adminSaveSettingsFromPostData(); } else { - // Output de-/activation selections - $content['ap_inactive_selection'] = addSelectionBox('yn', getConfig('autopurge_inactive') , 'autopurge_inactive'); - $content['ap_unconfirmed_selection'] = addSelectionBox('yn', getConfig('autopurge_unconfirmed'), 'autopurge_unconfirmed'); - $content['ap_tasks_selection'] = addSelectionBox('yn', getConfig('autopurge_tasks') , 'autopurge_tasks'); - $content['ap_del_mails_selection'] = addSelectionBox('yn', getConfig('ap_del_mails') , 'ap_del_mails'); - - // Output notification selections - $content['ap_notify_inactive'] = addSelectionBox('yn', getConfig('ap_in_notify') , 'ap_in_notify'); - $content['ap_notify_unconfirmed'] = addSelectionBox('yn', getConfig('ap_un_notify') , 'ap_un_notify'); - $content['ap_notify_tasks'] = addSelectionBox('yn', getConfig('ap_tasks_notify'), 'ap_tasks_notify'); - $content['ap_notify_del_mails'] = addSelectionBox('yn', getConfig('ap_dm_notify') , 'ap_dm_notify'); - // Output time selection boxes - $content['ap_in_since'] = createTimeSelections(getApInactiveSince() , 'ap_inactive_since' , 'MWDh'); - $content['ap_in_time'] = createTimeSelections(getApInactiveTime() , 'ap_inactive_time' , 'MWDh'); - $content['ap_un_time'] = createTimeSelections(getApUnconfirmedTime(), 'ap_unconfirmed_time', 'MWDh'); - $content['ap_task_time'] = createTimeSelections(getApTasksTime() , 'ap_tasks_time' , 'MWDh'); - $content['ap_del_mails_time'] = createTimeSelections(getApDmTimeout() , 'ap_dm_timeout' , 'MWDh'); + $content['ap_in_since'] = createConfigurationTimeSelections('ap_inactive_since' , 'MWDh'); + $content['ap_in_time'] = createConfigurationTimeSelections('ap_inactive_time' , 'MWDh'); + $content['ap_un_time'] = createConfigurationTimeSelections('ap_unconfirmed_time' , 'MWDh'); + $content['ap_task_time'] = createConfigurationTimeSelections('ap_tasks_time' , 'MWDh'); + $content['ap_del_mails_time'] = createConfigurationTimeSelections('ap_dm_timeout' , 'MWDh'); + $content['ap_server_name_since'] = createConfigurationTimeSelections('ap_server_name_since', 'MWDh'); // Mail confirmation links - $content['auto_purge'] = createTimeSelections(getAutoPurge(), 'auto_purge', 'MWD'); - - // Prepare more Y/N selections - foreach (array('auto_purge_active') as $entry) { - $content[$entry . '_y'] = ''; - $content[$entry . '_n'] = ''; - $content[$entry . '_' . strtolower(getConfig('auto_purge_active'))] = ' checked="checked"'; - } // END - foreach + $content['auto_purge'] = createConfigurationTimeSelections('auto_purge', 'MWD'); // Output template - loadTemplate('admin_config_autopurge', false, $content); + loadTemplate('admin_config_autopurge', FALSE, $content); } // [EOF]