From 15c4d1edd37710cde388f7795f87226aeb0c4876 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Fri, 5 Apr 2024 16:51:03 +0200 Subject: [PATCH] =?UTF-8?q?annule=20secureFilePutContents=20dans=20les=20m?= =?UTF-8?q?odules.=20Non=20justifi=C3=A9=20dans=20la=20configuration=20du?= =?UTF-8?q?=20module?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/gallery/gallery.php | 4 ++-- module/news/news.php | 4 ++-- module/search/search.php | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/module/gallery/gallery.php b/module/gallery/gallery.php index 77f6086..b1559ce 100644 --- a/module/gallery/gallery.php +++ b/module/gallery/gallery.php @@ -260,7 +260,7 @@ class gallery extends common $content = str_replace('#legendBgColor#', $this->getData(['module', $this->getUrl(0), 'theme', 'legendBgColor']), $content); // Ecriture de la feuille de style - $this->secureFilePutContents(self::DATADIRECTORY . $this->getUrl(0) . '/theme.css', $content . $themeCss); + file_put_contents(self::DATADIRECTORY . $this->getUrl(0) . '/theme.css', $content . $themeCss); // Nom de la feuille de style $this->setData(['module', $this->getUrl(0), 'theme', 'style', $fileCSS]); } @@ -894,7 +894,7 @@ class gallery extends common $content = str_replace('#legendHeight#', $this->getinput('galleryThemeLegendHeight'), $content); $content = str_replace('#legendTextColor#', $this->getinput('galleryThemeLegendTextColor'), $content); $content = str_replace('#legendBgColor#', $this->getinput('galleryThemeLegendBgColor'), $content); - $success = is_int($this->secureFilePutContents(self::DATADIRECTORY . $this->getUrl(0) . '/theme.css', $content . $themeCss)); + $success = is_int(file_put_contents(self::DATADIRECTORY . $this->getUrl(0) . '/theme.css', $content . $themeCss)); // Valeurs en sortie $this->addOutput([ 'redirect' => helper::baseUrl() . $this->getUrl() . '/theme', diff --git a/module/news/news.php b/module/news/news.php index e4c284d..0d2c6ea 100644 --- a/module/news/news.php +++ b/module/news/news.php @@ -281,7 +281,7 @@ class news extends common mkdir(self::DATADIRECTORY . $this->getUrl(0) . '/theme.css', 0755, true); } - $success = is_int($this->secureFilePutContents(self::DATADIRECTORY . $this->getUrl(0) . '/theme.css', $style)); + $success = is_int(file_put_contents(self::DATADIRECTORY . $this->getUrl(0) . '/theme.css', $style)); // Fin feuille de style @@ -643,7 +643,7 @@ class news extends common $style .= '}'; // Sauver la feuille de style - $this->secureFilePutContents(self::DATADIRECTORY . $this->getUrl(0) . '/theme.css', $style); + file_put_contents(self::DATADIRECTORY . $this->getUrl(0) . '/theme.css', $style); // Stocker le nom de la feuille de style $this->setData(['module', $this->getUrl(0), 'theme', 'style', self::DATADIRECTORY . $this->getUrl(0) . '/theme.css']); } diff --git a/module/search/search.php b/module/search/search.php index 91a1af7..7d9842d 100644 --- a/module/search/search.php +++ b/module/search/search.php @@ -106,7 +106,7 @@ class search extends common // Générer la feuille de CSS $style = '.keywordColor {background: ' . $this->getData(['module', $this->getUrl(0), 'theme', 'keywordColor']) . ';}'; // Sauver la feuille de style - $this->secureFilePutContents(self::DATADIRECTORY . $this->getUrl(0) . '/theme.css', $style); + file_put_contents(self::DATADIRECTORY . $this->getUrl(0) . '/theme.css', $style); // Stocker le nom de la feuille de style $this->setData(['module', $this->getUrl(0), 'theme', 'style', $fileCSS]); } @@ -128,7 +128,7 @@ class search extends common // Générer la feuille de CSS $style = '.keywordColor {background:' . $this->getInput('searchKeywordColor') . ';}'; - $success = is_int($this->secureFilePutContents(self::DATADIRECTORY . $this->getUrl(0) . '/theme.css', $style)); + $success = is_int(file_put_contents(self::DATADIRECTORY . $this->getUrl(0) . '/theme.css', $style)); // Fin feuille de style // Soumission du formulaire