From 62383911cb9a1b8677b2b97d85033a0b3db1ae8a Mon Sep 17 00:00:00 2001 From: quenousimporte Date: Mon, 3 Jun 2024 17:29:30 +0200 Subject: [PATCH] refactor --- lemonde.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/lemonde.php b/lemonde.php index 3483bf3..aa9df19 100644 --- a/lemonde.php +++ b/lemonde.php @@ -4,14 +4,14 @@ 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 if (str_starts_with($url, 'curl ')) @@ -123,7 +123,8 @@ ?>
- GetPublicationContentItems url:
+ Le Monde
+ GetPublicationContentItems url: