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 +?>