summaryrefslogtreecommitdiff
path: root/src/application/actions/settheme/post.php
blob: 06669f0712b3000aaeff991c1084034165ec77c0 (plain)
1
2
3
4
5
6
<?php

$theme = $_POST["theme"] ?? exit(msg_error("Missing required field 'theme'") ?? 1);
$next = $_POST["next"] ?? ".";
setcookie("theme", $theme, time()+60*60*24*30);
header("Location: $next");