diff --git a/bridges/MalikiBridge.php b/bridges/MalikiBridge.php index 29e4cfa..de87120 100644 --- a/bridges/MalikiBridge.php +++ b/bridges/MalikiBridge.php @@ -1,16 +1,16 @@ maintainer = "mitsukarenai"; + $this->name = "Maliki"; + $this->uri = "http://www.maliki.com/"; + $this->description = "Returns Maliki's newest strips"; + $this->update = "2014-05-30"; + + } + public function collectData(array $param){ $html = file_get_html('http://www.maliki.com/') or $this->returnError('Could not request Maliki.', 404); $count=0; diff --git a/bridges/MemoLinuxBridge.php b/bridges/MemoLinuxBridge.php index 7da5ba0..02d7ac7 100644 --- a/bridges/MemoLinuxBridge.php +++ b/bridges/MemoLinuxBridge.php @@ -1,13 +1,16 @@ maintainer = "qwertygc"; + $this->name = "MemoLinux"; + $this->uri = "http://memo-linux.com/"; + $this->description = "Returns the 10 newest posts from MemoLinux (full text)"; + $this->update = "2015-01-30"; + + } + public function collectData(array $param){ function StripCDATA($string) { diff --git a/bridges/MondeDiploBridge.php b/bridges/MondeDiploBridge.php index 2077205..3774be8 100644 --- a/bridges/MondeDiploBridge.php +++ b/bridges/MondeDiploBridge.php @@ -1,18 +1,16 @@ maintainer = "Pitchoule"; + $this->name = "MondeDiplo"; + $this->uri = "http://www.monde-diplomatique.fr"; + $this->description = "Returns most recent results from MondeDiplo."; + $this->update = "2014-07-22"; + + } + public function collectData(array $param){ $link = 'http://www.monde-diplomatique.fr'; diff --git a/bridges/MsnMondeBridge.php b/bridges/MsnMondeBridge.php index 0d2e471..1a63da6 100644 --- a/bridges/MsnMondeBridge.php +++ b/bridges/MsnMondeBridge.php @@ -1,16 +1,16 @@ maintainer = "kranack"; + $this->name = "MSN Actu Monde"; + $this->uri = "http://www.msn.com/fr-fr/actualite/monde"; + $this->description = "Returns the 10 newest posts from MSN Actualités (full text)"; + $this->update = "2015-01-30"; + + } + public function collectData(array $param){ function MsnMondeExtractContent($url, &$item) { diff --git a/bridges/NasaApodBridge.php b/bridges/NasaApodBridge.php index f3f7620..63c8c93 100644 --- a/bridges/NasaApodBridge.php +++ b/bridges/NasaApodBridge.php @@ -1,13 +1,16 @@ maintainer = "corenting"; + $this->name = "NASA APOD Bridge"; + $this->uri = "http://apod.nasa.gov/apod/astropix.html"; + $this->description = "Returns the 3 latest NASA APOD pictures and explanations"; + $this->update = "2014-08-27"; + + } + public function collectData(array $param) { $html = file_get_html('http://apod.nasa.gov/apod/archivepix.html') or $this->returnError('Error while downloading the website content', 404); diff --git a/bridges/NextInpactBridge.php b/bridges/NextInpactBridge.php index c070038..107f3e7 100644 --- a/bridges/NextInpactBridge.php +++ b/bridges/NextInpactBridge.php @@ -1,17 +1,16 @@ maintainer = "qwertygc"; + $this->name = "NextInpact Bridge"; + $this->uri = "http://www.nextinpact.com/"; + $this->description = "Returns the newest articles."; + $this->update = "2015-10-23"; + + } + public function collectData(array $param) { function StripCDATA($string) { diff --git a/bridges/NiceMatinBridge.php b/bridges/NiceMatinBridge.php index 7c0441a..bbfe4d8 100644 --- a/bridges/NiceMatinBridge.php +++ b/bridges/NiceMatinBridge.php @@ -1,16 +1,16 @@ maintainer = "pit-fgfjiudghdf"; + $this->name = "NiceMatin"; + $this->uri = "http://www.nicematin.com/"; + $this->description = "Returns the 10 newest posts from NiceMatin (full text)"; + $this->update = "2014-05-26"; + + } + public function collectData(array $param){ function NiceMatinUrl($string) { diff --git a/bridges/NumeramaBridge.php b/bridges/NumeramaBridge.php index cc7e2f2..f1958a4 100644 --- a/bridges/NumeramaBridge.php +++ b/bridges/NumeramaBridge.php @@ -1,16 +1,16 @@ maintainer = "mitsukarenai"; + $this->name = "Numerama"; + $this->uri = "http://www.numerama.com/"; + $this->description = "Returns the 5 newest posts from Numerama (full text)"; + $this->update = "2015-10-12"; + + } + public function collectData(array $param){ function NumeramaStripCDATA($string) { diff --git a/bridges/OpenTheoryBridge.php b/bridges/OpenTheoryBridge.php index 9117d37..ebafa33 100644 --- a/bridges/OpenTheoryBridge.php +++ b/bridges/OpenTheoryBridge.php @@ -1,18 +1,15 @@ 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){ diff --git a/bridges/PlanetLibreBridge.php b/bridges/PlanetLibreBridge.php index 5ada535..6cb92e4 100644 --- a/bridges/PlanetLibreBridge.php +++ b/bridges/PlanetLibreBridge.php @@ -1,15 +1,16 @@ maintainer = "pit-fgfjiudghdf"; + $this->name = "PlanetLibre"; + $this->uri = "http://www.planet-libre.org"; + $this->description = "Returns the 5 newest posts from PlanetLibre (full text)"; + $this->update = "2014-05-26"; + + } + public function collectData(array $param){ function PlanetLibreExtractContent($url) { diff --git a/bridges/ProjectMGameBridge.php b/bridges/ProjectMGameBridge.php index e8dc05c..a318041 100644 --- a/bridges/ProjectMGameBridge.php +++ b/bridges/ProjectMGameBridge.php @@ -1,13 +1,17 @@ maintainer = "corenting"; + $this->name = "Project M Game Bridge"; + $this->uri = "http://projectmgame.com/en/"; + $this->description = "Returns the newest articles."; + $this->update = "2014-08-27"; + + } + + public function collectData(array $param){ $html = ''; $html = file_get_html('http://projectmgame.com/en/') or $this->returnError('Error while downloading the Project M homepage', 404); diff --git a/bridges/TwitchApiBridge.php b/bridges/TwitchApiBridge.php index cedb749..aec4a9c 100644 --- a/bridges/TwitchApiBridge.php +++ b/bridges/TwitchApiBridge.php @@ -15,8 +15,8 @@ * Description for the API is available on GitHub: https://github.com/justintv/twitch-api */ -define(TWITCH_LIMIT, 10); // The default limit -define(TWITCH_BROADCASTS, 'false'); // The default flag for broadcasts +define('TWITCH_LIMIT', 10); // The default limit +define('TWITCH_BROADCASTS', 'false'); // The default flag for broadcasts class TwitchApiBridge extends BridgeAbstract{