Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions inc/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
}
if (!$_SERVER['HTTPS']) { ?> <a rel="nofollow" href="https://lcwo.net/">Click to switch to a secure connection (https).</a> <? }

if ($_SESSION['consent'] == "0") {
if ((!array_key_exists('consent', $_SESSION)) || $_SESSION['consent'] == "0") {
?>
Please be aware of LCWO's <a href="/privacy">privacy policy</a> to comply with the <a href="https://en.wikipedia.org/wiki/General_Data_Protection_Regulation">GDPR</a>.

Expand All @@ -123,7 +123,7 @@ function agree_policy () {
var i = document.getElementById("consent");
i.innerHTML = "Thanks!";
var request = new XMLHttpRequest();
request.open("GET", "//lcwo.net/api/consent.php", true);
request.open("GET", "/api/consent.php", true);
request.send();
}
</script>