Compare commits
No commits in common. "cb59059a2b5c44ed56563a254f9807a52a860c13" and "21daa9e42698724517fa3cb3e85fbf18b621bd09" have entirely different histories.
cb59059a2b
...
21daa9e426
18
epub.php
18
epub.php
|
@ -660,10 +660,6 @@
|
|||
<br>
|
||||
<input id="forcempcookies" name="forcempcookies" type="checkbox">
|
||||
<label for="forcempcookies">Force cookies</label>
|
||||
<br>
|
||||
<input id="mptoday" name="mptoday" type="checkbox" disabled>
|
||||
<label for="mptoday">Today only</label>
|
||||
<br>
|
||||
|
||||
<br><br>
|
||||
|
||||
|
@ -687,18 +683,6 @@
|
|||
</div>
|
||||
<br>
|
||||
<a href="../epub">Fichiers générés</a><br>
|
||||
<a href="../">Revue de presse</a><br>
|
||||
<br>
|
||||
<b>Mediapart RSS summary</b>
|
||||
<br>
|
||||
<?php
|
||||
$mprss = file_get_contents('https://www.mediapart.fr/articles/feed', false, $context);
|
||||
$xml = new SimpleXMLElement($mprss);
|
||||
$items = $xml->xpath("/rss/channel/item");
|
||||
foreach ($items as $item)
|
||||
{
|
||||
echo '<div><a href="'.$item->link.'">'.$item->pubDate. ' '.$item->title.'</a></div>';
|
||||
}
|
||||
?>
|
||||
<a href="../">Revue de presse</a>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue