diff options
| author | George Halkiadakis <gchalkiadakis@sklavenitis.co.gr> | 2023-06-12 01:12:30 +0300 |
|---|---|---|
| committer | George Halkiadakis <gchalkiadakis@sklavenitis.co.gr> | 2023-06-12 01:12:30 +0300 |
| commit | 5375e22de976b74f5f04d800014c30d9c66f0fe5 (patch) | |
| tree | 3f9d79b898c4bbb392c2a4ec5ec65c0fde5c6f01 /public/app/views/js/credits.php | |
| parent | 0b0076b2ece062f248b7c048d6bb28abbe9174a5 (diff) | |
| download | gyraf1gov-5375e22de976b74f5f04d800014c30d9c66f0fe5.tar.gz gyraf1gov-5375e22de976b74f5f04d800014c30d9c66f0fe5.tar.bz2 gyraf1gov-5375e22de976b74f5f04d800014c30d9c66f0fe5.zip | |
official Reliese Candidate; themes added; routes organized; fine tuning
Diffstat (limited to 'public/app/views/js/credits.php')
| -rw-r--r-- | public/app/views/js/credits.php | 26 |
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 |
