diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2003-11-01 16:10:21 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2003-11-01 16:10:21 +0000 |
commit | f79d8a3694c014d179f04f1e8560ff2a077253c4 (patch) | |
tree | 5b8ea8f8a3bd35ae12b48a6cfdcb2d143d435d12 /phpBB/includes/functions_admin.php | |
parent | bd508e5a273d5594ebd65230da77b5d2877b75c6 (diff) | |
download | forums-f79d8a3694c014d179f04f1e8560ff2a077253c4.tar forums-f79d8a3694c014d179f04f1e8560ff2a077253c4.tar.gz forums-f79d8a3694c014d179f04f1e8560ff2a077253c4.tar.bz2 forums-f79d8a3694c014d179f04f1e8560ff2a077253c4.tar.xz forums-f79d8a3694c014d179f04f1e8560ff2a077253c4.zip |
finish bump topic feature...
git-svn-id: file:///svn/phpbb/trunk@4634 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_admin.php')
-rw-r--r-- | phpBB/includes/functions_admin.php | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/phpBB/includes/functions_admin.php b/phpBB/includes/functions_admin.php index 78c46bafd0..9eac5d44ce 100644 --- a/phpBB/includes/functions_admin.php +++ b/phpBB/includes/functions_admin.php @@ -70,6 +70,27 @@ function make_forum_select($select_id = false, $ignore_id = false, $ignore_acl = return $forum_list; } +// Generate size select form +function size_select($select_name, $size_compare) +{ + global $user; + + $size_types_text = array($user->lang['BYTES'], $user->lang['KB'], $user->lang['MB']); + $size_types = array('b', 'kb', 'mb'); + + $select_field = '<select name="' . $select_name . '">'; + + for ($i = 0; $i < count($size_types_text); $i++) + { + $selected = ($size_compare == $size_types[$i]) ? ' selected="selected"' : ''; + $select_field .= '<option value="' . $size_types[$i] . '"' . $selected . '>' . $size_types_text[$i] . '</option>'; + } + + $select_field .= '</select>'; + + return ($select_field); +} + // Obtain authed forums list function get_forum_list($acl_list = 'f_list', $id_only = TRUE, $postable_only = FALSE, $no_cache = FALSE) { |