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.

This commit is contained in:
azett 2020-10-24 21:04:24 +02:00
parent c2accdedcc
commit b70603049f

View File

@ -143,18 +143,11 @@ function comment_validate() {
$arr ['version'] = system_ver(); $arr ['version'] = system_ver();
$arr ['name'] = $name; $arr ['name'] = $name;
if (!$loggedin)
setcookie('comment_author_' . COOKIEHASH, $arr ['name'], time() + 30000000, COOKIEPATH, COOKIE_DOMAIN);
if ($email) { if ($email) {
($arr ['email'] = $email); ($arr ['email'] = $email);
if (!$loggedin)
setcookie('comment_author_email_' . COOKIEHASH, $arr ['email'], time() + 30000000, COOKIEPATH, COOKIE_DOMAIN);
} }
if ($url) { if ($url) {
($arr ['url'] = ($url)); ($arr ['url'] = ($url));
if (!$loggedin)
setcookie('comment_author_url_' . COOKIEHASH, $arr ['url'], time() + 30000000, COOKIEPATH, COOKIE_DOMAIN);
} }
$arr ['content'] = $content; $arr ['content'] = $content;
@ -241,13 +234,6 @@ function commentform() {
$smarty->assign('values', $_POST); $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]
));
} }
?> ?>