summaryrefslogtreecommitdiffstats
path: root/website/new/feed.php
diff options
context:
space:
mode:
Diffstat (limited to 'website/new/feed.php')
-rwxr-xr-xwebsite/new/feed.php31
1 files changed, 31 insertions, 0 deletions
diff --git a/website/new/feed.php b/website/new/feed.php
new file mode 100755
index 00000000..a92f9857
--- /dev/null
+++ b/website/new/feed.php
@@ -0,0 +1,31 @@
+<div id="feed">
+<p>Below are the latest 3 message subjects from the <a href="https://www.redhat.com/mailman/listinfo/et-mgmt-tools">et-mgmt-tools list</a>:</p>
+<ul>
+<?php
+
+require_once('magpierss/rss_fetch.inc');
+
+$url = 'http://rss.gmane.org/gmane.linux.redhat.et-mgmt-tools';
+$rss = fetch_rss($url);
+
+ for ($i = 0; $i < 3; $i++)
+ {
+ $item_array = $rss->items;
+ $item = $item_array[$i];
+ $href = $item['link'];
+ $title = $item['title'];
+ $body = $item['description'];
+ $author = $item['dc']['creator'];
+ $raw_timestamp = $item['dc']['date'];
+ $unixtime = strtotime($raw_timestamp);
+ $timestamp = date('g:i A T j F Y', $unixtime);
+
+ echo "<li><a href=$href>$title</a></li>";
+ }
+
+
+?>
+</ul>
+<p>
+[ <a href="https://www.redhat.com/archives/et-mgmt-tools/">View More ...</a> ]</p>
+</div>