<?php
/************************************************************************
* Mailer v0.2.1-FINAL Start: 06/25/2004 *
- * ================ Last change: 05/05/2005 *
+ * =================== Last change: 05/05/2005 *
* *
* -------------------------------------------------------------------- *
* File : what-autopurge.php *
* $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 *
} // END - if
// Add description as navigation point
-addMenuDescription('admin', __FILE__);
+addYouAreHereLink('admin', __FILE__);
if (isFormSent()) {
// 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_inactive_selection'] = addSelectionBox('yn', getAutopurgeInactive() , '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');
$content['ap_notify_del_mails'] = addSelectionBox('yn', getConfig('ap_dm_notify') , 'ap_dm_notify');
// Output time selection boxes
- $content['ap_in_since'] = createTimeSelections(getConfig('ap_inactive_since') , 'ap_inactive_since' , 'MWDh');
- $content['ap_in_time'] = createTimeSelections(getConfig('ap_inactive_time') , 'ap_inactive_time' , 'MWDh');
- $content['ap_un_time'] = createTimeSelections(getConfig('ap_unconfirmed_time'), 'ap_unconfirmed_time', 'MWDh');
- $content['ap_task_time'] = createTimeSelections(getConfig('ap_tasks_time') , 'ap_tasks_time' , 'MWDh');
- $content['ap_del_mails_time'] = createTimeSelections(getConfig('ap_dm_timeout') , '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');
// Mail confirmation links
- $content['auto_purge'] = createTimeSelections(getConfig('auto_purge'), '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]