diff --git a/core/core.php b/core/core.php index 00a7ca2f..9956ceb8 100755 --- a/core/core.php +++ b/core/core.php @@ -36,7 +36,7 @@ class common { const THUMBS_WIDTH = 640; // Numéro de version - const ZWII_VERSION = '10.0.072'; + const ZWII_VERSION = '10.0.073'; const ZWII_UPDATE_CHANNEL = "v10"; public static $actions = []; diff --git a/core/module/config/config.php b/core/module/config/config.php index 2afc60a9..f4a7cacd 100755 --- a/core/module/config/config.php +++ b/core/module/config/config.php @@ -245,7 +245,7 @@ class config extends common { $site = helper::baseUrl(false); } $success= false; - $googlePagespeedData = @file_get_contents('https://www.googleapis.com/pagespeedonline/v2/runPagespeed?url='. $site .'&screenshot=true'); + $googlePagespeedData = helper::urlGetContents('https://www.googleapis.com/pagespeedonline/v2/runPagespeed?url='. $site .'&screenshot=true'); if ($googlePagespeedData !== false) { $googlePagespeedData = json_decode($googlePagespeedData, true); $screenshot = $googlePagespeedData['screenshot']['data']; diff --git a/core/module/install/install.php b/core/module/install/install.php index ab5b4ecb..55083c70 100755 --- a/core/module/install/install.php +++ b/core/module/install/install.php @@ -148,7 +148,7 @@ class install extends common { // Téléchargement case 2: // Téléchargement depuis le serveur de Zwii - $success = (file_put_contents(self::TEMP_DIR.'update.tar.gz', file_get_contents('https://zwiicms.com/update/' . common::ZWII_UPDATE_CHANNEL . '/update.tar.gz')) !== false); + $success = (file_put_contents(self::TEMP_DIR.'update.tar.gz', helper::urlGetContents('https://zwiicms.com/update/' . common::ZWII_UPDATE_CHANNEL . '/update.tar.gz')) !== false); // Valeurs en sortie $this->addOutput([ 'display' => self::DISPLAY_JSON, @@ -227,7 +227,7 @@ class install extends common { */ public function update() { // Nouvelle version - self::$newVersion = file_get_contents('http://zwiicms.com/update/' . common::ZWII_UPDATE_CHANNEL . '/version'); + self::$newVersion = helper::urlGetContents('http://zwiicms.com/update/' . common::ZWII_UPDATE_CHANNEL . '/version'); // Valeurs en sortie $this->addOutput([ 'display' => self::DISPLAY_LAYOUT_LIGHT, diff --git a/site/file/thumb/screenshot.png b/site/file/thumb/screenshot.png deleted file mode 100755 index b409100d..00000000 Binary files a/site/file/thumb/screenshot.png and /dev/null differ