Ejemplo n.º 1
0
     
     $forum_info = get_info('forum', $forum_id);
     
     $cat_id = $forum_info['cat_id'];
     
     $sql = "UPDATE " . FORUMS_TABLE . "
     	SET forum_order = forum_order + $move
     	WHERE forum_id = $forum_id";
     if( !$result = $db->sql_query($sql) )
     {
     	message_die(GENERAL_ERROR, "Couldn't change category order", "", __LINE__, __FILE__, $sql);
     }
     
     renumber_order('forum', $forum_info['cat_id']);
     */
     $_sf_tree->move_up_down(POST_FORUM_URL, intval($HTTP_GET_VARS[POST_FORUM_URL]), intval($HTTP_GET_VARS['move']));
     //-- mod: sf - end
     $show_index = TRUE;
     break;
 case 'cat_order':
     //-- mod: sf
     /*
     //
     // Change order of categories in the DB
     //
     $move = intval($HTTP_GET_VARS['move']);
     $cat_id = intval($HTTP_GET_VARS[POST_CAT_URL]);
     
     $sql = "UPDATE " . CATEGORIES_TABLE . "
     	SET cat_order = cat_order + $move
     	WHERE cat_id = $cat_id";