3 * Forum Pending Messages Management Admin Page
5 * Copyright 1999-2001 (c) VA Linux Systems
6 * Copyright 2002-2004 (c) GForge Team
7 * Copyright 2005 (c) Daniel Perez
8 * Copyright (C) 2012 Alain Peyrat - Alcatel-Lucent
9 * http://fusionforge.org/
11 * This file is part of FusionForge. FusionForge is free software;
12 * you can redistribute it and/or modify it under the terms of the
13 * GNU General Public License as published by the Free Software
14 * Foundation; either version 2 of the Licence, or (at your option)
17 * FusionForge is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
22 * You should have received a copy of the GNU General Public License along
23 * with FusionForge; if not, write to the Free Software Foundation, Inc.,
24 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
27 require_once '../../env.inc.php';
28 require_once $gfcommon.'include/pre.php';
29 require_once $gfcommon.'forum/ForumAdmin.class.php';
31 $action = getStringFromRequest('action');
32 $group_id = getIntFromRequest('group_id');
33 $forum_id = getStringFromRequest("forum_id");
35 $fa = new ForumAdmin ($group_id);
37 // If there's no forum_id input, then the user must have access to all forums, thus he's a group admin for the forums
39 session_require_perm ('forum_admin', $group_id) ;
41 forum_header(array('title'=>_('Manage Pending Messages')));
42 if (getStringFromRequest("Go")) {
43 $fa->ExecuteAction("view_pending");
45 $fa->ExecuteAction($action);
50 session_require_perm ('forum', $forum_id, 'moderate') ;
52 forum_header(array('title'=>_('Manage Pending Messages')));
53 if (getStringFromRequest("Go")) {
54 $fa->ExecuteAction("view_pending");
56 $fa->ExecuteAction($action);