add quick scenario for mediapart home page

This commit is contained in:
quenousimporte 2024-09-25 21:41:09 +02:00
parent 753180b7c7
commit 49950d948b
1 changed files with 11 additions and 0 deletions

View File

@ -7,6 +7,10 @@
<link rel="icon" type="image/png" href="1F4F0_color.png" /></head> <link rel="icon" type="image/png" href="1F4F0_color.png" /></head>
<body> <body>
<div>
Quick link: <a href="epub.php?mp">All Mediapart home page with renewed authent</a>
</div>
<?php <?php
require 'settings.php'; require 'settings.php';
@ -185,6 +189,13 @@
return json_decode($json); return json_decode($json);
} }
// quick scenario
if (isset($_GET['mp']))
{
$_POST['forcempcookies'] = 1;
$_POST['mphome'] = 1;
}
date_default_timezone_set('Europe/Paris'); date_default_timezone_set('Europe/Paris');
$today = (new DateTime('today'))->format('Ymd'); $today = (new DateTime('today'))->format('Ymd');