From 5f4b283a3efcc48ca3e73aba707730fdc941cd6b Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Tue, 26 Nov 2002 00:17:06 +0000 Subject: [PATCH] Paul oopsied everywhere ... bad Paul ... use your litter tray git-svn-id: file:///svn/phpbb/trunk@3098 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/admin/admin_forums.php | 39 ++++++++++++------------ phpBB/admin/images/icon_folder_lock.gif | Bin 333 -> 673 bytes 2 files changed, 19 insertions(+), 20 deletions(-) diff --git a/phpBB/admin/admin_forums.php b/phpBB/admin/admin_forums.php index 9b27811e88..ff73d57e3b 100644 --- a/phpBB/admin/admin_forums.php +++ b/phpBB/admin/admin_forums.php @@ -386,23 +386,16 @@ switch ($mode) $parents_list = make_forums_list('all', $parent_id, $subforums_id); - $l_title = ($forum_status != ITEM_CATEGORY) ? $user->lang['Edit_forum'] : $user->lang['Edit_category']; + $l_title = $user->lang['Edit_forum']; $newmode = 'modify'; $buttonvalue = $user->lang['Update']; $prune_enabled = ($prune_enable) ? 'checked="checked" ' : ''; - if ($forum_status != ITEM_CATEGORY) - { - $forums_list = make_forums_list('forums', 0, $forum_id); - } + $forums_list = make_forums_list('forums', 0, $forum_id); } else { - $parent_id = 0; - if (!empty($_POST['parent_id'])) - { - list($parent_id) = each($_POST['parent_id']); - } + $parent_id = (!empty($_POST['parent_id'])) ? $_POST['parent_id'] : 0; $parents_list = make_forums_list('all', $parent_id); $l_title = $user->lang['Create_forum']; @@ -413,7 +406,7 @@ switch ($mode) $forum_desc = ''; $forum_style = ''; $forum_status = ITEM_UNLOCKED; - $forum_name = (!empty($_POST['forum_name'][$parent_id])) ? htmlspecialchars($_POST['forum_name'][$parent_id]) : ''; + $forum_name = (!empty($_POST['forum_name'])) ? htmlspecialchars($_POST['forum_name']) : ''; $post_count_inc = TRUE; $moderated = FALSE; @@ -685,15 +678,16 @@ else } } +// Jumpbox +$forum_box = make_forum_select($forum_id); + ?>

lang['Manage']; ?>

lang['Forum_admin_explain']; ?>

-
"> - - +">
@@ -710,12 +704,11 @@ $result = $db->sql_query('SELECT * FROM ' . FORUMS_TABLE . " WHERE parent_id = $ while ($row = $db->sql_fetchrow($result)) { // DEBUG - $forum_id = $row['forum_id']; $parent_id = $row['parent_id']; $forum_title = htmlspecialchars($row['forum_name']); $forum_desc = htmlspecialchars($row['forum_desc']); - if ($forum_status != ITEM_LOCKED) + if ($row['forum_status'] != ITEM_LOCKED) { if ($row['left_id'] + 1 != $row['right_id']) { @@ -723,15 +716,15 @@ while ($row = $db->sql_fetchrow($result)) } else { - $folder_image = '' . $user->lang['SUBFORUM'] . ''; + $folder_image = '' . $user->lang['FOLDER'] . ''; } } else { - $folder_image = '' . $user->lang['SUBFORUM'] . ''; + $folder_image = '' . $user->lang['LOCKED'] . ''; } - $url = $phpEx . $SID . '&this_f=' . $row['forum_id']; + $url = $phpEx . $SID . '&f=' . $forum_id . '&this_f=' . $row['forum_id']; $forum_title = '' . $forum_title . ''; @@ -753,7 +746,13 @@ while ($row = $db->sql_fetchrow($result)) ?> - + + +
+ +
+ +
lang['Select_forum']; ?>:
diff --git a/phpBB/admin/images/icon_folder_lock.gif b/phpBB/admin/images/icon_folder_lock.gif index 10eb77697215f3b201fd49984272c6f5dc22e48c..436f3d21c8188b5b68f0db779da1734dbeea2fdd 100644 GIT binary patch literal 673 zcmV;S0$%+`Nk%w1VJ-j}0M$PLXp`C5 z+3xP`-rn6FLws>+$jN^YijWhpFuI_FIptg|Wy}k+4fkOQXcq z%G~9fo166X^f`j2xX|6Kudw3c;9_E8;Og(}?CbdW_UGs3QiGiG^6`P2sC%o!kGIV4 z@9%JMZvb74fUd@Te0;vt;F-SB{r>*z?(gL7@vOkhZ<3_2&D)%&tMBsjIeVS)_4lo{ zx&QzFA^8LW002J#EC2ui04@L-000L6z@KnPEDmj$O5(-*tR%*$bV`&65-X5pU>e9) zhK!6#ros}e!N8N6xKp0N#vmx$iGmMlK$)ac6cm4NH5mdlcV#OTJ05-%9&u|Pf_^Cl zb%|4RHjaQECJzS(483S!_CI=%88X6-I z5T>Xt1u(uuA0V-Cq9Z2TCNT#cu@fy03DZIr34^i&quP<(E)5iWc-_9dJ>rR=gG^B4}iwB9ku`0wx?Rv0y^Qit!di0Kig# zfC3B)WYk!q#Y7i4bH*!iLWEDg0ysRj%26T0iK8bL=v>+$f(Qms1E5$q4IKaxECH0j z$*e201}C5@P=LTdK64*#FnB5=g4efT8H^1OqMW%O8!C*2dg85D4I;)8K!8Hp-5+TQ zC|KJenPbNghbpJ>F0!*r0?(V;p*-IUX1he^EiQ} z^Y{8SeWBjo-v9sqA^8LW0018VEC2ui022Tb000Hb;3tYy(PU^>aAPY%4m2tB14FJT z4Va?+2n_-=khmlVjv}b>2@!=5Hhy)b`2#r_*TnPqY0Rt7I7n)@R2_6Ps z91aNym!<-!01Fu`5(OTwWdgpwsS5`<9}^A+yRV~=sRj%V7$YVI03O!Y0L~5tE-(xW f)Y%IQ7TY-=0UHem7VQHLVdo<@8yy=mIUxW$un>jZ