- switch ($CONFIG['cache_admins'])
- {
- 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;
- }
- switch ($CONFIG['cache_exts'])
- {
- 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;
- }
- switch ($CONFIG['cache_modreg'])
- {
- 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;
- }
- switch ($CONFIG['cache_refsys'])
- {
- 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']);
+ switch ($_CONFIG['cache_admins']) {
+ case 'Y':
+ define('__ADMINS_Y', " checked=\"checked\"");
+ define('__ADMINS_N', "");
+ break;
+
+ case 'N':
+ define('__ADMINS_Y', "");
+ define('__ADMINS_N', " checked=\"checked\"");
+ break;
+ }
+
+ switch ($_CONFIG['cache_acls']) {
+ case 'Y':
+ define('__ACLS_Y', " checked=\"checked\"");
+ define('__ACLS_N', "");
+ break;
+
+ case 'N':
+ define('__ACLS_Y', "");
+ define('__ACLS_N', " checked=\"checked\"");
+ break;
+ }
+
+ switch ($_CONFIG['cache_exts']) {
+ case 'Y':
+ define('__EXTS_Y', " checked=\"checked\"");
+ define('__EXTS_N', "");
+ break;
+
+ case 'N':
+ define('__EXTS_Y', "");
+ define('__EXTS_N', " checked=\"checked\"");
+ break;
+ }
+
+ switch ($_CONFIG['cache_config']) {
+ case 'Y':
+ define('__CONFIG_Y', " checked=\"checked\"");
+ define('__CONFIG_N', "");
+ break;
+
+ case 'N':
+ define('__CONFIG_Y', "");
+ define('__CONFIG_N', " checked=\"checked\"");
+ break;
+ }
+
+ switch ($_CONFIG['cache_modreg']) {
+ case 'Y':
+ define('__MODREG_Y', " checked=\"checked\"");
+ define('__MODREG_N', "");
+ break;
+
+ case 'N':
+ define('__MODREG_Y', "");
+ define('__MODREG_N', " checked=\"checked\"");
+ break;
+ }
+
+ switch ($_CONFIG['cache_refdepth']) {
+ case 'Y':
+ define('__REFDEPTH_Y', " checked=\"checked\"");
+ define('__REFDEPTH_N', "");
+ break;
+
+ case 'N':
+ define('__REFDEPTH_Y', "");
+ define('__REFDEPTH_N', " checked=\"checked\"");
+ break;
+ }
+
+ switch ($_CONFIG['cache_refsys']) {
+ case 'Y':
+ define('__REFSYS_Y', " checked=\"checked\"");
+ define('__REFSYS_N', "");
+ break;
+
+ case 'N':
+ define('__REFSYS_Y', "");
+ define('__REFSYS_N', " checked=\"checked\"");
+ break;
+ }
+
+ switch ($_CONFIG['cache_themes']) {
+ case 'Y':
+ define('__THEMES_Y', " checked=\"checked\"");
+ define('__THEMES_N', "");
+ break;
+
+ case 'N':
+ define('__THEMES_Y', "");
+ define('__THEMES_N', " checked=\"checked\"");
+ break;
+ }
+
+ switch ($_CONFIG['cache_admin_menu']) {
+ case 'Y':
+ define('__ADMIN_MENU_Y', " checked=\"checked\"");
+ define('__ADMIN_MENU_N', "");
+ break;
+
+ case 'N':
+ define('__ADMIN_MENU_Y', "");
+ define('__ADMIN_MENU_N', " checked=\"checked\"");
+ break;
+ }
+
+ define('__PATH', $_CONFIG['cache_path']);