]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-autopurge.php
Cache class rewritten to better convention
[mailer.git] / inc / modules / admin / what-autopurge.php
index 54d22e21a3c2c27cd2268dd2412d45df476720b3..da04ee23e4a28ce2a19d6584d248cb120d34e1d3 100644 (file)
@@ -38,23 +38,37 @@ if ((!defined('__SECURITY')) || (!IS_ADMIN())) {
 }
 
 // Add description as navigation point
-ADD_DESCR("admin", basename(__FILE__));
+ADD_DESCR("admin", __FILE__);
 
 if (isset($_POST['ok'])) {
        // Data was submitted so we store it
        ADMIN_SAVE_SETTINGS($_POST);
 } else {
        // Setup constants for the template
-       switch ($_CONFIG['autopurge_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['autopurge_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_inactive_since']);
        define('__AP_IN_TIME' , $_CONFIG['ap_in_time']);
        define('__AP_UN_TIME' , $_CONFIG['ap_un_time']);