3 // SourceForge: Breaking Down the Barriers to Open Source Development
4 // Copyright 1999-2000 (c) The SourceForge Crew
5 // http://sourceforge.net
8 require_once '../env.inc.php';
9 require_once $gfwww.'include/pre.php';
11 function get_rss_20_doc () {
12 return ' (<a href="http://blogs.law.harvard.edu/tech/rss">RSS 2.0</a>) ' .
13 html_image('ic/rss.png',16,16,array('border'=>'0'));
16 function get_rss_feed_20 ($page,$rss_title) {
18 $rss_feed_20 .= '<li><a href="' . $page . '">' . $rss_title . '</a>';
19 $rss_feed_20 .= '<link href="' . $page . '" title="' . $rss_title . ', RSS 2.0" rel="alternate" type="application/rss+xml" />';
20 $rss_feed_20 .= get_rss_20_doc () . '</li>';
24 $project = &group_get_object(getIntFromRequest('group_id'));
26 $HTML->header(array('title'=>_("Project Exports")));
28 echo '<h2>' . _('RSS/XML Exports') . '</h2><p>';
30 echo sprintf(_('%1$s data is exported in a variety of standard formats. Many of
31 the export URLs can also accept form/get data to customize the output. All
32 data generated by these pages is realtime.'),$GLOBALS['sys_name']);
34 //echo '</p><h3>' . _('News Data') . '</h3><p>';
36 echo _('To get Project News or New Project Releases of a specific project use the Links below.');
39 $string_rss_091 = '<ul>';
40 $string_rss_20 = '<ul>';
42 // RSS for project news
43 if ($project->usesNews() && $GLOBALS['sys_use_news']) {
45 $string_rss_091 .= '<li><a href="rss_sfnews.php?group_id=' . getIntFromRequest('group_id') . '">' .
46 $GLOBALS['sys_name'] . ' Developer Project News</a>';
47 $string_rss_091 .= '<link href="rss_sfnews.php?group_id=' . getIntFromRequest('group_id') . '" title="' .
48 $GLOBALS[sys_name] . ' Developer Project News, RSS 0.91" rel="alternate" type="application/rss+xml" />';
49 /* these links are obsolete
50 $string_rss_091 .= '(<a href="http://my.netscape.com/publish/formats/rss-spec-0.91.html">RSS 0.91</a>,
51 <a href="http://my.netscape.com/publish/formats/rss-0.91.dtd"><rss-0.91.dtd></a>) ' .
52 html_image('ic/rss.png',16,16,array('border'=>'0')) . '</li>';
54 $string_rss_091 .= ' (RSS 0.91)';
57 $string_rss_20 .= get_rss_feed_20 ("rss20_news.php?group_id=" . getIntFromRequest('group_id'),
58 $GLOBALS['sys_name'] . " Developer Project News");
62 // RSS for project Activity
63 if ( ($project->usesNews() && $GLOBALS['sys_use_news']) ||
64 ($project->usesFRS() && $GLOBALS['sys_use_frs']) ||
65 ($project->usesTracker() && $GLOBALS['sys_use_tracker']) ||
66 ($project->usesForum() && $GLOBALS['sys_use_forum']) ||
67 ($project->usesSCM() && $GLOBALS['sys_use_scm']) ){
69 $string_rss_20 .= get_rss_feed_20 ("rss20_activity.php?group_id=" . getIntFromRequest('group_id'),
70 $GLOBALS['sys_name'] . " Activity");
74 // RSS for project Releases
75 if ($project->usesFRS() && $GLOBALS['sys_use_frs']) {
77 $string_rss_091 .= '<li><a href="rss_sfnewreleases.php?group_id=' . getIntFromRequest('group_id') . '">' .
78 $GLOBALS['sys_name'] . ' Developer New Project Releases</a>';
79 $string_rss_091 .= '<link href="rss_sfnewreleases.php?group_id=' . getIntFromRequest('group_id') .
80 '" title="' . $GLOBALS[sys_name] . ' Developer New Project Releases, RSS 0.91" rel="alternate" type="application/rss+xml" />';
81 /* these links are obsolete
82 $string_rss_091 .= '(<a href="http://my.netscape.com/publish/formats/rss-spec-0.91.html">RSS 0.91</a>,
83 <a href="http://my.netscape.com/publish/formats/rss-0.91.dtd"><rss-0.91.dtd></a>) ' .
84 html_image('ic/rss.png',16,16,array('border'=>'0')) . '</li>';
86 $string_rss_091 .= ' (RSS 0.91)';
89 $string_rss_20 .= get_rss_feed_20 ("rss20_newreleases.php?group_id=" . getIntFromRequest('group_id'),
90 $GLOBALS['sys_name'] . " Developer New Project Releases");
93 /* Pages do not exists
95 // RSS for project Bug Tracker
96 if ($project->usesTracker() && $GLOBALS['sys_use_tracker']) {
98 $string_rss_20 .= get_rss_feed_20 ("rss20_tracker.php?group_id=" . getIntFromRequest('group_id'),
99 $GLOBALS['sys_name'] . " Developer Bug Tracker");
103 // RSS for project Documents
104 if ($project->usesDocman() && $GLOBALS['sys_use_docman']) {
106 $string_rss_20 .= get_rss_feed_20 ("rss20_docman.php?group_id=" . getIntFromRequest('group_id'),
107 $GLOBALS['sys_name'] . " Developer Documents");
110 // RSS for project Forums Threads
111 if ($project->usesForum() && $GLOBALS['sys_use_forum']) {
113 $string_rss_20 .= get_rss_feed_20 ("rss20_forum.php?group_ids=" . getIntFromRequest('group_id'),
114 $GLOBALS['sys_name'] . " Developer forum Threads");
119 $string_rss_091 .= '</ul>';
120 $string_rss_20 .= '</ul>';
122 echo $string_rss_091;
128 <li><a href="http://wiki.evolvis.org/evolvis/index.php/RSS">Get more Feeds here.</a></li>
131 <a href="javascript:history.go(-1)">[<?php echo _('Go back') ?>]</a>
133 <?php $HTML->footer(array()); ?>