mp setting in file
This commit is contained in:
parent
22409766ad
commit
8fca61635a
|
@ -3,12 +3,12 @@
|
|||
|
||||
<?php
|
||||
|
||||
$sessionid = 'value of cookie MPSESSID';
|
||||
require('settings.php');
|
||||
|
||||
if (isset($_POST['mpsessid']) && $_POST['mpsessid'])
|
||||
{
|
||||
$sessionid = $_POST['mpsessid'];
|
||||
echo 'Using ' . $sessionid . '<br>';
|
||||
$mp_sessionid = $_POST['mpsessid'];
|
||||
echo 'Using ' . $mp_sessionid . '<br>';
|
||||
}
|
||||
|
||||
/*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);
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
<?php
|
||||
$lm_includeimages = false;
|
||||
$lm_includecover = false;
|
||||
$mp_sessionid = '';
|
||||
?>
|
Loading…
Reference in New Issue