diff options
| author | Meik Sievertsen <acydburn@phpbb.com> | 2003-09-24 19:41:14 +0000 |
|---|---|---|
| committer | Meik Sievertsen <acydburn@phpbb.com> | 2003-09-24 19:41:14 +0000 |
| commit | 8675e30366dbe0e9baf35a3398019da500198549 (patch) | |
| tree | ace084d93e82cbafdcc2f1ac45f6961a79f46e22 /phpBB/adm | |
| parent | f614337627ac7b6553cf3c6cdb50a3d9d9fe33a3 (diff) | |
| download | forums-8675e30366dbe0e9baf35a3398019da500198549.tar forums-8675e30366dbe0e9baf35a3398019da500198549.tar.gz forums-8675e30366dbe0e9baf35a3398019da500198549.tar.bz2 forums-8675e30366dbe0e9baf35a3398019da500198549.tar.xz forums-8675e30366dbe0e9baf35a3398019da500198549.zip | |
some small fixes
got rid of iframe (topic review)... tested new div method with various browsers, further testing and oppinions would be nice. ;)
NOTE: New css element added to theme
git-svn-id: file:///svn/phpbb/trunk@4510 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/adm')
| -rw-r--r-- | phpBB/adm/admin_attachments.php | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/phpBB/adm/admin_attachments.php b/phpBB/adm/admin_attachments.php index 7f4ca15563..6513ca2984 100644 --- a/phpBB/adm/admin_attachments.php +++ b/phpBB/adm/admin_attachments.php @@ -348,11 +348,11 @@ if ($submit && $mode == 'ext_groups') // Add Extensions Group ? $extension_group = (isset($_POST['add_extension_group'])) ? trim(strip_tags($_POST['add_extension_group'])) : ''; $download_mode = (isset($_POST['add_download_mode'])) ? $_POST['add_download_mode'] : ''; - $cat_id = (isset($_POST['add_category'])) ? $_POST['add_category'] : ''; - $upload_icon = (isset($_POST['add_upload_icon'])) ? $_POST['add_upload_icon'] : ''; + $cat_id = (isset($_POST['add_category'])) ? (int) $_POST['add_category'] : 0; + $upload_icon = (isset($_POST['add_upload_icon'])) ? htmlspecialchars($_POST['add_upload_icon']) : ''; $filesize = (isset($_POST['add_max_filesize'])) ? $_POST['add_max_filesize'] : ''; - $size_select = (isset($_POST['add_size_select'])) ? $_POST['add_size_select'] : ''; - $is_allowed = (isset($_POST['add_allowed'])) ? 1 : 0; + $size_select = (isset($_POST['add_size_select'])) ? htmlspecialchars($_POST['add_size_select']) : ''; + $is_allowed = (isset($_POST['add_allowed'])) ? TRUE : FALSE; $add = (isset($_POST['add_extension_group_check'])) ? TRUE : FALSE; if ($extension_group != '' && $add) @@ -953,7 +953,7 @@ function size_select($select_name, $size_compare) } // Build Select for category items -function category_select($select_name, $group_id = -1) +function category_select($select_name, $group_id = FALSE) { global $db, $user; @@ -964,7 +964,7 @@ function category_select($select_name, $group_id = -1) RM_CAT => $user->lang['CAT_RM_FILES'] ); - if ($group_id != -1) + if ($group_id) { $sql = 'SELECT cat_id FROM ' . EXTENSION_GROUPS_TABLE . ' @@ -994,7 +994,7 @@ function category_select($select_name, $group_id = -1) } // Extension group select -function group_select($select_name, $default_group = -1) +function group_select($select_name, $default_group = '-1') { global $db, $user; @@ -1018,7 +1018,7 @@ function group_select($select_name, $default_group = -1) for ($i = 0; $i < count($group_name); $i++) { - if ($default_group == -1) + if ($default_group == '-1') { $selected = ($i == 0) ? ' selected="selected"' : ''; } @@ -1036,7 +1036,7 @@ function group_select($select_name, $default_group = -1) } // Build select for download modes -function download_select($select_name, $group_id = -1) +function download_select($select_name, $group_id = FALSE) { global $db, $user; @@ -1045,7 +1045,7 @@ function download_select($select_name, $group_id = -1) PHYSICAL_LINK => $user->lang['MODE_PHYSICAL'] ); - if ($group_id != -1) + if ($group_id) { $sql = "SELECT download_mode FROM " . EXTENSION_GROUPS_TABLE . " |
