summaryrefslogtreecommitdiff
path: root/src/application/actions/setlang/post.php
blob: 7c3272ad85ebacc899ef1fe28e94dacea391038e (plain)
1
2
3
4
5
6
<?php

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