Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Guindon2015-10-07 15:06:52 +0000
committerChristopher Guindon2015-10-07 15:06:52 +0000
commit41c7c4a4ee19b641cae120d0f492ad4b7dcd5943 (patch)
treed5f8ffe8bb77d102e27e91d3fa115821b6c75355
parentb354b507f0b7045ab82f62dc324d0aa964c4730a (diff)
downloadcommunity-41c7c4a4ee19b641cae120d0f492ad4b7dcd5943.tar.gz
community-41c7c4a4ee19b641cae120d0f492ad4b7dcd5943.tar.xz
community-41c7c4a4ee19b641cae120d0f492ad4b7dcd5943.zip
Bug 416953 - Community News RSS Feeds needs love
Remove /community/labs Signed-off-by: Christopher Guindon <chris.guindon@eclipse.org>
-rw-r--r--labs/.htaccess1
-rw-r--r--labs/eclipselabs.rss97
2 files changed, 0 insertions, 98 deletions
diff --git a/labs/.htaccess b/labs/.htaccess
deleted file mode 100644
index 30868be69..000000000
--- a/labs/.htaccess
+++ /dev/null
@@ -1 +0,0 @@
-AddType application/x-httpd-php .rss \ No newline at end of file
diff --git a/labs/eclipselabs.rss b/labs/eclipselabs.rss
deleted file mode 100644
index e2bc9871e..000000000
--- a/labs/eclipselabs.rss
+++ /dev/null
@@ -1,97 +0,0 @@
-<?php require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/app.class.php"); require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/nav.class.php"); require_once($_SERVER['DOCUMENT_ROOT'] . "/eclipse.org-common/system/menu.class.php"); $App = new App(); $Nav = new Nav(); $Menu = new Menu(); include($App->getProjectCommon()); # All on the same line to unclutter the user's desktop'
-
- #*****************************************************************************
- #
- # eclipselabs.php
- #
- # Author: Nathan Gervais
- # Date: 2010-07-23
- #
- # Description: This page generates a weekly update to an RSS feed for Planet Eclipse
- #
- #
- #****************************************************************************
-
- #
- # Begin: page-specific settings. Change these.
- $pageTitle = "Eclipse Labs Feed";
- $pageKeywords = "eclipse, labs feed";
- $pageAuthor = "Nathan Gervais";
-
-
- require_once($_SERVER['DOCUMENT_ROOT']. '/home/scripts/labs.php');
-
- $labsFeed = $_SERVER['DOCUMENT_ROOT']. '/updated.rss';
- $labsFeed = '/home/data/httpd/writable/community/labs/updated.rss';
- $rss = simplexml_load_file($labsFeed);
- $date = strtotime('last thursday 11:59pm EST');
- $dateWeek = date("F jS Y", $date);
- $html = "<?xml version='1.0' encoding='UTF-8'?>";
- ob_start(); ?>
-<rss version="2.0">
- <channel>
- <title>Updates From Eclipse Labs</title>
- <link>http://code.google.com/a/eclipselabs.org/hosting/</link>
- <description>A feed of the most active project listings per week</description>
- <image>
- <url>http://www.gstatic.com/codesite/ph/images/eclipselabs.png</url>
- <title>Eclipse labs</title>
- <link>http://code.google.com/a/eclipselabs.org/hosting/</link>
- </image>
- <item>
- <title><![CDATA[Eclipse Labs Projects Update for the week of <?php print $dateWeek;?>]]></title>
- <link>http://code.google.com/a/eclipselabs.org/hosting/</link>
- <description><![CDATA[<h2>Most Active Projects</h2>
-<?php
- $count = 10;
- try {
- foreach ($rss->entry as $entry) {
- $inc++;
- if ($inc > $count) { break; }
- $now = strtotime("now");
- $then = strtotime($entry->updated);
- $title = str_replace('eclipselabs.org ', '', $entry->title);
- ?>
- <a href="http://code.google.com/a/eclipselabs.org/p/<?php print $title;?>"><?php print $title;?></a> - <?php print $entry->summary;?><br/>
-<?php
- }
- }
- catch (Exception $e){
- echo '<!-- Error in NewsFeed - $file_name - '. $e->getMessage() . " -->";
- }
- ?>
- <br/><br/>
-<?php /* <h2>New Projects</h2>
-
- $labsFeed = '/home/data/httpd/writable/community/labs/new.rss';
- $rss = simplexml_load_file($labsFeed);
- $count = 7;
- $inc =0;
- try {
- foreach ($rss->entry as $entry) {
- $inc++;
- if ($inc > $count) { break; }
- $now = strtotime("now");
- $then = strtotime($entry->updated);
- $title = str_replace('eclipselabs.org ', '', $entry->title);
- ?>
- <a href="http://code.google.com/a/eclipselabs.org/p/<?php print $title;?>"><?php print $title;?></a> - <?php print $entry->summary;?><br/>
-<?php
- }
- }
- catch (Exception $e){
- echo '<!-- Error in NewsFeed - $file_name - '. $e->getMessage() . " -->";
- }
- */?>
- ]]></description>
- <pubDate><?php print date("M j, Y G:i:s A \E\S\T", $date);?></pubDate>
- </item>
- </channel>
-</rss>
- <? $html .= ob_get_clean();
-
-
-
- # Generate the web page
- echo $html;
-?> \ No newline at end of file

Back to the top