check for a cookie before showing cookie reminder
parent
e68ca58616
commit
ac830a0471
|
@ -1,5 +1,9 @@
|
||||||
<?php
|
<?php
|
||||||
if (!$login){
|
if (!isset($_COOKIE['threadr_cookie_banner']))
|
||||||
echo "<div class='banner'><p class='beige'>We neeeeed Cookies. They taste sooo good. *crunch*</p><p class='beige'>Seriously, this site is in development. You should not be here. If you want to stay anyways, you will have to accept our cookies.</p></div>";
|
if (!$login){
|
||||||
|
echo "<div class='banner'><p class='beige'>We neeeeed Cookies. They taste sooo good. *crunch*</p><p class='beige'>Seriously, this site is in development. You should not be here. If you want to stay anyways, you will have to accept our cookies.</p><a href='%CONTENT_DIR%/accept_cookie.php?from=" . urlencode($_SERVER['REQUEST_URI']) . "'><button> OK </button></a></div>";
|
||||||
|
} else {
|
||||||
|
// assume that the user knows our cookie/privacy policy, force set cookie in this case
|
||||||
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
Loading…
Reference in New Issue