query masking rewritten in more SQLs, several cleanups and fix on beg link
[mailer.git] / inc / modules / admin / what-config_cache.php
index afe2ebb..3de2ab0 100644 (file)
@@ -43,85 +43,85 @@ ADD_DESCR("admin", basename(__FILE__));
 if (isset($_POST['ok']))
 {
        // Cache path has been not changed by default so don't test it again
-       $_POST['cache_tested'] = "N";
+       $_POST['cache_tested'] = 'N';
 
        // Check if path has been changed
        if ($_POST['cache_path'] != $CONFIG['cache_path'])
        {
                // Okay, cache path has been altered so we have to test it again!
-               $_POST['cache_tested'] = "Y";
+               $_POST['cache_tested'] = 'Y';
        }
 
        // Delete deactivated cache files
-       if (($_POST['cache_admins'] == "N") && ($CACHE->cache_file("admins", true)))
+       if (($_POST['cache_admins'] == 'N') && ($CACHE->cache_file("admins", true)))
        {
                $CACHE->cache_destroy();
        }
-       if (($_POST['cache_acls'] == "N") && ($CACHE->cache_file("acls", true)))
+       if (($_POST['cache_acls'] == 'N') && ($CACHE->cache_file("acls", true)))
        {
                $CACHE->cache_destroy();
        }
-       if (($_POST['cache_exts'] == "N") && ($CACHE->cache_file("extensions", true)))
+       if (($_POST['cache_exts'] == 'N') && ($CACHE->cache_file("extensions", true)))
        {
                $CACHE->cache_destroy();
        }
-       if (($_POST['cache_config'] == "N") && ($CACHE->cache_file("config", true)))
+       if (($_POST['cache_config'] == 'N') && ($CACHE->cache_file("config", true)))
        {
                $CACHE->cache_destroy();
        }
-       if (($_POST['cache_modreg'] == "N") && ($CACHE->cache_file("modreg", true)))
+       if (($_POST['cache_modreg'] == 'N') && ($CACHE->cache_file("modreg", true)))
        {
                $CACHE->cache_destroy();
        }
-       if (($_POST['cache_refdepth'] == "N") && ($CACHE->cache_file("refdepth", true)))
+       if (($_POST['cache_refdepth'] == 'N') && ($CACHE->cache_file("refdepth", true)))
        {
                $CACHE->cache_destroy();
        }
-       if (($_POST['cache_refsys'] == "N") && ($CACHE->cache_file("refsys", true)))
+       if (($_POST['cache_refsys'] == 'N') && ($CACHE->cache_file("refsys", true)))
        {
                $CACHE->cache_destroy();
        }
 
        // Save configuration
-       ADMIN_SAVE_SETTINGS($_POST, "_config", "config='0'");
+       ADMIN_SAVE_SETTINGS($_POST);
 }
  else
 {
        // Prepare data
        switch ($CONFIG['cache_admins'])
        {
-               case "Y": define('__ADMINS_Y', " checked"); define('__ADMINS_N', "");         break;
-               case "N": define('__ADMINS_Y', "");         define('__ADMINS_N', " checked"); break;
+               case 'Y': define('__ADMINS_Y', " checked"); define('__ADMINS_N', "");         break;
+               case 'N': define('__ADMINS_Y', "");         define('__ADMINS_N', " checked"); break;
        }
        switch ($CONFIG['cache_acls'])
        {
-               case "Y": define('__ACLS_Y', " checked"); define('__ACLS_N', "");         break;
-               case "N": define('__ACLS_Y', "");         define('__ACLS_N', " checked"); break;
+               case 'Y': define('__ACLS_Y', " checked"); define('__ACLS_N', "");         break;
+               case 'N': define('__ACLS_Y', "");         define('__ACLS_N', " checked"); break;
        }
        switch ($CONFIG['cache_exts'])
        {
-               case "Y": define('__EXTS_Y', " checked"); define('__EXTS_N', "");         break;
-               case "N": define('__EXTS_Y', "");         define('__EXTS_N', " checked"); break;
+               case 'Y': define('__EXTS_Y', " checked"); define('__EXTS_N', "");         break;
+               case 'N': define('__EXTS_Y', "");         define('__EXTS_N', " checked"); break;
        }
        switch ($CONFIG['cache_config'])
        {
-               case "Y": define('__CONFIG_Y', " checked"); define('__CONFIG_N', "");         break;
-               case "N": define('__CONFIG_Y', "");         define('__CONFIG_N', " checked"); break;
+               case 'Y': define('__CONFIG_Y', " checked"); define('__CONFIG_N', "");         break;
+               case 'N': define('__CONFIG_Y', "");         define('__CONFIG_N', " checked"); break;
        }
        switch ($CONFIG['cache_modreg'])
        {
-               case "Y": define('__MODREG_Y', " checked"); define('__MODREG_N', "");         break;
-               case "N": define('__MODREG_Y', "");         define('__MODREG_N', " checked"); break;
+               case 'Y': define('__MODREG_Y', " checked"); define('__MODREG_N', "");         break;
+               case 'N': define('__MODREG_Y', "");         define('__MODREG_N', " checked"); break;
        }
        switch ($CONFIG['cache_refdepth'])
        {
-               case "Y": define('__REFDEPTH_Y', " checked"); define('__REFDEPTH_N', "");         break;
-               case "N": define('__REFDEPTH_Y', "");         define('__REFDEPTH_N', " checked"); break;
+               case 'Y': define('__REFDEPTH_Y', " checked"); define('__REFDEPTH_N', "");         break;
+               case 'N': define('__REFDEPTH_Y', "");         define('__REFDEPTH_N', " checked"); break;
        }
        switch ($CONFIG['cache_refsys'])
        {
-               case "Y": define('__REFSYS_Y', " checked"); define('__REFSYS_N', "");         break;
-               case "N": define('__REFSYS_Y', "");         define('__REFSYS_N', " checked"); break;
+               case 'Y': define('__REFSYS_Y', " checked"); define('__REFSYS_N', "");         break;
+               case 'N': define('__REFSYS_Y', "");         define('__REFSYS_N', " checked"); break;
        }
        define('__PATH', $CONFIG['cache_path']);