From c5e40db2a07f3e2a432dee409eafc038313302d5 Mon Sep 17 00:00:00 2001 From: Bart van Bragt Date: Thu, 21 Oct 2004 13:15:01 +0000 Subject: [PATCH] Removed duplicate declaration of build_cfg_template() git-svn-id: file:///svn/phpbb/trunk@5006 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/adm/admin_board.php | 61 +-------------------------------------- 1 file changed, 1 insertion(+), 60 deletions(-) diff --git a/phpBB/adm/admin_board.php b/phpBB/adm/admin_board.php index c9b3257436..b590150080 100644 --- a/phpBB/adm/admin_board.php +++ b/phpBB/adm/admin_board.php @@ -512,64 +512,5 @@ function board_disable($value) return ' ' . $user->lang['YES'] . '   ' . $user->lang['NO'] . '
'; } -function build_cfg_template($tpl_type, $config_key, $options = '') -{ - global $new, $user; - - $tpl = ''; - $name = 'config[' . $config_key . ']'; - switch ($tpl_type[0]) - { - case 'text': - case 'password': - $size = (int) $tpl_type[1]; - $maxlength = (int) $tpl_type[2]; - - $tpl = ''; - break; - - case 'dimension': - $size = (int) $tpl_type[1]; - $maxlength = (int) $tpl_type[2]; - - $tpl = ' x '; - break; - - case 'textarea': - $rows = (int) $tpl_type[1]; - $cols = (int) $tpl_type[2]; - - $tpl = ''; - break; - - case 'radio': - $key_yes = ($new[$config_key]) ? ' checked="checked"' : ''; - $key_no = (!$new[$config_key]) ? ' checked="checked"' : ''; - - $tpl_type_cond = explode('_', $tpl_type[1]); - $type_no = ($tpl_type_cond[0] == 'disabled' || $tpl_type_cond[0] == 'enabled') ? false : true; - - $tpl_no = '' . (($type_no) ? $user->lang['NO'] : $user->lang['DISABLED']); - $tpl_yes = '' . (($type_no) ? $user->lang['YES'] : $user->lang['ENABLED']); - - $tpl = ($tpl_type_cond[0] == 'yes' || $tpl_type_cond[0] == 'enabled') ? $tpl_yes . '  ' . $tpl_no : $tpl_no . '  ' . $tpl_yes; - break; - - case 'select': - eval('$s_options = ' . str_replace('{VALUE}', $new[$config_key], $options) . ';'); - $tpl = ''; - break; - - case 'custom': - eval('$tpl = ' . str_replace('{VALUE}', $new[$config_key], $options) . ';'); - break; - - default: - break; - } - - return $tpl; -} - -?> \ No newline at end of file +?>