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