summaryrefslogtreecommitdiff
path: root/view.php
blob: d9ca226cbcb0f80f0f08994faffe51cf6f56795d (plain)
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");