protected function _checkFiles() { $serverVersion = $this->getVersionFromApi(); $path = realpath($this->pathData . 'date.txt'); // Check if the file exists and the path is valid // if ($path !== false && str_starts_with($path, realpath($this->pathData)) && file_exists($path)) { if ($path !== false && (strpos($path, realpath($this->pathData)) === 0) && file_exists($path)) { $currentVersion = Tools::file_get_contents($path); } else { // Handle the error, e.g., log or set a default value $currentVersion = 'File not found or invalid path!'; } $filesError = false; if (!file_exists($this->pathDb1)) { $this->_errors[] = $this->trans('File IP2LOCATION-LITE-DB1.BIN is missing in ' . $this->pathData); $filesError = true; } if (!file_exists($this->pathDb1V6)) { $this->_errors[] = $this->trans('File IP2LOCATION-LITE-DB1.IPV6.BIN is missing in ' . $this->pathData); $filesError = true; } if (!file_exists($this->pathData . 'date.txt')) { $this->_errors[] = $this->trans('File date.txt is missing in ' . $this->pathData); $filesError = true; } else { if ($serverVersion != null && $currentVersion != $serverVersion) { $errorMsg = 'Need to update your files, your version is : '; $errorMsg .= $currentVersion . ' Server version is : ' . $serverVersion; $this->_errors[] = $this->trans($errorMsg); $filesError = true; } } if ($filesError) { $errorMsg = 'Please download this 3 files and move them to this path : ' . $this->pathData; $this->_errors[] = $this->trans($errorMsg); $this->_errors[] = $this->trans('1 - https://blockips.stefdevelopment.com/datas/IP2LOCATION-LITE-DB1.BIN'); $this->_errors[] = $this->trans('2 - https://blockips.stefdevelopment.com/datas/IP2LOCATION-LITE-DB1.IPV6.BIN'); $this->_errors[] = $this->trans('3 - https://blockips.stefdevelopment.com/datas/date.txt'); } } Bracelets femme (15)
Bracelets femme

Bracelets femme