uawdijnntqw1x1x1
IP : 216.73.216.84
Hostname : webm003.cluster107.gra.hosting.ovh.net
Kernel : Linux webm003.cluster107.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
OS : Linux
PATH:
/
home
/
opticamezl
/
www
/
newok
/
07d6c
/
..
/
c9989
/
..
/
cache
/
..
/
mod_weblinks.zip
/
/
PK�{�\�V�tmpl/index.htmlnu&1i�<!DOCTYPE html><title></title> PK�{�\���X::tmpl/default.phpnu&1i�<?php /** * @package Joomla.Administrator * @subpackage Weblinks * * @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ // phpcs:disable PSR1.Files.SideEffects \defined('_JEXEC') or die; // phpcs:enable PSR1.Files.SideEffects use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Language\Text; ?> <?php if ($params->get('groupby', 0)) : ?> <?php $cats = [] ?> <?php $cols = $params->get('groupby_columns', 3); ?> <?php foreach ($list as $l) : ?> <?php $cats[] = array('catid' => $l->catid, 'title' => $l->category_title); ?> <?php endforeach; ?> <?php $cats = array_values(array_map('unserialize', array_unique(array_map('serialize', $cats)))); ?> <?php foreach ($cats as $k => $cat) : ?> <?php $items = []; ?> <?php foreach ($list as $item) : ?> <?php if ($item->catid == $cat['catid']) : ?> <?php $items[] = $item; ?> <?php endif; ?> <?php endforeach; ?> <?php if ($cols > 1) : ?> <?php if ($k % $cols == 0) : ?> <div class="row row-fluid"> <?php endif; ?> <div class="col-' . 12 / $cols . '"> <?php endif; ?> <?php if ($params->get('groupby_showtitle', 1)) : ?> <strong> <?php echo htmlspecialchars($cat['title'], ENT_COMPAT, 'UTF-8'); ?></strong> <?php endif; ?> <ul class="weblinks<?php echo $moduleclass_sfx; ?>"> <?php foreach ($items as $item) : ?> <li><div class="d-flex flex-wrap"> <div class="col flex-sm-grow-1"> <?php $link = $item->link; $width = (int) $item->params->get('width', 600); $height = (int) $item->params->get('height', 500); switch ($item->params->get('target')) { case 1: // Open in a new window echo '<a href="' . $link . '" target="_blank" rel="' . $params->get('follow', 'nofollow') . '">' . htmlspecialchars($item->title, ENT_COMPAT, 'UTF-8') . '</a>'; break; case 2: // Open in a popup window $attribs = 'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=' . $width . ',height=' . $height; echo "<a href=\"$link\" onclick=\"window.open(this.href, 'targetWindow', '" . $attribs . "'); return false;\">" . htmlspecialchars($item->title, ENT_COMPAT, 'UTF-8') . '</a>'; break; case 3: // Open in a modal window $modalId = 'weblink-item-modal-' . $item->id; $modalParams['title'] = htmlspecialchars($item->title, ENT_COMPAT, 'UTF-8'); $modalParams['url'] = $link; $modalParams['height'] = '100%'; $modalParams['width'] = '100%'; $modalParams['bodyHeight'] = 70; $modalParams['modalWidth'] = 80; echo HTMLHelper::_('bootstrap.renderModal', $modalId, $modalParams); echo '<button type="button" class="btn btn-link" data-bs-toggle="modal" data-bs-target="#' . $modalId . '"> ' . $item->title . '</button>'; break; default: // Open in parent window echo '<a href="' . $link . '" rel="' . $params->get('follow', 'nofollow') . '">' . htmlspecialchars($item->title, ENT_COMPAT, 'UTF-8') . '</a>'; break; } ?> </div> <?php echo $params->get('description', 0) ? '<div class="col flex-sm-grow-1">' . $item->description . '</div>' : ''; ?> <?php if ($params->get('hits', 0)) : ?> <div class="col flex-sm-grow-1"> <span class="badge bg-info float-md-end"> <?php echo $item->hits . ' ' . Text::_('MOD_WEBLINKS_HITS'); ?></span> </div> <?php endif; ?> </li> <?php endforeach; ?> </ul> <?php if ($cols > 1) : ?> </div> <?php if (($k + 1) % $cols == 0 || $k == count($cats) - 1) : ?> </div> <?php endif; ?> <?php endif; ?> <?php endforeach; ?> <?php else : ?> <ul class="weblinks<?php echo $moduleclass_sfx; ?>"> <?php foreach ($list as $item) : ?> <li><div class="d-flex flex-wrap"> <div class="col flex-sm-grow-1"> <?php $link = $item->link; $width = (int) $item->params->get('width', 600); $height = (int) $item->params->get('height', 500); switch ($item->params->get('target')) { case 1: // Open in a new window echo '<a href="' . $link . '" target="_blank" rel="' . $params->get('follow', 'nofollow') . '">' . htmlspecialchars($item->title, ENT_COMPAT, 'UTF-8') . '</a>'; break; case 2: // Open in a popup window $attribs = 'toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=' . $width . ',height=' . $height; echo "<a href=\"$link\" onclick=\"window.open(this.href, 'targetWindow', '" . $attribs . "'); return false;\">" . htmlspecialchars($item->title, ENT_COMPAT, 'UTF-8') . '</a>'; break; case 3: // Open in a modal window $modalId = 'weblink-item-modal-' . $item->id; $modalParams['title'] = htmlspecialchars($item->title, ENT_COMPAT, 'UTF-8'); $modalParams['url'] = $link; $modalParams['height'] = '100%'; $modalParams['width'] = '100%'; $modalParams['bodyHeight'] = 70; $modalParams['modalWidth'] = 80; echo HTMLHelper::_('bootstrap.renderModal', $modalId, $modalParams); echo '<button type="button" class="btn btn-link" data-bs-toggle="modal" data-bs-target="#' . $modalId . '"> ' . $item->title . ' </button>'; break; default: // Open in parent window echo '<a href="' . $link . '" rel="' . $params->get('follow', 'nofollow') . '">' . htmlspecialchars($item->title, ENT_COMPAT, 'UTF-8') . '</a>'; break; } ?> </div> <?php echo $params->get('description', 0) ? '<div class="col flex-sm-grow-1">' . $item->description . '</div>' : ''; ?> <?php if ($params->get('hits', 0)) : ?> <div class="col flex-sm-grow-1"> <span class="badge bg-info float-md-end"><?php echo $item->hits . ' ' . Text::_('MOD_WEBLINKS_HITS'); ?></span> </div> <?php endif; ?> </div> </li> <?php endforeach; ?> </ul> <?php endif; ?> PK�{�\]q&�))services/provider.phpnu�[���<?php /** * @package Joomla.Site * @subpackage mod_weblinks * * @copyright (C) 2022 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ // phpcs:disable PSR1.Files.SideEffects \defined('_JEXEC') or die; // phpcs:enable PSR1.Files.SideEffects use Joomla\CMS\Extension\Service\Provider\HelperFactory; use Joomla\CMS\Extension\Service\Provider\Module; use Joomla\CMS\Extension\Service\Provider\ModuleDispatcherFactory; use Joomla\DI\Container; use Joomla\DI\ServiceProviderInterface; /** * The weblinks module services provider. * * @since __DEPLOY_VERSION__ */ return new class () implements ServiceProviderInterface { /** * Registers the service provider with a DI container. * * @param Container $container The DI container. * * @return void * * @since __DEPLOY_VERSION__ */ public function register(Container $container) { $container->registerServiceProvider(new ModuleDispatcherFactory('\\Joomla\\Module\\Weblinks')); $container->registerServiceProvider(new HelperFactory('\\Joomla\\Module\\Weblinks\\Site\\Helper')); $container->registerServiceProvider(new Module()); } }; PK�{�\+6�Goosrc/Dispatcher/Dispatcher.phpnu�[���<?php /** * @package Joomla.Site * @subpackage mod_weblinks * * @copyright (C) 2022 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ namespace Joomla\Module\Weblinks\Site\Dispatcher; use Joomla\CMS\Dispatcher\AbstractModuleDispatcher; use Joomla\CMS\Helper\HelperFactoryAwareInterface; use Joomla\CMS\Helper\HelperFactoryAwareTrait; // phpcs:disable PSR1.Files.SideEffects // phpcs:disable PSR1.Files.SideEffects \defined('_JEXEC') or die; // phpcs:enable PSR1.Files.SideEffects // phpcs:enable PSR1.Files.SideEffects /** * Dispatcher class for mod_weblinks * * @since __DEPLOY_VERSION__ */ class Dispatcher extends AbstractModuleDispatcher implements HelperFactoryAwareInterface { use HelperFactoryAwareTrait; /** * Returns the layout data. * * @return array * * @since __DEPLOY_VERSION__ */ protected function getLayoutData() { $data = parent::getLayoutData(); $data['list'] = $this->getHelperFactory()->getHelper('WeblinksHelper')->getWeblinks( $data['params'], $this->getApplication() ); $data['moduleclass_sfx'] = htmlspecialchars($data['params']->get('moduleclass_sfx', '')); return $data; } } PK�{�\*���src/Helper/WeblinksHelper.phpnu�[���<?php /** * @package Joomla.Administrator * @subpackage Weblinks * * @copyright Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ namespace Joomla\Module\Weblinks\Site\Helper; // phpcs:disable PSR1.Files.SideEffects \defined('_JEXEC') or die; // phpcs:enable PSR1.Files.SideEffects use Joomla\CMS\Application\CMSApplicationInterface; use Joomla\CMS\Component\ComponentHelper; use Joomla\CMS\Router\Route; use Joomla\Registry\Registry; /** * Helper for mod_weblinks * * @since 1.5 */ class WeblinksHelper { /** * Retrieve list of weblinks * * @param Registry $params The module parameters * @param CMSApplicationInterface $app The application * * @return array Array containing all the weblinks. * * @since __DEPLOY_VERSION__ **/ public function getWeblinks($params, $app) { // @var \Joomla\Component\Weblinks\Site\Model\CategoryModel $model $model = $app->bootComponent('com_weblinks')->getMVCFactory() ->createModel('Category', 'Site', ['ignore_request' => true]); // Set application parameters in model $cParams = ComponentHelper::getParams('com_weblinks'); $model->setState('params', $cParams); // Set the filters based on the module params $model->setState('list.start', 0); $model->setState('list.limit', (int) $params->get('count', 5)); $model->setState('filter.state', 1); $model->setState('filter.publish_date', true); // Access filter $access = !ComponentHelper::getParams('com_weblinks')->get('show_noauth'); $model->setState('filter.access', $access); $ordering = $params->get('ordering', 'ordering'); $model->setState('list.ordering', $ordering == 'order' ? 'ordering' : $ordering); $model->setState('list.direction', $params->get('direction', 'asc')); $catid = (int) $params->get('catid', 0); $model->setState('category.id', $catid); $model->setState('category.group', $params->get('groupby', 0)); $model->setState('category.ordering', $params->get('groupby_ordering', 'c.lft')); $model->setState('category.direction', $params->get('groupby_direction', 'ASC')); // Create query object $db = $model->getDbo(); $query = $db->getQuery(true); $case_when1 = ' CASE WHEN '; $case_when1 .= $query->charLength('a.alias', '!=', '0'); $case_when1 .= ' THEN '; $a_id = $query->castAs('CHAR', 'a.id'); $case_when1 .= $query->concatenate([$a_id, 'a.alias'], ':'); $case_when1 .= ' ELSE '; $case_when1 .= $a_id . ' END as slug'; $case_when2 = ' CASE WHEN '; $case_when2 .= $query->charLength('c.alias', '!=', '0'); $case_when2 .= ' THEN '; $c_id = $query->castAs('CHAR', 'c.id'); $case_when2 .= $query->concatenate([$c_id, 'c.alias'], ':'); $case_when2 .= ' ELSE '; $case_when2 .= $c_id . ' END as catslug'; $model->setState( 'list.select', 'a.*, c.description AS c_description, c.published AS c_published,' . $case_when1 . ',' . $case_when2 ); $model->setState('filter.c.published', 1); // Filter by language $model->setState('filter.language', $app->getLanguageFilter()); $items = $model->getItems(); if ($items) { foreach ($items as $item) { $temp = $item->params; $item->params = clone $cParams; $item->params->merge($temp); if ($item->params->get('count_clicks', 1) == 1) { $item->link = Route::_('index.php?option=com_weblinks&task=weblink.go&catid=' . $item->catslug . '&id=' . $item->slug); } else { $item->link = $item->url; } } return $items; } return []; } /** * Retrieve list of weblinks * * @param Registry $params The module parameters * @param CMSApplicationInterface $app The application * * @return mixed Null if no weblinks based on input parameters else an array containing all the weblinks. * * @since 1.5 * * @deprecated 5.0 Use the none static function getWeblinks **/ public static function getList($params, $app) { return (new self())->getWeblinks($params, $app); } } PK�{�\�V� index.htmlnu&1i�<!DOCTYPE html><title></title> PK�{�\���eemod_weblinks.xmlnu&1i�<?xml version="1.0" encoding="utf-8"?> <extension type="module" version="3.5" client="site" method="upgrade"> <name>mod_weblinks</name> <element>mod_weblinks</element> <author>Joomla! Project</author> <creationDate>2025-04-02</creationDate> <copyright>Copyright (C) 2005 - 2017 Open Source Matters. All rights reserved.</copyright> <license>GNU General Public License version 2 or later; see LICENSE.txt</license> <authorEmail>admin@joomla.org</authorEmail> <authorUrl>www.joomla.org</authorUrl> <version>4.4.0</version> <description>MOD_WEBLINKS_XML_DESCRIPTION</description> <namespace path="src">Joomla\Module\Weblinks</namespace> <files> <file>mod_weblinks.xml</file> <folder>services</folder> <folder>src</folder> <folder>tmpl</folder> </files> <languages folder="language"> <language tag="en-GB">en-GB/mod_weblinks.ini</language> <language tag="en-GB">en-GB/mod_weblinks.sys.ini</language> </languages> <help key="Extensions_Module_Manager_Weblinks" /> <config> <fields name="params"> <fieldset name="basic"> <field name="catid" type="category" label="JCATEGORY" extension="com_weblinks" required="true" /> <field name="groupby" type="radio" label="MOD_WEBLINKS_FIELD_GROUPBY_LABEL" layout="joomla.form.field.radio.switcher" default="0" > <option value="0">JNO</option> <option value="1">JYES</option> </field> <field name="groupby_showtitle" type="radio" label="MOD_WEBLINKS_FIELD_GROUPBYSHOWTITLE_LABEL" layout="joomla.form.field.radio.switcher" default="1" showon="groupby:1" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="groupby_ordering" type="list" label="MOD_WEBLINKS_FIELD_GROUPBYORDERING_LABEL" default="c.lft" showon="groupby:1" > <option value="c.title">JGLOBAL_TITLE</option> <option value="c.lft">MOD_WEBLINKS_FIELD_VALUE_ORDER</option> </field> <field name="groupby_direction" type="list" label="MOD_WEBLINKS_FIELD_GROUPBYDIRECTION_LABEL" default="asc" showon="groupby:1" > <option value="asc">MOD_WEBLINKS_FIELD_VALUE_ASCENDING</option> <option value="desc">MOD_WEBLINKS_FIELD_VALUE_DESCENDING</option> </field> <field name="groupby_columns" type="list" label="MOD_WEBLINKS_FIELD_COLUMNS_LABEL" default="3" > <option value="1">J1</option> <option value="2">J2</option> <option value="3">J3</option> <option value="4">J4</option> <option value="6">J6</option> </field> <field name="count" type="text" label="MOD_WEBLINKS_FIELD_COUNT_LABEL" default="5" /> <field name="ordering" type="list" label="MOD_WEBLINKS_FIELD_ORDERING_LABEL" default="title" > <option value="title">JGLOBAL_TITLE</option> <option value="order">MOD_WEBLINKS_FIELD_VALUE_ORDER</option> <option value="hits">MOD_WEBLINKS_FIELD_VALUE_HITS</option> </field> <field name="direction" type="list" label="MOD_WEBLINKS_FIELD_ORDERDIRECTION_LABEL" default="asc" > <option value="asc">MOD_WEBLINKS_FIELD_VALUE_ASCENDING</option> <option value="desc">MOD_WEBLINKS_FIELD_VALUE_DESCENDING</option> </field> <field name="follow" type="list" label="MOD_WEBLINKS_FIELD_FOLLOW_LABEL" default="follow" > <option value="follow">MOD_WEBLINKS_FIELD_VALUE_FOLLOW</option> <option value="nofollow">MOD_WEBLINKS_FIELD_VALUE_NOFOLLOW</option> </field> <field name="description" type="radio" label="MOD_WEBLINKS_FIELD_DESCRIPTION_LABEL" layout="joomla.form.field.radio.switcher" default="0" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> <field name="hits" type="radio" label="MOD_WEBLINKS_FIELD_HITS_LABEL" layout="joomla.form.field.radio.switcher" default="0" > <option value="0">JHIDE</option> <option value="1">JSHOW</option> </field> </fieldset> <fieldset name="advanced"> <field name="layout" type="modulelayout" label="JFIELD_ALT_LAYOUT_LABEL" class="form-select" validate="moduleLayout" /> <field name="moduleclass_sfx" type="textarea" label="COM_MODULES_FIELD_MODULECLASS_SFX_LABEL" rows="3" validate="CssIdentifier" /> <field name="cache" type="list" label="COM_MODULES_FIELD_CACHING_LABEL" default="1" > <option value="1">JGLOBAL_USE_GLOBAL</option> <option value="0">COM_MODULES_FIELD_VALUE_NOCACHING</option> </field> <field name="cache_time" type="text" label="COM_MODULES_FIELD_CACHE_TIME_LABEL" default="900" /> <field name="cachemode" type="hidden" default="static" /> </fieldset> </fields> </config> </extension> PK�{�\�V�tmpl/index.htmlnu&1i�PK�{�\���X::^tmpl/default.phpnu&1i�PK�{�\]q&�))�services/provider.phpnu�[���PK�{�\+6�GooF%src/Dispatcher/Dispatcher.phpnu�[���PK�{�\*���+src/Helper/WeblinksHelper.phpnu�[���PK�{�\�V� �=index.htmlnu&1i�PK�{�\���eeV>mod_weblinks.xmlnu&1i�PKH�R
/home/opticamezl/www/newok/07d6c/../c9989/../cache/../mod_weblinks.zip