From 5c87a74d7be2f2b0e3dbcc909a8ae424cd3f5b99 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Tue, 20 Jun 2023 20:35:26 +0200 Subject: [PATCH] Message Action interdite --- core/module/page/page.php | 4 ++-- core/module/plugin/plugin.php | 12 ++++++------ core/module/theme/theme.php | 2 +- core/module/translate/translate.php | 10 +++++----- core/module/user/user.php | 2 +- module/blog/blog.php | 10 +++++----- module/form/form.php | 6 +++--- module/gallery/gallery.php | 10 +++++----- module/news/news.php | 4 ++-- 9 files changed, 30 insertions(+), 30 deletions(-) diff --git a/core/module/page/page.php b/core/module/page/page.php index f9f81e4d..a4e12f45 100644 --- a/core/module/page/page.php +++ b/core/module/page/page.php @@ -79,7 +79,7 @@ class page extends common $this->addOutput([ 'access' => false ]); - } // Jeton incorrect + } // Action interdite elseif ($this->checkCSRF()) { // Valeurs en sortie $this->addOutput([ @@ -187,7 +187,7 @@ class page extends common $this->addOutput([ 'access' => false ]); - } // Jeton incorrect + } // Action interdite elseif ($this->checkCSRF()) { // Valeurs en sortie $this->addOutput([ diff --git a/core/module/plugin/plugin.php b/core/module/plugin/plugin.php index 0b840067..04cd8b1a 100644 --- a/core/module/plugin/plugin.php +++ b/core/module/plugin/plugin.php @@ -62,7 +62,7 @@ class plugin extends common public function delete() { - // Jeton incorrect + // Action interdite if ($this->checkCSRF()) { // Valeurs en sortie $this->addOutput([ @@ -291,7 +291,7 @@ class plugin extends common */ public function uploadItem() { - // Jeton incorrect + // Action interdite if ($this->checkCSRF()) { // Valeurs en sortie $this->addOutput([ @@ -571,7 +571,7 @@ class plugin extends common */ public function save() { - // Jeton incorrect + // Action interdite if ($this->checkCSRF()) { // Valeurs en sortie $this->addOutput([ @@ -645,7 +645,7 @@ class plugin extends common */ public function dataDelete() { - // Jeton incorrect + // Action interdite if ($this->checkCSRF()) { // Valeurs en sortie $this->addOutput([ @@ -676,7 +676,7 @@ class plugin extends common */ public function dataExport() { - // Jeton incorrect + // Action interdite if ($this->checkCSRF()) { // Valeurs en sortie $this->addOutput([ @@ -817,7 +817,7 @@ class plugin extends common } // Bouton d'importation des données d'un module spécifique if (count(explode('/', $this->getUrl())) === 6) { - // Jeton incorrect + // Action interdite if ($this->checkCSRF()) { // Valeurs en sortie $this->addOutput([ diff --git a/core/module/theme/theme.php b/core/module/theme/theme.php index 4843345a..079c923e 100644 --- a/core/module/theme/theme.php +++ b/core/module/theme/theme.php @@ -774,7 +774,7 @@ class theme extends common */ public function fontDelete() { - // Jeton incorrect + // Action interdite if ($this->checkCSRF()) { // Valeurs en sortie $this->addOutput([ diff --git a/core/module/translate/translate.php b/core/module/translate/translate.php index 8225b10e..7b96a6e3 100644 --- a/core/module/translate/translate.php +++ b/core/module/translate/translate.php @@ -67,7 +67,7 @@ class translate extends common public function update() { $lang = $this->getUrl(2); - // Jeton incorrect ou URl avec le code langue incorrecte + // Action interdite ou URl avec le code langue incorrecte if ( array_key_exists($lang, self::$languages) === false ) { @@ -342,7 +342,7 @@ class translate extends common */ public function locale() { - // Jeton incorrect ou URl avec le code langue incorrecte + // Action interdite ou URl avec le code langue incorrecte $lang = $this->getUrl(2); if ( array_key_exists($lang, self::$languages) === false @@ -447,7 +447,7 @@ class translate extends common public function edit() { $lang = $this->getUrl(2); - // Jeton incorrect ou URl avec le code langue incorrecte + // Action interdite ou URl avec le code langue incorrecte if ( array_key_exists($lang, self::$languages) === false ) { @@ -536,7 +536,7 @@ class translate extends common */ public function delete() { - // Jeton incorrect ou URl avec le code langue incorrecte + // Action interdite ou URl avec le code langue incorrecte $target = $this->getUrl(2); $lang = $this->getUrl(3); if ( @@ -591,7 +591,7 @@ class translate extends common */ public function default() { - // Jeton incorrect ou URl avec le code langue incorrecte + // Action interdite ou URl avec le code langue incorrecte $lang = $this->getUrl(2); if ( array_key_exists($lang, self::$languages) === false diff --git a/core/module/user/user.php b/core/module/user/user.php index 4b5ab500..e6675c83 100644 --- a/core/module/user/user.php +++ b/core/module/user/user.php @@ -193,7 +193,7 @@ class user extends common 'access' => false ]); } - // Jeton incorrect + // Action interdite elseif ( $this->checkCSRF() ) { diff --git a/module/blog/blog.php b/module/blog/blog.php index 1bf2ad36..27144584 100755 --- a/module/blog/blog.php +++ b/module/blog/blog.php @@ -378,7 +378,7 @@ class blog extends common 'access' => false ]); } - // Jeton incorrect + // Action interdite elseif ($this->checkCSRF()) { // Valeurs en sortie $this->addOutput([ @@ -403,7 +403,7 @@ class blog extends common */ public function commentDeleteAll() { - // Jeton incorrect + // Action interdite if ($this->checkCSRF()) { // Valeurs en sortie $this->addOutput([ @@ -435,7 +435,7 @@ class blog extends common 'access' => false ]); } - // Jeton incorrect + // Action interdite elseif ($this->checkCSRF()) { // Valeurs en sortie $this->addOutput([ @@ -600,7 +600,7 @@ class blog extends common 'access' => false ]); } - // Jeton incorrect + // Action interdite elseif ($this->checkCSRF()) { // Valeurs en sortie $this->addOutput([ @@ -625,7 +625,7 @@ class blog extends common */ public function edit() { - // Jeton incorrect + // Action interdite if ($this->checkCSRF()) { // Valeurs en sortie $this->addOutput([ diff --git a/module/form/form.php b/module/form/form.php index bb8bdbce..f21994cb 100644 --- a/module/form/form.php +++ b/module/form/form.php @@ -266,7 +266,7 @@ class form extends common */ public function export2csv() { - // Jeton incorrect + // Action interdite if ($this->checkCSRF()) { // Valeurs en sortie $this->addOutput([ @@ -307,7 +307,7 @@ class form extends common */ public function deleteall() { - // Jeton incorrect + // Action interdite if ($this->checkCSRF()) { // Valeurs en sortie $this->addOutput([ @@ -343,7 +343,7 @@ class form extends common */ public function delete() { - // Jeton incorrect + // Action interdite if ( $this->getUser('permission', 'form', 'delete') === false || $this->checkCSRF()) { diff --git a/module/gallery/gallery.php b/module/gallery/gallery.php index 3eff52cb..53288aa6 100644 --- a/module/gallery/gallery.php +++ b/module/gallery/gallery.php @@ -507,7 +507,7 @@ class gallery extends common 'access' => false ]); } - // Jeton incorrect + // Action interdite if ($this->checkCSRF()) { // Valeurs en sortie $this->addOutput([ @@ -544,7 +544,7 @@ class gallery extends common */ public function edit() { - // Jeton incorrect + // Action interdite if ($this->checkCSRF()) { // Valeurs en sortie $this->addOutput([ @@ -854,7 +854,7 @@ class gallery extends common */ public function theme() { - // Jeton incorrect + // Action interdite if ($this->checkCSRF()) { // Valeurs en sortie $this->addOutput([ @@ -935,7 +935,7 @@ class gallery extends common * Options applicables à toutes les galeries du module */ if ($this->getUrl(2) === 'galleries') { - // Jeton incorrect + // Action interdite if ($this->checkCSRF()) { // Valeurs en sortie $this->addOutput([ @@ -976,7 +976,7 @@ class gallery extends common * Enregistre les options de configuration de la galerie d'images sélectionnée */ } elseif ($this->getUrl(2) === 'gallery') { - // Jeton incorrect + // Action interdite if ($this->checkCSRF()) { // Valeurs en sortie $this->addOutput([ diff --git a/module/news/news.php b/module/news/news.php index 23996b3b..eb970abf 100644 --- a/module/news/news.php +++ b/module/news/news.php @@ -372,7 +372,7 @@ class news extends common 'access' => false ]); } - // Jeton incorrect + // Action interdite elseif ($this->checkCSRF()) { // Valeurs en sortie $this->addOutput([ @@ -397,7 +397,7 @@ class news extends common */ public function edit() { - // Jeton incorrect + // Action interdite if ($this->checkCSRF()) { // Valeurs en sortie $this->addOutput([