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