From b70603049fa8cbd0883a016e29e8493fe7b69472 Mon Sep 17 00:00:00 2001 From: azett Date: Sat, 24 Oct 2020 21:04:24 +0200 Subject: [PATCH] Data of commenters are not stored in cookies any more. Con: Regular commenters have to enter their data for each comment. Pro: No more cookie-related hassle with GDPR. --- comments.php | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/comments.php b/comments.php index ae7dcd8..ec49d39 100644 --- a/comments.php +++ b/comments.php @@ -143,18 +143,11 @@ function comment_validate() { $arr ['version'] = system_ver(); $arr ['name'] = $name; - if (!$loggedin) - setcookie('comment_author_' . COOKIEHASH, $arr ['name'], time() + 30000000, COOKIEPATH, COOKIE_DOMAIN); - if ($email) { ($arr ['email'] = $email); - if (!$loggedin) - setcookie('comment_author_email_' . COOKIEHASH, $arr ['email'], time() + 30000000, COOKIEPATH, COOKIE_DOMAIN); } if ($url) { ($arr ['url'] = ($url)); - if (!$loggedin) - setcookie('comment_author_url_' . COOKIEHASH, $arr ['url'], time() + 30000000, COOKIEPATH, COOKIE_DOMAIN); } $arr ['content'] = $content; @@ -241,13 +234,6 @@ function commentform() { $smarty->assign('values', $_POST); } } - - // Cookies - $smarty->assign('cookie', array( - 'name' => @$_COOKIE ['comment_author_' . COOKIEHASH], - 'email' => @$_COOKIE ['comment_author_email_' . COOKIEHASH], - 'url' => @$_COOKIE ['comment_author_url_' . COOKIEHASH] - )); } ?>