3 * Mailing Lists Facility
5 * Copyright 1999-2001 (c) VA Linux Systems
6 * Copyright 2003-2004 (c) Guillaume Smet - Open Wide
7 * http://fusionforge.org/
9 * This file is part of FusionForge.
11 * FusionForge is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or
14 * (at your option) any later version.
16 * FusionForge is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
21 * You should have received a copy of the GNU General Public License
22 * along with FusionForge; if not, write to the Free Software
23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26 function mail_header($params) {
27 global $HTML, $group_id;
30 //required for site_project_header
31 $params['group'] = $group_id;
32 $params['toptab'] = 'mail';
34 $project = group_get_object($group_id);
36 if ($project && is_object($project)) {
37 if (!$project->usesMail()) {
38 exit_disabled('home');
42 site_project_header($params);
43 echo '<h1>' . $params['title']. '</h1>';
45 if (session_loggedin()) {
46 if (forge_check_perm ('project_admin', $project->getID())) {
52 '/mail/admin/?group_id='.$group_id
62 function mail_footer($params) {
63 site_project_footer($params);
68 // c-file-style: "bsd"