You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
957 B

w<html>
<body>
<?php
include("news.php");
include ('RssParser.php');
include("gatewayNews.php");
include("gatewaySources.php");
include ("config.php");
$parser = new RssParser();
$gatewayNew = new gatewayNews($con);
$gatewaySource = new gatewaySources($con);
$listeSources = $gatewaySource->getSources();
foreach($listeSources as $source){
echo $source;
$resultFlux = $parser->getResultFlux($source);
foreach($resultFlux as $n){
$gateNews->addNews($n);
}
}
/*
$resultFlux = $parser->getResultFlux("https://www.lemonde.fr/sciences/rss_full.xml");
foreach($resultFlux as $n){
$gateNews->addNews($n);
echo $n->getTitle();
echo "</br>";
echo $n->getPubdate();
echo "</br>";
echo $n->getLink();
echo "</br>";
echo $n->getDescription();
echo "</br>";
echo "</br>";
}
*/
?>
</body>
</html>