nik_titik Опубликовано: января 25, 2022 Жалоба Поделиться Опубликовано: января 25, 2022 Добрый день. Скажите, можно ли php 7.4 поставить на опекнарт 2.3? Цитата Ссылка на комментарий Поделиться на других сайтах Больше вариантов поделиться...
Это популярное сообщение. BuslikDrev Опубликовано: января 26, 2022 Это популярное сообщение. Жалоба Поделиться Опубликовано: января 26, 2022 Нет. Только эта версия адаптирована: Скрытый текст <!-- ↓ АДАПТАЦИЯ СБОРКИ ПОД PHP7.0+ ↓ --> <file path="admin/controller/sale/order.php"> <operation error="skip"> <search> <![CDATA[$product_info['weight'] + $option_weight]]> </search> <add position="replace"> <![CDATA[$product_info['weight'] + (float)$option_weight]]> </add> </operation> </file> <file path="admin/model/extension/openbay/openbay.php"> <operation error="skip"> <search> <![CDATA[if (!function_exists('mcrypt_encrypt')) {]]> </search> <add position="replace"> <![CDATA[if (!function_exists('mcrypt_encrypt') && !function_exists('openssl_encrypt')) { $error[] = $this->language->get('error_openssl');]]> </add> </operation> </file> <file path="system/library/encryption.php"> <operation error="skip"> <search> <![CDATA[$this->key = hash('sha256', $key, true);]]> </search> <add position="replace"> <![CDATA[$this->key = $key;]]> </add> </operation> <operation error="skip"> <search> <![CDATA[return strtr(base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, hash('sha256', $this->key, true), $value, MCRYPT_MODE_ECB)), '+/=', '-_,');]]> </search> <add position="replace"> <![CDATA[if (version_compare(phpversion(), '7.1.0', '>') == true || !function_exists('mcrypt_encrypt')) { // для улучшения сюда: https://www.php.net/manual/ru/function.openssl-encrypt.php return strtr(base64_encode(openssl_encrypt($value, 'aes-128-cbc', hash('sha256', hex2bin($this->key), true), 0, hex2bin(substr(hash_hmac('sha256', $this->key, hash('sha256', $this->key, true)), 0, 32)))), '+/=', '-_,'); } else { return strtr(base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, hash('sha256', hash('sha256', $this->key, true), true), $value, MCRYPT_MODE_ECB)), '+/=', '-_,'); }]]> </add> </operation> <operation error="skip"> <search> <![CDATA[return trim(mcrypt_decrypt(MCRYPT_RIJNDAEL_256, hash('sha256', $this->key, true), base64_decode(strtr($value, '-_,', '+/=')), MCRYPT_MODE_ECB));]]> </search> <add position="replace"> <![CDATA[if (version_compare(phpversion(), '7.1.0', '>') == true || !function_exists('mcrypt_encrypt')) { // для улучшения сюда: https://www.php.net/manual/ru/function.openssl-encrypt.php return trim(openssl_decrypt(base64_decode(strtr($value, '-_,', '+/=')), 'aes-128-cbc', hash('sha256', hex2bin($this->key), true), 0, hex2bin(substr(hash_hmac('sha256', $this->key, hash('sha256', $this->key, true)), 0, 32)))); } else { return trim(mcrypt_decrypt(MCRYPT_RIJNDAEL_256, hash('sha256', hash('sha256', $this->key, true), true), base64_decode(strtr($value, '-_,', '+/=')), MCRYPT_MODE_ECB)); }]]> </add> </operation> </file> <!-- ↑ АДАПТАЦИЯ СБОРКИ ПОД PHP7.0+ ↑ --> WarStyle 1 Цитата Ссылка на комментарий Поделиться на других сайтах Больше вариантов поделиться...
Рекомендуемые сообщения
Присоединяйтесь к обсуждению
Вы можете опубликовать сейчас и зарегистрироваться позже. Если у вас есть учётная запись, войдите, чтобы публиковать под своей учётной записью.