From 69a3c36c70872152dabd85944df2c98866a6db35 Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Sat, 23 Jun 2001 06:33:03 +0000 Subject: [PATCH] Disable checkboxes since they will not work for our scheme of checking data prior to deleting/setting values; add unset if value='' for select --- admin/config.php | 9 +++++-- preferences/templates/default/config.tpl | 33 +++++++++++++++++++----- 2 files changed, 33 insertions(+), 9 deletions(-) diff --git a/admin/config.php b/admin/config.php index bed2bba89b..5c9b09f9c3 100644 --- a/admin/config.php +++ b/admin/config.php @@ -60,6 +60,10 @@ { $c->config_data[$key] = $config; } + else + { + unset($c->config_data[$key]); + } } $c->save_repository(True); @@ -103,7 +107,7 @@ $newval = ereg_replace(' ','_',$newval); $t->set_var($value,$current_config[$newval]); break; - case "checked": +/* case "checked": $newval = ereg_replace(' ','_',$newval); if ($current_config[$newval]) { @@ -113,7 +117,7 @@ { $t->set_var($value,''); } - break; + break;*/ case "selected": $configs = array(); $config = ''; @@ -124,6 +128,7 @@ $configs[] = $newvals[$i]; } $config = implode('_',$configs); + /* echo $config . '=' . $current_config[$config]; */ if ($current_config[$config] == $setting) { $t->set_var($value,' selected'); diff --git a/preferences/templates/default/config.tpl b/preferences/templates/default/config.tpl index d6991e1c3b..6b6744f93a 100644 --- a/preferences/templates/default/config.tpl +++ b/preferences/templates/default/config.tpl @@ -58,24 +58,43 @@ {lang_Use_pure_HTML_compliant_code_(not_fully_working_yet)}: - + + + {lang_Use_cookies_to_pass_sessionid}: - + + + {lang_Would_you_like_phpGroupWare_to_check_for_a_new_version
when_admins_login_?}: - + + + - {lang_Would_you_like_phpGroupWare_to_cache_the_phpgw_info_array ?}: - - - + {lang_Would_you_like_phpGroupWare_to_cache_the_phpgw_info_array ?}: + + + +