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 /
garmin /
modules /
ps_linklist /
[ HOME SHELL ]
Name
Size
Permission
Action
.pkexec
[ DIR ]
drwxr-xr-x
GCONV_PATH=.
[ DIR ]
drwxr-xr-x
config
[ DIR ]
drwx---r-x
src
[ DIR ]
drwx---r-x
translations
[ DIR ]
drwx---r-x
upgrade
[ DIR ]
drwx---r-x
views
[ DIR ]
drwx---r-x
.mad-root
0
B
-rw-r--r--
adminer.php
465.43
KB
-rw-r--r--
composer.lock
58.46
KB
-rw----r--
config.xml
470
B
-rw----r--
config_fr.xml
613
B
-rw----r--
index.php
1.1
KB
-rw----r--
logo.png
7.88
KB
-rw----r--
ps_linklist.php
10.26
KB
-rw----r--
pwnkit
10.99
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : ps_linklist.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 Academic Free License version 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/AFL-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. * * @author PrestaShop SA and Contributors <contact@prestashop.com> * @copyright Since 2007 PrestaShop SA and Contributors * @license https://opensource.org/licenses/AFL-3.0 Academic Free License version 3.0 */ if (!defined('_CAN_LOAD_FILES_')) { exit; } if (file_exists(__DIR__ . '/vendor/autoload.php')) { require_once __DIR__ . '/vendor/autoload.php'; } use PrestaShop\PrestaShop\Core\Module\WidgetInterface; use PrestaShop\Module\LinkList\DataMigration; use PrestaShop\Module\LinkList\LegacyLinkBlockRepository; use PrestaShop\Module\LinkList\Presenter\LinkBlockPresenter; use PrestaShop\Module\LinkList\Model\LinkBlockLang; use PrestaShop\Module\LinkList\Repository\LinkBlockRepository; use PrestaShop\PrestaShop\Adapter\SymfonyContainer; use PrestaShop\PrestaShop\Adapter\LegacyContext; use PrestaShop\PrestaShop\Adapter\Shop\Context; /** * Class Ps_Linklist. */ class Ps_Linklist extends Module implements WidgetInterface { /** * @var string Name of the module running on PS 1.6.x. Used for data migration. */ const PS_16_EQUIVALENT_MODULE = 'blockcms'; const MODULE_NAME = 'ps_linklist'; protected $_html; protected $_display; /** * @var LinkBlockPresenter */ private $linkBlockPresenter; /** * @var LegacyLinkBlockRepository */ private $legacyBlockRepository; /** * @var LinkBlockRepository */ private $repository; public $templateFile; /** * @var string */ public $templateFileColumn; public function __construct() { $this->name = 'ps_linklist'; $this->author = 'PrestaShop'; $this->version = '4.0.0'; $this->need_instance = 0; $this->tab = 'front_office_features'; $tabNames = []; foreach (Language::getLanguages(true) as $lang) { $tabNames[$lang['locale']] = $this->trans('Link List', array(), 'Modules.Linklist.Admin', $lang['locale']); } $this->tabs = [ [ 'route_name' => 'admin_link_block_list', 'class_name' => 'AdminLinkWidget', 'visible' => true, 'name' => $tabNames, 'parent_class_name' => 'AdminParentThemes', ], ]; $this->bootstrap = true; parent::__construct(); $this->displayName = $this->trans('Link List', array(), 'Modules.Linklist.Admin'); $this->description = $this->trans('Give more visibility to your content/static pages (CMS, external pages, or else), where you want and when you want, to make your visitors feel like shopping on your store.', array(), 'Modules.Linklist.Admin'); $this->secure_key = Tools::encrypt($this->name); $this->ps_versions_compliancy = array('min' => '1.7.7.0', 'max' => _PS_VERSION_); $this->templateFile = 'module:ps_linklist/views/templates/hook/linkblock.tpl'; $this->templateFileColumn = 'module:ps_linklist/views/templates/hook/linkblock-column.tpl'; $this->linkBlockPresenter = new LinkBlockPresenter(new Link(), $this->context->language); $this->legacyBlockRepository = new LegacyLinkBlockRepository(Db::getInstance(), $this->context->shop, $this->context->getTranslator()); } public function install() { if (!parent::install()) { return false; } $tablesInstalledWithSuccess = $this->createTables(); if (!$tablesInstalledWithSuccess) { $this->uninstall(); return false; } $old16ModuleUninstalledWithSuccess = $this->uninstallPrestaShop16Module(); if ($old16ModuleUninstalledWithSuccess) { (new DataMigration(Db::getInstance()))->migrateData(); $dataLoadedWithSuccess = true; } else { $dataLoadedWithSuccess = $this->installFixtures(); } if ($dataLoadedWithSuccess && $this->registerHook('displayFooter') && $this->registerHook('actionUpdateLangAfter')) { return true; } $this->uninstall(); return false; } /** * @return bool * * @throws \Doctrine\DBAL\DBALException */ private function createTables() { $result = $this->getRepository()->createTables(); if (false === $result || (is_array($result) && !empty($result))) { if (is_array($result)) { $this->addModuleErrors($result); } return false; } return true; } /** * @return bool * * @throws \Doctrine\DBAL\DBALException */ private function installFixtures() { $result = $this->getRepository()->installFixtures(); if (false === $result || (is_array($result) && !empty($result))) { if (is_array($result)) { $this->addModuleErrors($result); } return false; } return true; } public function uninstall() { $uninstalled = true; $result = $this->getRepository()->dropTables(); if (false === $result || (is_array($result) && !empty($result))) { if (is_array($result)) { $this->addModuleErrors($result); } $uninstalled = false; } return $uninstalled && parent::uninstall(); } /** * Migrate data from 1.6 equivalent module (if applicable), then uninstall */ private function uninstallPrestaShop16Module() { if (!Module::isInstalled(self::PS_16_EQUIVALENT_MODULE)) { return false; } $oldModule = Module::getInstanceByName(self::PS_16_EQUIVALENT_MODULE); if ($oldModule) { // This closure calls the parent class to prevent data to be erased // It allows the new module to be configured without migration $parentUninstallClosure = function() { return parent::uninstall(); }; $parentUninstallClosure = $parentUninstallClosure->bindTo($oldModule, get_class($oldModule)); $parentUninstallClosure(); } return true; } public function hookActionUpdateLangAfter($params) { if (!empty($params['lang']) && $params['lang'] instanceof Language) { Language::updateMultilangFromClass(_DB_PREFIX_ . 'link_block_lang', LinkBlockLang::class, $params['lang']); } } public function _clearCache($template, $cache_id = null, $compile_id = null) { parent::_clearCache($this->templateFile); parent::_clearCache($this->templateFileColumn); } public function getContent() { // We need to explicitely get Symfony container, because $this->get will use the admin legacy container $sfContainer = SymfonyContainer::getInstance(); $router = $sfContainer->get('router'); Tools::redirectAdmin( $router->generate('admin_link_block_list') ); } public function renderWidget($hookName, array $configuration) { $key = 'ps_linklist|' . $hookName; if ($hookName === 'displayLeftColumn' || $hookName === 'displayRightColumn') { $template = $this->templateFileColumn; } else { $template = $this->templateFile; } if (!$this->isCached($template, $this->getCacheId($key))) { $this->smarty->assign($this->getWidgetVariables($hookName, $configuration)); } return $this->fetch($template, $this->getCacheId($key)); } public function getWidgetVariables($hookName, array $configuration) { $id_hook = Hook::getIdByName($hookName); $linkBlocks = $this->legacyBlockRepository->getByIdHook($id_hook); $blocks = array(); foreach ($linkBlocks as $block) { $blocks[] = $this->linkBlockPresenter->present($block); } return array( 'linkBlocks' => $blocks, 'hookName' => $hookName, ); } /** * @param array $errors */ private function addModuleErrors(array $errors) { foreach ($errors as $error) { $this->_errors[] = $this->trans($error['key'], $error['parameters'], $error['domain']); } } /** * @return LinkBlockRepository|LegacyLinkBlockRepository|null */ private function getRepository() { if (null === $this->repository) { try { $this->repository = $this->get('prestashop.module.link_block.repository'); } catch (Throwable $e) { try { $container = SymfonyContainer::getInstance(); if (null !== $container) { //Module is not installed so its services are not loaded /** @var LegacyContext $context */ $legacyContext = $container->get('prestashop.adapter.legacy.context'); /** @var Context $shopContext */ $shopContext = $container->get('prestashop.adapter.shop.context'); $this->repository = new LinkBlockRepository( $container->get('doctrine.dbal.default_connection'), $container->getParameter('database_prefix'), $legacyContext->getLanguages(true, $shopContext->getContextShopID()), $container->get('translator') ); } } catch (Throwable $e) { } } } // Container is not available so we use legacy repository as fallback if (!$this->repository) { $this->repository = $this->legacyBlockRepository; } return $this->repository; } }
Close