1 2 3 4 5 6 7 8 9 10 11 12 13
<?php $next = $_GET["next"] ?? null; $view = $_GET["view"] ?? null; if ($view === "m") setcookie("mv", "1", time()+60*60*24*90); elseif ($view === "d") setcookie("mv", "0", time()+60*60*24*90); else setcookie("mv", "", time()-3600); header("Location: $next");