mp setting in file

This commit is contained in:
quenousimporte 2024-06-03 17:08:34 +02:00
parent 22409766ad
commit 8fca61635a
2 changed files with 5 additions and 4 deletions

View File

@ -3,12 +3,12 @@
<?php <?php
$sessionid = 'value of cookie MPSESSID'; require('settings.php');
if (isset($_POST['mpsessid']) && $_POST['mpsessid']) if (isset($_POST['mpsessid']) && $_POST['mpsessid'])
{ {
$sessionid = $_POST['mpsessid']; $mp_sessionid = $_POST['mpsessid'];
echo 'Using ' . $sessionid . '<br>'; echo 'Using ' . $mp_sessionid . '<br>';
} }
/*ini_set('display_errors', '1'); /*ini_set('display_errors', '1');
@ -20,7 +20,7 @@ $feedurl = 'https://www.mediapart.fr/articles/feed';
$opts = [ $opts = [
'http' => [ 'http' => [
'method' => "GET", 'method' => "GET",
'header' => "Accept-language: en\nCookie: MPSESSID=" . $sessionid, 'header' => "Accept-language: en\nCookie: MPSESSID=" . $mp_sessionid,
] ]
]; ];
$context = stream_context_create($opts); $context = stream_context_create($opts);

View File

@ -1,4 +1,5 @@
<?php <?php
$lm_includeimages = false; $lm_includeimages = false;
$lm_includecover = false; $lm_includecover = false;
$mp_sessionid = '';
?> ?>