[Phpslash-commit] CVS: phpslash-ft/public_html/admin blockAdmin.php3,1.16,1.17
Brought to you by:
joestewart,
nhruby
From: Joe S. <joe...@us...> - 2003-03-27 15:03:28
|
Update of /cvsroot/phpslash/phpslash-ft/public_html/admin In directory sc8-pr-cvs1:/tmp/cvs-serv25546/phpslash-ft/public_html/admin Modified Files: blockAdmin.php3 Log Message: limit block admin. to allowed sections. Index: blockAdmin.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/admin/blockAdmin.php3,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** blockAdmin.php3 3 Feb 2003 18:02:57 -0000 1.16 --- blockAdmin.php3 27 Mar 2003 15:03:24 -0000 1.17 *************** *** 41,45 **** if ($perm->have_perm("blockDelete")) { if ($block->delBlock($HTTP_GET_VARS['id'])) { ! $content .= pslgetText("The Block has been Deleted"); } } --- 41,47 ---- if ($perm->have_perm("blockDelete")) { if ($block->delBlock($HTTP_GET_VARS['id'])) { ! $content .= getMessage($block->message); ! } else { ! $content .= getError($block->message); } } *************** *** 71,76 **** case "update": if ($perm->have_perm("blockPut")) { ! $content .= $block->putBlock($HTTP_POST_VARS); ! // expire cache for these section_id's $section_id_ary = $HTTP_POST_VARS['section_id_ary']; --- 73,81 ---- case "update": if ($perm->have_perm("blockPut")) { ! if($block->putBlock($HTTP_POST_VARS)) { ! $content .= getMessage($block->message); ! } else { ! $content .= getError($block->message); ! } // expire cache for these section_id's $section_id_ary = $HTTP_POST_VARS['section_id_ary']; *************** *** 95,99 **** $HTTP_GET_VARS['name'] = ''; } ! $content .= $block->listBlockTypes($HTTP_GET_VARS['option'], $HTTP_GET_VARS['name']); /* optional block type management */ } } --- 100,106 ---- $HTTP_GET_VARS['name'] = ''; } ! if ($perm->have_perm("block")) { ! $content .= $block->listBlockTypes($HTTP_GET_VARS['option'], $HTTP_GET_VARS['name']); /* optional block type management */ ! } } } |