A few small improvements and fixes

This commit is contained in:
Wruczek
2018-12-27 19:51:27 +01:00
parent 628af52b54
commit 14e41b1900
6 changed files with 35 additions and 48 deletions

View File

@ -2,7 +2,8 @@
if(!defined("__TSWEBSITE_VERSION")) die("Direct access not allowed");
if(!empty($_POST["allow-metrics-checkbox"])) {
setcookie("tsw_allow_metrics", "true", PHP_INT_MAX);
// set a 7 day cookie that tells us later to send the metrics
setcookie("tsw_allow_metrics", "true", time() + (86400 * 7));
}
?>