getSimpleHTMLDOM('http://memo-linux.com/feed/') or $this->returnError('Could not request MemoLinux.', 404);
- $limit = 0;
-
- foreach($html->find('item') as $element) {
- if($limit < 10) {
- $item = new \Item();
- $item->title = StripCDATA($element->find('title', 0)->innertext);
- $item->uri = StripCDATA($element->find('guid', 0)->plaintext);
- $item->timestamp = strtotime($element->find('pubDate', 0)->plaintext);
- $item->content = ExtractContent($item->uri);
- $this->items[] = $item;
- $limit++;
- }
- }
- }
-
- public function getName(){
- return 'MemoLinux';
- }
-
- public function getURI(){
- return 'http://memo-linux.com/feed/';
- }
-
- public function getCacheDuration(){
- return 3600*12; // 12 hours
- }
-}
diff --git a/bridges/OpenTheoryBridge.php b/bridges/OpenTheoryBridge.php
deleted file mode 100644
index cccfaf36..00000000
--- a/bridges/OpenTheoryBridge.php
+++ /dev/null
@@ -1,56 +0,0 @@
-maintainer = "qwertygc";
- $this->name = "Opentheory";
- $this->uri = "http://open1theory.com";
- $this->description = "Returns the 5 newest posts from OpenTheory (full text)";
- $this->update = "02-08-2014";
-
- }
-
- public function collectData(array $param){
-
- function StripCDATA($string) {
- $string = str_replace('', '', $string);
- return $string;
- }
- function ExtractContent($url) {
- $html2 = $this->getSimpleHTMLDOM($url);
- $text = $html2->find('div.entry-content', 0)->innertext;
- $text = preg_replace('@@si', '', $text);
- return $text;
- }
- $html = $this->getSimpleHTMLDOM('http://open1theory.com/feed') or $this->returnError('Could not request OpenTheory.', 404);
- $limit = 0;
-
- foreach($html->find('item') as $element) {
- if($limit < 5) {
- $item = new \Item();
- $item->title = StripCDATA($element->find('title', 0)->innertext);
- $item->uri = StripCDATA($element->find('guid', 0)->plaintext);
- $item->timestamp = strtotime($element->find('pubDate', 0)->plaintext);
- $item->content = ExtractContent($item->uri);
- $this->items[] = $item;
- $limit++;
- }
- }
-
- }
-
- public function getName(){
- return 'OpenTheory';
- }
-
- public function getURI(){
- return 'http://open1theory.com/feed';
- }
-
- public function getCacheDuration(){
- return 3600; // 1 hour
- // return 0; // 1 hour
- }
-}
diff --git a/bridges/RaymondBridge.php b/bridges/RaymondBridge.php
deleted file mode 100644
index d2550520..00000000
--- a/bridges/RaymondBridge.php
+++ /dev/null
@@ -1,53 +0,0 @@
-maintainer = "pit-fgfjiudghdf";
- $this->name = "Raymond";
- $this->uri = "http://www.raymond.cc";
- $this->description = "Returns the 3 newest posts from Raymond.cc (full text)";
- $this->update = "2014-05-26";
-
- }
-
- public function collectData(array $param){
- function raymondStripCDATA($string) {
- $string = str_replace('', '', $string);
- return $string;
- }
- function raymondExtractContent($url) {
- $html2 = $this->getSimpleHTMLDOM($url);
- $text = $html2->find('div.entry-content', 0)->innertext;
- $text = preg_replace('/class="ad".*/', '', $text);
- $text = strip_tags($text, '');
- $text = str_replace('(adsbygoogle = window.adsbygoogle || []).push({});', '', $text);
- return $text;
- }
- $html = $this->getSimpleHTMLDOM('http://www.raymond.cc/blog/feed') or $this->returnError('Could not request raymond.', 404);
- $limit = 0;
- foreach($html->find('item') as $element) {
- if($limit < 3) {
- $item = new \Item();
- $item->title = raymondStripCDATA($element->find('title', 0)->innertext);
- $item->uri = raymondStripCDATA($element->find('guid', 0)->plaintext);
- $item->timestamp = strtotime($element->find('pubDate', 0)->plaintext);
- $item->content = raymondExtractContent($item->uri);
- $this->items[] = $item;
- $limit++;
- }
- }
-
- }
- public function getName(){
- return 'raymond';
- }
- public function getURI(){
- return 'http://www.raymond.cc/blog';
- }
- public function getCacheDuration(){
- return 3600*12; // 12 hour
- }
-}
-
diff --git a/bridges/ScilogsBridge.php b/bridges/ScilogsBridge.php
deleted file mode 100644
index 7186be41..00000000
--- a/bridges/ScilogsBridge.php
+++ /dev/null
@@ -1,54 +0,0 @@
-maintainer = "qwertygc";
- $this->name = "Scilogs Bridge";
- $this->uri = "http://www.scilogs.fr/";
- $this->description = "Returns the newest articles.";
- $this->update = "2014-05-25";
-
- }
-
- public function collectData(array $param){
-
- function ScilogsStripCDATA($string) {
- $string = str_replace('', '', $string);
- return $string;
- }
- function ScilogsExtractContent($url) {
- $html2 = $this->getSimpleHTMLDOM($url);
- $text = $html2->find('div.entrybody', 0)->innertext;
- return $text;
- }
- $html = $this->getSimpleHTMLDOM('http://www.scilogs.fr/?wpmu-feed=posts') or $this->returnError('Could not request Scilogs.', 404);
- $limit = 0;
-
- foreach($html->find('item') as $element) {
- if($limit < 10) {
- $item = new \Item();
- $item->title = ScilogsStripCDATA($element->find('title', 0)->innertext);
- $item->uri = ScilogsStripCDATA($element->find('guid', 0)->plaintext);
- $item->timestamp = strtotime($element->find('pubDate', 0)->plaintext);
- $item->content = ScilogsExtractContent($item->uri);
- $this->items[] = $item;
- $limit++;
- }
- }
-
- }
-
- public function getName(){
- return 'Scilogs Bridge';
- }
-
- public function getURI(){
- return 'http://scilogs.fr/';
- }
-
- public function getCacheDuration(){
- return 3600*2; // 2 hours
- }
-}
diff --git a/bridges/SegfaultMintBridge.php b/bridges/SegfaultMintBridge.php
deleted file mode 100644
index b2ede5d0..00000000
--- a/bridges/SegfaultMintBridge.php
+++ /dev/null
@@ -1,55 +0,0 @@
-maintainer = "qwertygc";
- $this->name = "SegfaultMint";
- $this->uri = "http://segfault.linuxmint.com/";
- $this->description = "Returns the 5 newest posts from SegfaultMint (full text)";
- $this->update = "2014-07-05";
-
- }
-
- public function collectData(array $param){
-
- function StripCDATA($string) {
- $string = str_replace('', '', $string);
- return $string;
- }
- function ExtractContent($url) {
- $html2 = $this->getSimpleHTMLDOM($url);
- $text = $html2->find('div.post-bodycopy', 0)->innertext;
- $text = preg_replace('@@si', '', $text);
- return $text;
- }
- $html = $this->getSimpleHTMLDOM('http://segfault.linuxmint.com/feed/') or $this->returnError('Could not request segfault.', 404);
- $limit = 0;
-
- foreach($html->find('item') as $element) {
- if($limit < 5) {
- $item = new \Item();
- $item->title = StripCDATA($element->find('title', 0)->innertext);
- $item->uri = StripCDATA($element->find('guid', 0)->plaintext);
- $item->timestamp = strtotime($element->find('pubDate', 0)->plaintext);
- $item->content = ExtractContent($item->uri);
- $this->items[] = $item;
- $limit++;
- }
- }
-
- }
-
- public function getName(){
- return 'Segfault Mint';
- }
-
- public function getURI(){
- return 'http://segfault.linuxmint.com/feed/';
- }
-
- public function getCacheDuration(){
- return 3600*24; // 24 hours
- }
-}
diff --git a/bridges/TuxboardBridge.php b/bridges/TuxboardBridge.php
deleted file mode 100644
index 301e9b63..00000000
--- a/bridges/TuxboardBridge.php
+++ /dev/null
@@ -1,64 +0,0 @@
-maintainer = "superbaillot.net";
- $this->name = "Tuxboard";
- $this->uri = "http://www.tuxboard.com/";
- $this->description = "Tuxboard";
- $this->update = "2014-07-08";
-
- }
-
- public function collectData(array $param){
-
- function StripCDATA($string) {
- $string = str_replace('', '', $string);
- return $string;
- }
-
- function ExtractContent($url) {
- $html2 = $this->getSimpleHTMLDOM($url);
- $text = $html2->find('article#page', 0)->innertext;
- $text = preg_replace('@@si', '', $text);
- return $text;
- }
-
- $html = $this->getSimpleHTMLDOM('http://www.tuxboard.com/feed/atom/') or $this->returnError('Could not request Tuxboard.', 404);
- $limit = 0;
-
- foreach($html->find('entry') as $element) {
- if($limit < 10) {
- $item = new \Item();
- $item->title = StripCDATA($element->find('title', 0)->innertext);
- $item->uri = $element->find('link', 0)->href;
- $item->timestamp = strtotime($element->find('published', 0)->plaintext);
- $item->content = ExtractContent($item->uri);
- $this->items[] = $item;
- $limit++;
- }
- }
-
-
-
- }
-
- public function getName(){
- return 'Tuxboard';
- }
-
- public function getURI(){
- return 'http://www.tuxboard.com';
- }
-
- public function getDescription(){
- return 'Tuxboard via rss-bridge';
- }
-
- public function getCacheDuration(){
- return 3600; // 1 hour
- }
-}
-?>
diff --git a/bridges/WikipediaDEBridge.php b/bridges/WikipediaDEBridge.php
deleted file mode 100644
index 9ccd0ca8..00000000
--- a/bridges/WikipediaDEBridge.php
+++ /dev/null
@@ -1,48 +0,0 @@
-maintainer = "cnlpete";
- $this->name = "Wikipedia DE Today's Featured Article...";
- $this->uri = "https://de.wikipedia.org/";
- $this->description = "Returns the highlighted en.wikipedia.org article.";
- $this->update = "2015-11-04";
-
- }
-
- public function collectData(array $param){
- $html = '';
- $host = 'http://de.wikipedia.org';
- // If you want HTTPS access instead, uncomment the following line:
- //$host = 'https://de.wikipedia.org';
- $link = '/wiki/Wikipedia:Hauptseite';
-
- $html = $this->getSimpleHTMLDOM($host.$link) or $this->returnError('Could not request Wikipedia DE.', 404);
-
- $element = $html->find('div[id=mf-tfa]', 0);
- $element->find('div', -1)->outertext = '';
-
- $item = new \Item();
- $item->uri = $host.$element->find('p', 0)->find('a', 0)->href;
- $item->title = $element->find('p',0)->find('a',0)->title;
-
- $html2 = $this->getSimpleHTMLDOM($item->uri) or $this->returnError('Could not request Wikipedia DE '.$item->title.'.', 404);
- $element2 = $html2->find('div[id=mw-content-text]', 0);
- $item->content = str_replace('href="/', 'href="'.$host.'/', $element2->innertext);
-
- $this->items[] = $item;
- }
-
- public function getName(){
- return 'Wikipedia DE "Today\'s Featured Article"';
- }
-
- public function getURI(){
- return 'https://de.wikipedia.org/wiki/Wikipedia:Hauptseite';
- }
-
- public function getCacheDuration(){
- return 3600*8; // 8 hours
- }
-}
diff --git a/bridges/WikipediaENBridge.php b/bridges/WikipediaENBridge.php
deleted file mode 100644
index ac8ab296..00000000
--- a/bridges/WikipediaENBridge.php
+++ /dev/null
@@ -1,44 +0,0 @@
-maintainer = "gsurrel";
- $this->name = "Wikipedia EN 'Today's Featured Article...'";
- $this->uri = "https://en.wikipedia.org/";
- $this->description = "Returns the highlighted en.wikipedia.org article.";
- $this->update = "2014-05-25";
-
- }
-
- public function collectData(array $param){
- $html = '';
- $host = 'http://en.wikipedia.org';
- // If you want HTTPS access instead, uncomment the following line:
- //$host = 'https://en.wikipedia.org';
- $link = '/wiki/Main_Page';
-
- $html = $this->getSimpleHTMLDOM($host.$link) or $this->returnError('Could not request Wikipedia EN.', 404);
-
- $element = $html->find('div[id=mp-tfa]', 0);
- // Clean the bottom of the featured article
- $element->find('div', -1)->outertext = '';
- $item = new \Item();
- $item->uri = $host.$element->find('p', 0)->find('a', 0)->href;
- $item->title = $element->find('p',0)->find('a',0)->title;
- $item->content = str_replace('href="/', 'href="'.$host.'/', $element->innertext);
- $this->items[] = $item;
- }
-
- public function getName(){
- return 'Wikipedia EN "Today\'s Featued Article"';
- }
-
- public function getURI(){
- return 'https://en.wikipedia.org/wiki/Main_Page';
- }
-
- public function getCacheDuration(){
- return 3600*4; // 4 hours
- }
-}
diff --git a/bridges/WikipediaEOBridge.php b/bridges/WikipediaEOBridge.php
deleted file mode 100644
index a90c5032..00000000
--- a/bridges/WikipediaEOBridge.php
+++ /dev/null
@@ -1,44 +0,0 @@
-maintainer = "gsurrel";
- $this->name = "Wikipedia EO 'Artikolo de la semajno'";
- $this->uri = "https://eo.wikipedia.org/";
- $this->description = "Returns the highlighted eo.wikipedia.org article.";
- $this->update = "2014-05-25";
-
- }
-
- public function collectData(array $param){
- $html = '';
- $host = 'http://eo.wikipedia.org';
- // If you want HTTPS access instead, uncomment the following line:
- //$host = 'https://eo.wikipedia.org';
- $link = '/wiki/Vikipedio:%C4%88efpa%C4%9Do';
-
- $html = $this->getSimpleHTMLDOM($host.$link) or $this->returnError('Could not request Wikipedia EO.', 404);
-
- $element = $html->find('div[id=mf-tfa]', 0);
- // Link to article
- $link = $element->find('p', -2)->find('a', 0);
- $item = new \Item();
- $item->uri = $host.$link->href;
- $item->title = $link->title;
- $item->content = str_replace('href="/', 'href="'.$host.'/', $element->innertext);
- $this->items[] = $item;
- }
-
- public function getName(){
- return 'Wikipedia EO "Artikolo de la semajno"';
- }
-
- public function getURI(){
- return 'https://eo.wikipedia.org/wiki/Vikipedio:%C4%88efpa%C4%9Do';
- }
-
- public function getCacheDuration(){
- return 3600*12; // 12 hours
- }
-}
diff --git a/bridges/WikipediaFRBridge.php b/bridges/WikipediaFRBridge.php
deleted file mode 100644
index 8ee65cda..00000000
--- a/bridges/WikipediaFRBridge.php
+++ /dev/null
@@ -1,46 +0,0 @@
-maintainer = "gsurrel";
- $this->name = "Wikipedia FR 'Lumière sur...'";
- $this->uri = "https://fr.wikipedia.org/";
- $this->description = "Returns the highlighted fr.wikipedia.org article.";
- $this->update = "2016-06-04";
-
- }
-
- public function collectData(array $param){
- $html = '';
- $host = 'http://fr.wikipedia.org';
- // If you want HTTPS access instead, uncomment the following line:
- //$host = 'https://fr.wikipedia.org';
- $link = '/wiki/Wikip%C3%A9dia:Accueil_principal';
-
- $html = $this->getSimpleHTMLDOM($host.$link) or $this->returnError('Could not request Wikipedia FR.', 404);
-
- $element = $html->find('div[id=mf-lumieresur]', 0);
- # Use the "Lire la suite" link to dependably get the title of the article
- # usually it's a child of a li.BA element (Bon article)
- # occasionally it's a li.AdQ (Article de qualité)
- $lirelasuite_link = $element->find('.BA > i > a, .AdQ > i > a', 0);
- $item = new \Item();
- $item->uri = $host.$lirelasuite_link->href;
- $item->title = $lirelasuite_link->title;
- $item->content = str_replace('href="/', 'href="'.$host.'/', $element->innertext);
- $this->items[] = $item;
- }
-
- public function getName(){
- return 'Wikipedia FR "Lumière sur..."';
- }
-
- public function getURI(){
- return 'https://fr.wikipedia.org/wiki/Wikip%C3%A9dia:Accueil_principal';
- }
-
- public function getCacheDuration(){
- return 3600*4; // 4 hours
- }
-}