diff --git a/preferences/inc/hook_config.inc.php b/preferences/inc/hook_config.inc.php index 50e7d962d6..5634a903d5 100644 --- a/preferences/inc/hook_config.inc.php +++ b/preferences/inc/hook_config.inc.php @@ -39,89 +39,4 @@ return $out; } - function force_theme($config) - { - global $phpgw; - - $themes = array('user_choice'); - $themes += $phpgw->common->list_themes(); - - while (list ($key, $value) = each ($themes)) - { - if ($config['force_theme'] == $value) - { - $selected = ' selected'; - } - else - { - $selected = ''; - } - if ($value == 'user_choice') - { - $descr = lang('Users Choice'); - } - else - { - $descr = $value; - } - $out .= ''.$descr.'' . "\n"; - } - return $out; - } - - function template_set($config) - { - global $phpgw; - - $templ['user_choice'] = array( - 'name' => 'user_choice', - 'title' => lang('Users Choice') - ); - $templ += $phpgw->common->list_templates(); - - while (list ($key, $value) = each ($templ)) - { - if ($config['template_set'] == $key) - { - $selected = ' selected'; - } - else - { - $selected = ''; - } - - $descr = $templ[$key]['title']; - $out .= ''.$descr.'' . "\n"; - } - return $out; - } - - function force_default_app($config) - { - global $phpgw, $phpgw_info; - - $out = '' . "\n"; - - reset($phpgw_info['user']['apps']); - while ($permission = each($phpgw_info['user']['apps'])) - { - if ($phpgw_info['apps'][$permission[0]]['status'] != 2) - { - $out .= '' . "\n"; - } - } - - return $out; - } - -?> +?> \ No newline at end of file diff --git a/preferences/setup/config.inc.php b/preferences/setup/config.inc.php index 28a984c88d..a0cd8d2c84 100644 --- a/preferences/setup/config.inc.php +++ b/preferences/setup/config.inc.php @@ -37,71 +37,6 @@ - - - Interface/Template Selection: - - - get_template_list(); - } - else - { - $templates = $phpgw->common->list_templates(); - } - echo 'Users Choice'; - while (list ($key, $value) = each ($templates)) - { - echo ''.$templates[$key]["title"].''; - } - ?> - - - - - - - - Use theme: - - - list_themes(); - } - else - { - $themes = $phpgw->common->list_themes(); - } - echo 'Users Choice'; - while (list ($key, $value) = each ($themes)) - { - echo ''.$value.''; - } - ?> - - - - - - - - Frame support: - - - >Allow frames - >Force frames - >Disable frames - - - - - diff --git a/preferences/templates/default/config.tpl b/preferences/templates/default/config.tpl index e492b1ddcc..49fc4d03ac 100644 --- a/preferences/templates/default/config.tpl +++ b/preferences/templates/default/config.tpl @@ -48,33 +48,6 @@ - - {lang_Interface}/{lang_Template_Selection}: - - -{hook_template_set} - - - - - - {lang_Use_theme}: - - -{hook_force_theme} - - - - - - {lang_Force_default_application}: - - -{hook_force_default_app} - - - - {lang_Use_pure_HTML_compliant_code_(not_fully_working_yet)}: