3 * Show Release Notes/ChangeLog Page
5 * Copyright 1999-2001 (c) VA Linux Systems
6 * The rest Copyright 2002-2004 (c) GForge Team
11 * This file is part of GForge.
13 * GForge is free software; you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License as published by
15 * the Free Software Foundation; either version 2 of the License, or
16 * (at your option) any later version.
18 * GForge is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU General Public License for more details.
23 * You should have received a copy of the GNU General Public License
24 * along with GForge; if not, write to the Free Software
25 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
28 require_once('../env.inc.php');
29 require_once $gfwww.'include/pre.php';
30 require_once $gfwww.'frs/include/frs_utils.php';
32 $release_id = getIntFromRequest('release_id');
34 $result=db_query("SELECT frs_release.notes,frs_release.changes,
35 frs_release.preformatted,frs_release.name,frs_package.group_id,frs_package.is_public
36 FROM frs_release,frs_package
37 WHERE frs_release.package_id=frs_package.package_id
39 AND frs_release.release_id='$release_id'");
41 if (!$result || db_numrows($result) < 1) {
42 exit_error(_('Error'), _('That Release Was Not Found'));
45 $group_id=db_result($result,0,'group_id');
46 $is_public =db_result($result,0,'is_public');
48 // Members of projects can see all packages
49 // Non-members can only see public packages
51 if (!session_loggedin() || (!user_ismember($group_id) && !user_ismember(1,'A'))) {
52 exit_permission_denied();
56 frs_header(array('title'=>_('File Release Notes and Changelog'),'group'=>$group_id));
58 echo $HTML->boxTop(_('Notes:'));
60 echo '<h3>'._('Release Name:').' '.util_make_link ('/frs/?group_id='.db_result($result,0,'group_id'),db_result($result,0,'name')).'</h3>
64 Show preformatted or plain notes/changes
66 if (db_result($result,0,'preformatted')) {
67 echo '<pre><strong>'._('Notes:').'</strong>
68 '.db_result($result,0,'notes').'
71 <strong>'._('Changes:').'</strong>
72 '.db_result($result,0,'changes').'</pre>';
75 echo '<strong>'._('Notes:').'</strong>
76 '.db_result($result,0,'notes').'
79 <strong>'._('Changes:').'</strong>
80 '.db_result($result,0,'changes') . '</p>';
84 echo $HTML->boxBottom();