One Hat Cyber Team
Your IP:
216.73.216.75
Server IP:
213.186.33.17
Server:
Linux webm007.cluster106.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64
Server Software:
Apache
PHP Version:
7.4.33
Create File
|
Create Folder
Execute
Dir :
~
/
home
/
tcherkas
/
micha.paris
/
modules
/
mod_k2_tools
/
View File Name :
mod_k2_tools.php
<?php /** * @version 2.x (rolling release) * @package K2 * @author JoomlaWorks https://www.joomlaworks.net * @copyright Copyright (c) 2009 - 2025 JoomlaWorks Ltd. All rights reserved. * @license GNU/GPL: https://gnu.org/licenses/gpl.html */ // no direct access defined('_JEXEC') or die; if (K2_JVERSION != '15') { $language = JFactory::getLanguage(); $language->load('com_k2.dates', JPATH_ADMINISTRATOR, null, true); } require_once(dirname(__FILE__).'/helper.php'); // Params $moduleclass_sfx = $params->get('moduleclass_sfx', ''); $module_usage = $params->get('module_usage', 0); $authorAvatarWidthSelect = $params->get('authorAvatarWidthSelect', 'custom'); $authorAvatarWidth = $params->get('authorAvatarWidth', 50); $button = $params->get('button'); $imagebutton = $params->get('imagebutton'); $button_pos = $params->get('button_pos', 'left'); $button_text = $params->get('button_text', JText::_('K2_SEARCH')); $text = $params->get('text', JText::_('K2_SEARCH')); $searchItemId = $params->get('searchItemId', ''); // API $document = JFactory::getDocument(); $app = JFactory::getApplication(); // Output switch ($module_usage) { case '0': $months = modK2ToolsHelper::getArchive($params); if (count($months)) { require(JModuleHelper::getLayoutPath('mod_k2_tools', 'archive')); } break; case '1': // User avatar if ($authorAvatarWidthSelect == 'inherit') { $componentParams = JComponentHelper::getParams('com_k2'); $avatarWidth = $componentParams->get('userImageWidth'); } else { $avatarWidth = $authorAvatarWidth; } $authors = modK2ToolsHelper::getAuthors($params); require(JModuleHelper::getLayoutPath('mod_k2_tools', 'authors')); break; case '2': $calendar = modK2ToolsHelper::calendar($params); require(JModuleHelper::getLayoutPath('mod_k2_tools', 'calendar')); break; case '3': $breadcrumbs = modK2ToolsHelper::breadcrumbs($params); $path = $breadcrumbs[0]; $title = $breadcrumbs[1]; require(JModuleHelper::getLayoutPath('mod_k2_tools', 'breadcrumbs')); break; case '4': $output = modK2ToolsHelper::treerecurse($params, 0, 0, true); require(JModuleHelper::getLayoutPath('mod_k2_tools', 'categories')); break; case '5': echo modK2ToolsHelper::treeselectbox($params); break; case '6': $categoryFilter = modK2ToolsHelper::getSearchCategoryFilter($params); $action = JRoute::_(K2HelperRoute::getSearchRoute($searchItemId)); require(JModuleHelper::getLayoutPath('mod_k2_tools', 'search')); break; case '7': $tags = modK2ToolsHelper::tagCloud($params); if (count($tags)) { require(JModuleHelper::getLayoutPath('mod_k2_tools', 'tags')); } break; case '8': $customcode = modK2ToolsHelper::renderCustomCode($params); require(JModuleHelper::getLayoutPath('mod_k2_tools', 'customcode')); break; case '9': $selectedTags = (array) $params->get('selectedTags'); $selectedTagsLimit = (int) $params->get('selectedTagsLimit', 0); if (count($selectedTags)) { require(JModuleHelper::getLayoutPath('mod_k2_tools', 'selected_tags')); } break; }