IP : 18.188.238.18Hostname : host45.registrar-servers.comKernel : Linux host45.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64Disable Function : None :) OS : Linux
PATH:
/
home/
../
var/
softaculous/
twg/
../
joomla30/
../
wp66/
../
elgg4/
../
presta17/
_bootstrap.php/
/
<?php /** * Copyright since 2007 PrestaShop SA and Contributors * PrestaShop is an International Registered Trademark & Property of PrestaShop SA * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is bundled with this package in the file LICENSE.md. * It is also available through the world-wide-web at this URL: * https://opensource.org/licenses/OSL-3.0 * If you did not receive a copy of the license and are unable to * obtain it through the world-wide-web, please send an email * to license@prestashop.com so we can send you a copy immediately. * * DISCLAIMER * * Do not edit or add to this file if you wish to upgrade PrestaShop to newer * versions in the future. If you wish to customize PrestaShop for your * needs please refer to https://devdocs.prestashop.com/ for more information. * * @author PrestaShop SA and Contributors <contact@prestashop.com> * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) */
use PrestaShop\PrestaShop\Adapter\ServiceLocator; use PrestaShop\PrestaShop\Core\ContainerBuilder; use Symfony\Component\Filesystem\Exception\IOException; use Symfony\Component\Filesystem\Filesystem; use Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerAggregate; use Symfony\Component\Yaml\Yaml;
$container_builder = new ContainerBuilder(); $legacyContainer = $container_builder->build(); ServiceLocator::setServiceContainerInstance($legacyContainer);
if (!file_exists(_PS_CACHE_DIR_)) { @mkdir(_PS_CACHE_DIR_); $warmer = new CacheWarmerAggregate([ new PrestaShopBundle\Cache\LocalizationWarmer(_PS_VERSION_, 'en'), //@replace hard-coded Lang ]); $warmer->warmUp(_PS_CACHE_DIR_); }
// Bootstrap an application with parameters.yml, which has been installed before PHP parameters file support if (!file_exists($phpParametersFilepath) && file_exists($yamlParametersFilepath)) { $parameters = Yaml::parseFile($yamlParametersFilepath); if ($exportPhpConfigFile($parameters, $phpParametersFilepath)) { $filesystem->dumpFile($yamlParametersFilepath, 'parameters:' . "\n"); } }
// Legacy cookie if (array_key_exists('cookie_key', $config['parameters'])) { define('_COOKIE_KEY_', $config['parameters']['cookie_key']); } else { // Define cookie key if missing to prevent failure in composer post-install script define('_COOKIE_KEY_', Tools::passwdGen(56)); }
if (array_key_exists('cookie_iv', $config['parameters'])) { define('_COOKIE_IV_', $config['parameters']['cookie_iv']); } else { // Define cookie IV if missing to prevent failure in composer post-install script define('_COOKIE_IV_', Tools::passwdGen(32)); }
// New cookie if (array_key_exists('new_cookie_key', $config['parameters'])) { define('_NEW_COOKIE_KEY_', $config['parameters']['new_cookie_key']); } else { // Define cookie key if missing to prevent failure in composer post-install script $key = PhpEncryption::createNewRandomKey(); echo '<new_cookie_key>'.$key.'</new_cookie_key>'; @unlink($cachedParameters); define('_NEW_COOKIE_KEY_', $key); }