mirror of https://github.com/BOINC/boinc.git
*** empty log message ***
svn path=/trunk/boinc/; revision=9162
This commit is contained in:
parent
f7c9f791a8
commit
a941a17019
|
@ -14872,3 +14872,17 @@ David 28 Dec 2005
|
||||||
|
|
||||||
client/
|
client/
|
||||||
client_state.C
|
client_state.C
|
||||||
|
|
||||||
|
David 29 Dec 2005
|
||||||
|
- add <guid> elements to RSS items and make the <link>s unique.
|
||||||
|
Apparently this is needed by some RSS readers.
|
||||||
|
|
||||||
|
NOTE: for this to take effect,
|
||||||
|
project will need to check out the following files,
|
||||||
|
then rename sample_rss_main.php to rss_main.php
|
||||||
|
|
||||||
|
html/
|
||||||
|
inc/
|
||||||
|
news.inc
|
||||||
|
user/
|
||||||
|
sample_rss_main.php
|
||||||
|
|
|
@ -58,7 +58,8 @@ for( $item=0; $item < $news; $item++ ) {
|
||||||
$d = strftime("%a, %d %b %Y", $d);
|
$d = strftime("%a, %d %b %Y", $d);
|
||||||
echo "<item>
|
echo "<item>
|
||||||
<title>Project News ".strip_tags($project_news[$item][0])."</title>
|
<title>Project News ".strip_tags($project_news[$item][0])."</title>
|
||||||
<link>http://boinc.berkeley.edu/</link>
|
<link>http://boinc.berkeley.edu/old_news.php#$item</link>
|
||||||
|
<guid>$item</guid>
|
||||||
<description>".strip_tags($project_news[$item][1])."</description>
|
<description>".strip_tags($project_news[$item][1])."</description>
|
||||||
<pubDate>$d</pubDate>
|
<pubDate>$d</pubDate>
|
||||||
</item>
|
</item>
|
||||||
|
|
|
@ -19,6 +19,7 @@ function show_news($items, $n) {
|
||||||
|
|
||||||
function show_old_news($items, $n) {
|
function show_old_news($items, $n) {
|
||||||
for ($i=$n; $i<count($items); $i++) {
|
for ($i=$n; $i<count($items); $i++) {
|
||||||
|
echo "<a name=$i>\n";
|
||||||
news_item($items[$i][0], $items[$i][1]);
|
news_item($items[$i][0], $items[$i][1]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -57,7 +57,8 @@ for( $item=0; $item < $news; $item++ ) {
|
||||||
$d = strftime("%a, %d %b %Y", $d);
|
$d = strftime("%a, %d %b %Y", $d);
|
||||||
echo "<item>
|
echo "<item>
|
||||||
<title>Project News ".strip_tags($project_news[$item][0])."</title>
|
<title>Project News ".strip_tags($project_news[$item][0])."</title>
|
||||||
<link>".URL_BASE."</link>
|
<link>".URL_BASE."old_news.php#$item</link>
|
||||||
|
<guid>$item</guid>
|
||||||
<description>".strip_tags($project_news[$item][1])."</description>
|
<description>".strip_tags($project_news[$item][1])."</description>
|
||||||
<pubDate>$d</pubDate>
|
<pubDate>$d</pubDate>
|
||||||
</item>
|
</item>
|
||||||
|
|
Loading…
Reference in New Issue