From 8fca61635a0e3a9ad2b4578f915be8bfac21a459 Mon Sep 17 00:00:00 2001 From: quenousimporte Date: Mon, 3 Jun 2024 17:08:34 +0200 Subject: [PATCH] mp setting in file --- mediapart.php | 8 ++++---- settings.php.sample | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/mediapart.php b/mediapart.php index afc4520..4026707 100644 --- a/mediapart.php +++ b/mediapart.php @@ -3,12 +3,12 @@ '; + $mp_sessionid = $_POST['mpsessid']; + echo 'Using ' . $mp_sessionid . '
'; } /*ini_set('display_errors', '1'); @@ -20,7 +20,7 @@ $feedurl = 'https://www.mediapart.fr/articles/feed'; $opts = [ 'http' => [ 'method' => "GET", - 'header' => "Accept-language: en\nCookie: MPSESSID=" . $sessionid, + 'header' => "Accept-language: en\nCookie: MPSESSID=" . $mp_sessionid, ] ]; $context = stream_context_create($opts); diff --git a/settings.php.sample b/settings.php.sample index 0c466b2..655d666 100644 --- a/settings.php.sample +++ b/settings.php.sample @@ -1,4 +1,5 @@ \ No newline at end of file