3 * GForge Exports: Export project summary page as HTML
5 * Copyright 2004 (c) GForge LLC
7 * @author Tim Perdue tim@gforge.org
10 * This file is part of GForge.
12 * GForge is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation; either version 2 of the License, or
15 * (at your option) any later version.
17 * GForge 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
23 * along with GForge; if not, write to the Free Software
24 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
27 require_once('../env.inc.php');
28 require_once $gfwww.'include/pre.php';
29 require_once $gfwww.'include/project_summary.php';
31 $group_name = getStringFromRequest('group_name');
32 $group_id = getIntFromRequest('group_id');
33 $mode = getStringFromRequest('mode');
34 $no_table = getStringFromRequest('no_table');
40 $group =& group_get_object_by_name($group_name);
42 $group =& group_get_object($group_id);
45 if (!$group || !is_object($group)) {
47 } elseif ($group->isError()) {
48 exit_error('Error', $group->getErrorMessage());
52 // Get the group_id from the object
55 $group_id=$group->getID();
59 // Add checks to see if they have perms to view this
61 if (!$group->isPublic()) {
62 if (!session_loggedin()) {
63 exit_permission_denied();
64 } elseif (!user_ismember($group_id)) {
65 exit_permission_denied();
69 echo project_summary($group_id,$mode,$no_table);