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_content
/
Edit File:
mod_k2_content.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', ''); $getTemplate = $params->get('getTemplate', 'Default'); $itemAuthorAvatarWidthSelect = $params->get('itemAuthorAvatarWidthSelect', 'custom'); $itemAuthorAvatarWidth = $params->get('itemAuthorAvatarWidth', 50); $itemCustomLinkTitle = $params->get('itemCustomLinkTitle', ''); $itemCustomLinkURL = trim($params->get('itemCustomLinkURL')); $itemCustomLinkMenuItem = $params->get('itemCustomLinkMenuItem'); if ($itemCustomLinkURL && $itemCustomLinkURL!='http://' && $itemCustomLinkURL!='https://') { if ($itemCustomLinkTitle=='') { if (strpos($itemCustomLinkURL, '://')!==false) { $linkParts = explode('://', $itemCustomLinkURL); $itemCustomLinkURL = $linkParts[1]; } $itemCustomLinkTitle = $itemCustomLinkURL; } } elseif ($itemCustomLinkMenuItem) { $menu = JMenu::getInstance('site'); $menuLink = $menu->getItem($itemCustomLinkMenuItem); if (!empty($menuLink)) { if (!$itemCustomLinkTitle) { $itemCustomLinkTitle = (K2_JVERSION != '15') ? $menuLink->title : $menuLink->name; } $itemCustomLinkURL = JRoute::_('index.php?&Itemid='.$menuLink->id); } else { $itemCustomLinkTitle = ''; $itemCustomLinkURL = ''; } } // Make params backwards compatible $params->set('itemCustomLinkTitle', $itemCustomLinkTitle); $params->set('itemCustomLinkURL', $itemCustomLinkURL); // Get component params $componentParams = JComponentHelper::getParams('com_k2'); // User avatar if ($itemAuthorAvatarWidthSelect == 'inherit') { $avatarWidth = $componentParams->get('userImageWidth'); } else { $avatarWidth = $itemAuthorAvatarWidth; } $items = modK2ContentHelper::getItems($params); if (is_array($items) && count($items)) { require(JModuleHelper::getLayoutPath('mod_k2_content', $getTemplate.'/default')); }
Simpan