summaryrefslogtreecommitdiff
path: root/public/app/views/js/credits.php
diff options
context:
space:
mode:
Diffstat (limited to 'public/app/views/js/credits.php')
-rw-r--r--public/app/views/js/credits.php26
1 files changed, 25 insertions, 1 deletions
diff --git a/public/app/views/js/credits.php b/public/app/views/js/credits.php
index ca0f15c..5dd3fe6 100644
--- a/public/app/views/js/credits.php
+++ b/public/app/views/js/credits.php
@@ -5,6 +5,30 @@ ic_div.innerHTML = '<a href="<?=THEME['url']?>" target="_blank" title="Attributi
ic_div.className = 'image-credits';
// append image-credits div to body
-document.querySelector('body').appendChild(ic_div);
+document.querySelector('body').appendChild(ic_div);
+
+// make sure...
+// the user agrees with cookie-policy on his device
+let cookieExp = 3600*24*200; // cookie expiration (200 days)
+if (!cookieExists('operational') || (readCookie('operational') == 'no')) {
+ let confirm_cookies = confirm([
+ 'Ο ιστότοπος χρησιμοποιεί cookies τα οποία έχουν αποκλειστικά λειτουργικό ρόλο.',
+ ' ',
+ 'Ειδικότερα:',
+ '– ένα Session cookie που εγγυάται την ασφάλεια της σύνδεσής σας',
+ '– ένα Http-only cookie που διατηρεί κωδικοποιημένη την κατάσταση της σύνδεσής σας μετά την είσοδό σας στο σύστημα, και',
+ '– ένα cookie που εξετάζει αν έχετε αποδεχθεί τη χρήση αυτών των cookies.',
+ ' ',
+ 'Και τα 3 αυτά cookies είναι Secure, Same-site, Non-Tracking cookies.',
+ ' ',
+ 'Συμφωνείτε με τη διατήρηση αυτών των cookies;'
+ ].join('\n'))
+ if (!confirm_cookies) {
+ window.location.href = 'https://en.wikipedia.org/wiki/HTTP_cookie';
+
+ } else {
+ createCookie('operational', 'yes', cookieExp);
+ }
+}
</script> \ No newline at end of file