Kernel : Linux vmw02p.internet-indee.net 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Tue Nov 16 14:42:35 UTC 2021 x86_64
Disable function : NONE
Safe mode : OFF
Host : firofichi.it | Server ip : 5.196.164.15 | Your ip : 3.149.28.185 | Time @ Server : 19 Oct 2024 08:19:03
MySQL : OFF | MSSQL : OFF | cURL : ON | Oracle : OFF | wget : ON | Perl : ON

/home/webmaster/firofichi/www/vendor/magento/framework/App/ResourceConnection/

HOME about upload exec mass file domain root vuln newfile newfolder kill me

File Path : /home/webmaster/firofichi/www/vendor/magento/framework/App/ResourceConnection/Config.php

<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\Framework\App\ResourceConnection; use Magento\Framework\Config\ConfigOptionsListConstants; use Magento\Framework\Serialize\SerializerInterface; /** * Resource configuration, uses application configuration to retrieve resource connection information */ class Config extends \Magento\Framework\Config\Data\Scoped implements ConfigInterface { /** * List of connection names per resource * * @var array */ protected $_connectionNames = []; /** * @var \Magento\Framework\App\DeploymentConfig */ private $deploymentConfig; /** * @var bool */ private $initialized = false; /** * Constructor * * @param Config\Reader $reader * @param \Magento\Framework\Config\ScopeInterface $configScope * @param \Magento\Framework\Config\CacheInterface $cache * @param \Magento\Framework\App\DeploymentConfig $deploymentConfig * @param string|null $cacheId * @param SerializerInterface|null $serializer * @throws \InvalidArgumentException */ public function __construct( Config\Reader $reader, \Magento\Framework\Config\ScopeInterface $configScope, \Magento\Framework\Config\CacheInterface $cache, \Magento\Framework\App\DeploymentConfig $deploymentConfig, $cacheId = 'resourcesCache', SerializerInterface $serializer = null ) { parent::__construct($reader, $configScope, $cache, $cacheId, $serializer); $this->deploymentConfig = $deploymentConfig; } /** * Retrieve resource connection instance name * * @param string $resourceName * @return string */ public function getConnectionName($resourceName) { $this->initConnections(); $connectionName = \Magento\Framework\App\ResourceConnection::DEFAULT_CONNECTION; if (!isset($this->_connectionNames[$resourceName])) { $resourcesConfig = $this->get(); $pointerResourceName = $resourceName; while (true) { if (isset($resourcesConfig[$pointerResourceName]['connection'])) { $connectionName = $resourcesConfig[$pointerResourceName]['connection']; $this->_connectionNames[$resourceName] = $connectionName; break; } elseif (isset($this->_connectionNames[$pointerResourceName])) { $this->_connectionNames[$resourceName] = $this->_connectionNames[$pointerResourceName]; $connectionName = $this->_connectionNames[$resourceName]; break; } elseif (isset($resourcesConfig[$pointerResourceName]['extends'])) { $pointerResourceName = $resourcesConfig[$pointerResourceName]['extends']; } else { break; } } } else { $connectionName = $this->_connectionNames[$resourceName]; } return $connectionName; } /** * Initialise connections * * @return void */ private function initConnections() { if (!$this->initialized) { $this->initialized = true; $resource = $this->deploymentConfig->getConfigData(ConfigOptionsListConstants::KEY_RESOURCE) ?: []; foreach ($resource as $resourceName => $resourceData) { if (!isset($resourceData['connection'])) { throw new \InvalidArgumentException('Invalid initial resource configuration'); } $this->_connectionNames[$resourceName] = $resourceData['connection']; } } } }