X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fadmin%2Fwhat-autopurge.php;h=da04ee23e4a28ce2a19d6584d248cb120d34e1d3;hp=3df1e785caaaa3fe3dfd2e23f0242bacaae7f473;hb=6586600d8020147192e5f28ca2a3a0153f774d3c;hpb=8383fc52cd2340ea1756f9e1808fa3589e27c341 diff --git a/inc/modules/admin/what-autopurge.php b/inc/modules/admin/what-autopurge.php index 3df1e785ca..da04ee23e4 100644 --- a/inc/modules/admin/what-autopurge.php +++ b/inc/modules/admin/what-autopurge.php @@ -32,32 +32,44 @@ ************************************************************************/ // Some security stuff... -if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN())) -{ +if ((!defined('__SECURITY')) || (!IS_ADMIN())) { $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); } + // Add description as navigation point -ADD_DESCR("admin", basename(__FILE__)); +ADD_DESCR("admin", __FILE__); -if (isset($_POST['ok'])) -{ +if (isset($_POST['ok'])) { // Data was submitted so we store it -} - else -{ + ADMIN_SAVE_SETTINGS($_POST); +} else { // Setup constants for the template - switch ($_CONFIG['ap_inactive']) - { - case 'Y': define('__YES_IN', ' checked'); define('__NO_IN', ""); break; - case 'N': define('__YES_IN', ""); define('__NO_IN', ' checked'); break; + switch ($_CONFIG['autopurge_inactive']) { + case 'Y': + define('__YES_IN', " checked=\"checked\""); + define('__NO_IN' , ""); + break; + + case 'N': + define('__YES_IN', ""); + define('__NO_IN' , " checked=\"checked\""); + break; } - switch ($_CONFIG['ap_unconfirmed']) - { - case 'Y': define('__YES_UN', ' checked'); define('__NO_UN', ""); break; - case 'N': define('__YES_UN', ""); define('__NO_UN', ' checked'); break; + + switch ($_CONFIG['autopurge_unconfirmed']) { + case 'Y': + define('__YES_UN', " checked=\"checked\""); + define('__NO_UN' , ""); + break; + + case 'N': + define('__YES_UN', ""); + define('__NO_UN' , " checked=\"checked\""); + break; } - define('__AP_IN_SINCE', $_CONFIG['ap_in_since']); + + define('__AP_IN_SINCE', $_CONFIG['ap_inactive_since']); define('__AP_IN_TIME' , $_CONFIG['ap_in_time']); define('__AP_UN_TIME' , $_CONFIG['ap_un_time']);