mp setting in file
This commit is contained in:
parent
22409766ad
commit
8fca61635a
|
@ -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);
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
$lm_includeimages = false;
|
$lm_includeimages = false;
|
||||||
$lm_includecover = false;
|
$lm_includecover = false;
|
||||||
|
$mp_sessionid = '';
|
||||||
?>
|
?>
|
Loading…
Reference in New Issue