diff --git a/.htaccess b/.htaccess index 7c933e06..5b415e20 100644 --- a/.htaccess +++ b/.htaccess @@ -24,9 +24,6 @@ AddOutputFilterByType DEFLATE application/x-javascript -# Cache le PHPSESSID de l'url // Désormais géré par index.php -# SetEnv SESSION_USE_TRANS_SID 0 - # Bloque l'accès à la liste des fichiers Options -Indexes diff --git a/CHANGES.md b/CHANGES.md index 7ab321b5..76ef162c 100755 --- a/CHANGES.md +++ b/CHANGES.md @@ -4,6 +4,15 @@ ### Modifications - Désormais, les URL internes seront relatives, cela signifie qu'elles ne contiendront plus le domaine et le chemin d'accès au site. Cela permettra le déplacement d'un site d'un hébergement à un autre, d'un dossier d'hébergement à un autre, sans avoir à convertir les adresses internes. Les données d'un site mis à jour et importées d'une version antérieures sont automatiquement converties. En conséquence, le bloc de conversion de la fenêtre d'import est supprimé. - Réorganisation massive des modules afin d'éviter de faire cohabiter des formulaires avec des champs d'information. + +## Version 11.2.05 +- Corrections : + - Configuration / localisation : Les champs de cookies ne devraient pas être obligatoires lorsque la case à cocher de consentement des cookies n'est pas sélectionnée. + - Disparition de l'icône de gestion du compte pour le profil éditeur. + +## Version 11.2.04 +- Correction : + - Affiche une notification de mise à jour si la numérotation de la version en ligne est supérieure à celle installée. ## Version 11.2.03 - Corrections : diff --git a/LICENSE b/LICENSE index 30ace6a8..af43b008 100755 --- a/LICENSE +++ b/LICENSE @@ -1,3 +1,4 @@ + GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 diff --git a/core/core.js.php b/core/core.js.php index c400b0e8..e97e0bf7 100644 --- a/core/core.js.php +++ b/core/core.js.php @@ -212,12 +212,11 @@ core.start = function() { */ $("#cookieForm").submit(function(event){ - // Varables des cookies - var samesite = "samesite=lax"; + // Variables des cookies var getUrl = window.location; - var domain = "domain=" + getUrl.host; - var path = "path=" + getUrl.pathname.split('/')[1]; - var samesite = "samesite=lax"; + var domain = "domain=" + getUrl.host + ";"; + var path = "path=" + getUrl.pathname.split('/')[1] + ";"; + var e = new Date(); e.setFullYear(e.getFullYear() + 1); var expires = "expires=" + e.toUTCString(); @@ -226,18 +225,18 @@ core.start = function() { var analytics = "getData(['config', 'seo', 'analyticsId']);?>"; // l'Id GA est défini dans la configuration, afficher la checkbox d'acceptation if( analytics.length > 0){ - // Traitement du retour de la checkbox + // Traitement du retour de la checkbox if ($("#googleAnalytics").is(":checked")) { // L'URL du serveur faut TRUE - document.cookie = "ZWII_COOKIE_GA_CONSENT=true;" + domain + ";" + path + ";" + samesite + ";" + expires; + + document.cookie = "ZWII_COOKIE_GA_CONSENT=true;samesite=strict;" + domain + path + expires; } else { - document.cookie = "ZWII_COOKIE_GA_CONSENT=false;" + domain + ";" + path + ";" + samesite + ";" + expires; + document.cookie = "ZWII_COOKIE_GA_CONSENT=false;samesite=strict;" + domain + path + expires; } } - // Stocke le cookie d'acceptation - document.cookie = "ZWII_COOKIE_CONSENT=true;" + domain + ";" + path + ";" + samesite + ";" + expires; + document.cookie = "ZWII_COOKIE_CONSENT=true;samesite=strict;" + domain + path + expires; }); diff --git a/core/core.php b/core/core.php index 95349f5b..782cbbb9 100644 --- a/core/core.php +++ b/core/core.php @@ -2042,7 +2042,7 @@ class common { } $rightItems .= '
  • ' . template::ico('cog-alt') . '
  • '; $rightItems .= '
  • ' . template::ico('users') . '
  • '; - $rightItems .= '
  • ' . template::ico('user', 'right') . '' . $this->getUser('firstname') . ' ' . $this->getUser('lastname') . '
  • '; + // Mise à jour automatique $today = mktime(0, 0, 0); // Une mise à jour est disponible + recherche auto activée + 1 jour de délais @@ -2059,6 +2059,9 @@ class common { $rightItems .= '
  • ' . template::ico('update colorRed') . '
  • '; } } + if($this->getUser('group') >= self::GROUP_MODERATOR) { + $rightItems .= '
  • ' . template::ico('user', 'right') . '' . $this->getUser('firstname') . ' ' . $this->getUser('lastname') . '
  • '; + } $rightItems .= '
  • ' . template::ico('logout') . '
  • '; // Barre de membre echo '
    '; diff --git a/core/module/config/config.php b/core/module/config/config.php index 4b10d9fe..dbba1e29 100644 --- a/core/module/config/config.php +++ b/core/module/config/config.php @@ -461,13 +461,13 @@ class config extends common { 'title' => $this->getInput('localeTitle', helper::FILTER_STRING_SHORT, true), 'cookies' => [ // Les champs sont obligatoires si l'option consentement des cookies est active - 'mainLabel' => $this->getInput('localeCookiesZwiiText', helper::FILTER_STRING_LONG, $this->getData(['config', 'cookieConsent'])), - 'gaLabel' => $this->getInput('localeCookiesGaText', helper::FILTER_STRING_LONG, $this->getData(['config', 'cookieConsent'])), - 'titleLabel' => $this->getInput('localeCookiesTitleText', helper::FILTER_STRING_SHORT, $this->getData(['config', 'cookieConsent'])), - 'linkLegalLabel' => $this->getInput('localeCookiesLinkMlText', helper::FILTER_STRING_SHORT, $this->getData(['config', 'cookieConsent'])), - 'checkboxGaLabel' => $this->getInput('localeCookiesCheckboxGaText', helper::FILTER_STRING_SHORT, $this->getData(['config', 'cookieConsent'])), - 'cookiesFooterText' => $this->getInput('localeCookiesFooterText', helper::FILTER_STRING_SHORT, $this->getData(['config', 'cookieConsent'])), - 'buttonValidLabel' =>$this->getInput('localeCookiesButtonText', helper::FILTER_STRING_SHORT, $this->getData(['config', 'cookieConsent'])) + 'mainLabel' => $this->getInput('localeCookiesZwiiText', helper::FILTER_STRING_LONG, $this->getData(['config', 'cookieConsent', helper::FILTER_BOOLEAN])), + 'gaLabel' => $this->getInput('localeCookiesGaText', helper::FILTER_STRING_LONG, $this->getData(['config', 'cookieConsent', helper::FILTER_BOOLEAN])), + 'titleLabel' => $this->getInput('localeCookiesTitleText', helper::FILTER_STRING_SHORT, $this->getData(['config', 'cookieConsent', helper::FILTER_BOOLEAN])), + 'linkLegalLabel' => $this->getInput('localeCookiesLinkMlText', helper::FILTER_STRING_SHORT, $this->getData(['config', 'cookieConsent', helper::FILTER_BOOLEAN])), + 'checkboxGaLabel' => $this->getInput('localeCookiesCheckboxGaText', helper::FILTER_STRING_SHORT, $this->getData(['config', 'cookieConsent', helper::FILTER_BOOLEAN])), + 'cookiesFooterText' => $this->getInput('localeCookiesFooterText', helper::FILTER_STRING_SHORT, $this->getData(['config', 'cookieConsent', helper::FILTER_BOOLEAN])), + 'buttonValidLabel' =>$this->getInput('localeCookiesButtonText', helper::FILTER_STRING_SHORT, $this->getData(['config', 'cookieConsent', helper::FILTER_BOOLEAN])) ] ] ]);