asda?‰PNG  IHDR ? f ??C1 sRGB ??é gAMA ±? üa pHYs ? ??o¨d GIDATx^íüL”÷e÷Y?a?("Bh?_ò???¢§?q5k?*:t0A-o??¥]VkJ¢M??f?±8\k2íll£1]q?ù???T var/softaculous/presta178/bootstrap.php000064400000014033151027377070014201 0ustar00 * @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_); } $configDirectory = __DIR__. '/../app/config'; $phpParametersFilepath = $configDirectory . '/parameters.php'; $yamlParametersFilepath = $configDirectory . '/parameters.yml'; $filesystem = new Filesystem(); $exportPhpConfigFile = function ($config, $destination) use ($filesystem) { try { $filesystem->dumpFile($destination, 'dumpFile($yamlParametersFilepath, 'parameters:' . "\n"); } } $lastParametersModificationTime = (int)@filemtime($phpParametersFilepath); if ($lastParametersModificationTime) { $cachedParameters = _PS_CACHE_DIR_. 'appParameters.php'; $lastParametersCacheModificationTime = (int)@filemtime($cachedParameters); if (!$lastParametersCacheModificationTime || $lastParametersCacheModificationTime < $lastParametersModificationTime) { // When parameters file is available, update its cache if it is stale. if (file_exists($phpParametersFilepath)) { $config = require $phpParametersFilepath; $exportPhpConfigFile($config, $cachedParameters); } elseif (file_exists($yamlParametersFilepath)) { $config = Yaml::parseFile($yamlParametersFilepath); $exportPhpConfigFile($config, $cachedParameters); } } $config = require_once _PS_CACHE_DIR_ . 'appParameters.php'; array_walk($config['parameters'], function (&$param) { $param = str_replace('%%', '%', $param); }); $database_host = $config['parameters']['database_host']; if (!empty($config['parameters']['database_port'])) { $database_host .= ':'. $config['parameters']['database_port']; } define('_DB_SERVER_', $database_host); if (defined('_PS_IN_TEST_')) { define('_DB_NAME_', 'test_'.$config['parameters']['database_name']); } else { define('_DB_NAME_', $config['parameters']['database_name']); } define('_DB_USER_', $config['parameters']['database_user']); define('_DB_PASSWD_', $config['parameters']['database_password']); define('_DB_PREFIX_', $config['parameters']['database_prefix']); define('_MYSQL_ENGINE_', $config['parameters']['database_engine']); define('_PS_CACHING_SYSTEM_', $config['parameters']['ps_caching']); if (!defined('PS_IN_UPGRADE') && !defined('_PS_IN_TEST_')) { define('_PS_CACHE_ENABLED_', $config['parameters']['ps_cache_enable']); } else { define('_PS_CACHE_ENABLED_', 0); $config['parameters']['ps_cache_enable'] = 0; } // 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(); define('_NEW_COOKIE_KEY_', $key); } define('_PS_CREATION_DATE_', $config['parameters']['ps_creation_date']); if (isset($config['parameters']['_rijndael_key'], $config['parameters']['_rijndael_iv'])) { define('_RIJNDAEL_KEY_', $config['parameters']['_rijndael_key']); define('_RIJNDAEL_IV_', $config['parameters']['_rijndael_iv']); } } elseif (file_exists(_PS_ROOT_DIR_.'/config/settings.inc.php')) { require_once _PS_ROOT_DIR_.'/config/settings.inc.php'; } var/softaculous/kohana/bootstrap.php000064400000011166151027440450013701 0ustar00" */ if (isset($_SERVER['KOHANA_ENV'])) { Kohana::$environment = constant('Kohana::'.strtoupper($_SERVER['KOHANA_ENV'])); } /** * Initialize Kohana, setting the default options. * * The following options are available: * * - string base_url path, and optionally domain, of your application NULL * - string index_file name of your index file, usually "index.php" index.php * - string charset internal character set used for input and output utf-8 * - string cache_dir set the internal cache directory APPPATH/cache * - integer cache_life lifetime, in seconds, of items cached 60 * - boolean errors enable or disable error handling TRUE * - boolean profile enable or disable internal profiling TRUE * - boolean caching enable or disable internal caching FALSE * - boolean expose set the X-Powered-By header FALSE */ Kohana::init(array( 'base_url' => '[[relativeurl]]/', )); /** * Attach the file write to logging. Multiple writers are supported. */ Kohana::$log->attach(new Log_File(APPPATH.'logs')); /** * Attach a file reader to config. Multiple readers are supported. */ Kohana::$config->attach(new Config_File); /** * Enable modules. Modules are referenced by a relative or absolute path. */ Kohana::modules(array( // 'auth' => MODPATH.'auth', // Basic authentication // 'cache' => MODPATH.'cache', // Caching with multiple backends // 'codebench' => MODPATH.'codebench', // Benchmarking tool // 'database' => MODPATH.'database', // Database access // 'image' => MODPATH.'image', // Image manipulation // 'minion' => MODPATH.'minion', // CLI Tasks // 'orm' => MODPATH.'orm', // Object Relationship Mapping // 'unittest' => MODPATH.'unittest', // Unit testing // 'userguide' => MODPATH.'userguide', // User guide and API documentation )); /** * Cookie Salt * @see http://kohanaframework.org/3.3/guide/kohana/cookies * * If you have not defined a cookie salt in your Cookie class then * uncomment the line below and define a preferrably long salt. */ Cookie::$salt = '[[salt]]'; /** * Set the routes. Each route must have a minimum of a name, a URI and a set of * defaults for the URI. */ Route::set('default', '((/(/)))') ->defaults(array( 'controller' => 'welcome', 'action' => 'index', ));