*** empty log message ***

svn path=/trunk/boinc/; revision=4352
This commit is contained in:
David Anderson 2004-10-19 22:12:00 +00:00
parent 4188fbdd84
commit c5723ee3f9
2 changed files with 33 additions and 17 deletions

View File

@ -18587,3 +18587,9 @@ David 19 Oct 2004
client_types.C client_types.C
lib/ lib/
gui_rpc_client.C,h gui_rpc_client.C,h
David 19 Oct 2004
- Add <link> to RSS export so Firefox users can bookmark RSS feed
html/user/
sample_rss_main.php

View File

@ -34,32 +34,42 @@ $description = "BOINC project ".PROJECT.": Main page News";
$channel_image = URL_BASE . "/rss_image.jpg"; $channel_image = URL_BASE . "/rss_image.jpg";
$create_date = gmdate('D, d M Y H:i:s') . ' GMT'; $create_date = gmdate('D, d M Y H:i:s') . ' GMT';
$language = "en-us"; $language = "en-us";
echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>\n" echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>
."<rss version=\"2.0\">\n<channel>\n <title>" <rss version=\"2.0\">
.PROJECT."</title>\n <link>" <channel>
.MASTER_URL."</link>\n <description>" <title>".PROJECT."</title>
.$description."</description>\n <copyright>" <link>".URL_BASE."</link>
.COPYRIGHT_HOLDER."</copyright>\n <lastBuildDate>" <link rel='alternate' type='text/xml' title='".PROJECT." RSS 2.0' href='".URL_BASE."rss.php' />
.$create_date."</lastBuildDate>\n <language>" <description>".$description."</description>
.$language."</language>\n <image>\n <url>" <copyright>".COPYRIGHT_HOLDER."</copyright>
.$channel_image."</url>\n <title>" <lastBuildDate>".$create_date."</lastBuildDate>
.PROJECT."</title>\n <link>" <language>".$language."</language>
.MASTER_URL."</link>\n </image>\n"; <image>
<url>".$channel_image."</url>
<title>".PROJECT."</title>
<link>".URL_BASE."</link>
</image>
";
// - Create news items // - Create news items
// //
$news = min( count($project_news), $news); $news = min( count($project_news), $news);
for( $item=0; $item < $news; $item++ ) { for( $item=0; $item < $news; $item++ ) {
if( count($project_news[$item]) == 2) { if( count($project_news[$item]) == 2) {
echo " <item>\n <title>Project News " echo "<item>
.strip_tags($project_news[$item][0])."</title>\n <link>" <title>Project News ".strip_tags($project_news[$item][0])."</title>
.MASTER_URL."</link>\n <description>" <link>".URL_BASE."</link>
.strip_tags($project_news[$item][1])."</description>\n </item>"; <description>".strip_tags($project_news[$item][1])."</description>
</item>
";
} }
} }
// Close XML content // Close XML content
// //
echo "</channel>\n</rss>"; echo "
</channel>
</rss>
";
?> ?>