This commit is contained in:
quenousimporte 2024-06-03 17:29:30 +02:00
parent 30c808889b
commit 62383911cb
1 changed files with 7 additions and 6 deletions

View File

@ -4,14 +4,14 @@
<?php <?php
require 'settings.php'; require 'settings.php';
require 'TPEpubCreator.php';
$url = '';
$date = (new DateTime('today'))->format('Ymd'); $date = (new DateTime('today'))->format('Ymd');
if (isset($_POST['url']))
{
require('TPEpubCreator.php');
$url = $_POST['url']; // Le Monde
if (isset($_POST['lemonde']) && $_POST['lemonde'])
{
$url = $_POST['lmurl'];
// extract url from curl command // extract url from curl command
if (str_starts_with($url, 'curl ')) if (str_starts_with($url, 'curl '))
@ -123,7 +123,8 @@
?> ?>
<form method="post"> <form method="post">
GetPublicationContentItems url: <input name="url" value="<?php echo $url; ?>"><br> <input input name="lemonde" type="checkbox"> Le Monde<br>
GetPublicationContentItems url: <input name="lmurl"><br>
<input type="submit"> <input type="submit">
</form> </form>
</body> </body>