parent
e9ac279542
commit
13da179c05
11
epub.php
11
epub.php
|
@ -375,8 +375,7 @@
|
|||
$epub = new TPEpubCreator();
|
||||
$epub->temp_folder = 'temp/';
|
||||
$epub->epub_file = 'epub/mediapart.epub';
|
||||
$epub->title = 'Mediapart RSS ' . $date;
|
||||
$epub->AddImage('https://www.mediapart.fr/icon-news-180x180.png', 'image/jpeg', true);
|
||||
$epub->title = 'Mediapart - RSS ' . $date;
|
||||
|
||||
// load feeds
|
||||
$feed = file_get_contents($feedurl);
|
||||
|
@ -406,8 +405,7 @@
|
|||
$epub = new TPEpubCreator();
|
||||
$epub->temp_folder = 'temp/';
|
||||
$epub->epub_file = 'epub/mediaparthome.epub';
|
||||
$epub->title = 'Mediapart A la une ' . $date;
|
||||
$epub->AddImage('https://www.mediapart.fr/icon-news-180x180.png', 'image/jpeg', true);
|
||||
$epub->title = 'Mediapart - A la une ' . $date;
|
||||
|
||||
$home = file_get_contents($homeurl, false, $context);
|
||||
$doc = new DOMDocument();
|
||||
|
@ -617,16 +615,17 @@
|
|||
<h2>Admin</h2>
|
||||
<input id="emptycache" name="emptycache" type="checkbox" checked>
|
||||
<label for="emptycache">Empty cache</label>
|
||||
<br><br>
|
||||
|
||||
<input type="submit">
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<h2>Links</h2>
|
||||
<h1>Links</h1>
|
||||
<a href="../epub">Fichiers générés</a><br>
|
||||
<a href="../">Revue de presse</a><br>
|
||||
|
||||
<h2>Mediapart RSS summary</h2>
|
||||
<h1>Mediapart RSS summary</h1>
|
||||
<?php
|
||||
$mprss = file_get_contents('https://www.mediapart.fr/articles/feed', false, $context);
|
||||
$xml = new SimpleXMLElement($mprss);
|
||||
|
|
|
@ -11,11 +11,11 @@
|
|||
<h1>Revue de presse</h1>
|
||||
<h2>Abonnements</h2>
|
||||
<ul>
|
||||
<li><a href="https://mediapart.fr">Mediapart</a></li>
|
||||
<li><a href="https://www.lemonde.fr/">Le Monde</a></li>
|
||||
<ul>
|
||||
<li><a href="https://journal.lemonde.fr/">Journal du jour</a></li>
|
||||
</ul>
|
||||
<li><a href="https://mediapart.fr">Mediapart</a></li>
|
||||
<li><a href="https://www.nytimes.com/international/">The New York Times</a></li>
|
||||
<ul>
|
||||
<li><a href="https://www.nytimes.com/section/todayspaper">Today’s Paper</a></li>
|
||||
|
|
Loading…
Reference in New Issue