3 * Copyright 1999-2000 (c) The SourceForge Crew
4 * Copyright (C) 2009-2010 Alain Peyrat, Alcatel-Lucent
5 * Copyright (C) 2011 Alain Peyrat - Alcatel-Lucent
6 * Copyright 2012, Franck Villaume - TrivialDev
8 * This file is part of FusionForge. FusionForge is free software;
9 * you can redistribute it and/or modify it under the terms of the
10 * GNU General Public License as published by the Free Software
11 * Foundation; either version 2 of the Licence, or (at your option)
14 * FusionForge is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License along
20 * with FusionForge; if not, write to the Free Software Foundation, Inc.,
21 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
25 * Standard Alcatel-Lucent disclaimer for contributing to open source
27 * The code ("Contribution") has not been tested and/or
28 * validated for release as or in products, combinations with products or
29 * other commercial use. Any use of the Contribution is entirely made at
30 * the user's own responsibility and the user can not rely on any features,
31 * functionalities or performances Alcatel-Lucent has attributed to the
34 * THE CONTRIBUTION BY ALCATEL-LUCENT IS PROVIDED AS IS, WITHOUT WARRANTY
35 * OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
36 * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, COMPLIANCE,
37 * NON-INTERFERENCE AND/OR INTERWORKING WITH THE SOFTWARE TO WHICH THE
38 * CONTRIBUTION HAS BEEN MADE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL
39 * ALCATEL-LUCENT BE LIABLE FOR ANY DAMAGES OR OTHER LIABLITY, WHETHER IN
40 * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
41 * CONTRIBUTION OR THE USE OR OTHER DEALINGS IN THE CONTRIBUTION, WHETHER
42 * TOGETHER WITH THE SOFTWARE TO WHICH THE CONTRIBUTION RELATES OR ON A STAND
46 require_once '../env.inc.php';
47 require_once $gfcommon.'include/pre.php';
49 $group_id = getIntFromRequest('group_id');
51 /* We need a group_id */
56 $project = group_get_object($group_id);
57 if (!$project|| !is_object($project) || $project->isError()) {
61 $name = $project->getPublicName();
63 function get_rss_20_doc () {
64 return ' ' . html_image('ic/rss.png',16,16);
67 function get_rss_feed_20 ($page,$rss_title) {
69 $rss_feed_20 = '<li><a href="' . $page . '">' . $rss_title . '</a>';
70 $rss_feed_20 .= '<link href="' . $page . '" title="' . $rss_title . ', RSS 2.0" rel="alternate" type="application/rss+xml" />';
71 $rss_feed_20 .= get_rss_20_doc () . '</li>';
75 $HTML->header(array('title'=>_('RSS Exports')));
77 echo '<h2>' . _('RSS Exports') . '</h2>';
79 printf(_('%1$s data is exported in RSS 2.0 format. Many of the export URLs can also accept form/get data to customize the output. All data generated by these pages is realtime.'), forge_get_config ('forge_name'));
81 echo _('To get Project News or New Project Releases of a specific project use the Links below.');
85 // RSS for project news
86 if ($project->usesNews() && forge_get_config('use_news')) {
87 $string_rss_20 .= get_rss_feed_20 ("rss20_news.php?group_id=" . $group_id,
88 $name.': ' . _('Project News'));
91 // RSS for project Activity
92 if ( ($project->usesNews() && forge_get_config('use_news')) ||
93 ($project->usesFRS() && forge_get_config('use_frs')) ||
94 ($project->usesTracker() && forge_get_config('use_tracker')) ||
95 ($project->usesForum() && forge_get_config('use_forum')) ||
96 ($project->usesSCM() && forge_get_config('use_scm')) ){
97 $string_rss_20 .= get_rss_feed_20 ("rss20_activity.php?group_id=" . $group_id,
98 $name.': ' . _('Activity'));
101 // RSS for project Releases
102 if ($project->usesFRS() && forge_get_config('use_frs')) {
103 $string_rss_20 .= get_rss_feed_20 ("rss20_newreleases.php?group_id=" . $group_id,
104 $name.': ' . _('Project Releases'));
107 // RSS for project documents
108 if ($project->usesDocman() && forge_get_config('use_docman')) {
109 $string_rss_20 .= get_rss_feed_20 ("rss20_docman.php?group_id=" . $group_id,
110 $name.': ' . _('Project Document Manager'));
115 <?php echo $string_rss_20; ?>
118 <a href="javascript:history.go(-1)">[<?php echo _('Go back') ?>]</a>
120 <?php $HTML->footer(array()); ?>