uawdijnntqw1x1x1
IP : 216.73.217.59
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
/
..
/
api
/
..
/
libraries
/
src
/
..
/
..
/
cli
/
..
/
cli
/
.
/
..
/
bin
/
..
/
article.tar
/
/
services/provider.php000064400000002463151721513320010737 0ustar00<?php /** * @package Joomla.Plugin * @subpackage Editors-xtd.article * * @copyright (C) 2023 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; use Joomla\CMS\Extension\PluginInterface; use Joomla\CMS\Factory; use Joomla\CMS\Plugin\PluginHelper; use Joomla\DI\Container; use Joomla\DI\ServiceProviderInterface; use Joomla\Event\DispatcherInterface; use Joomla\Plugin\EditorsXtd\Article\Extension\Article; return new class () implements ServiceProviderInterface { /** * Registers the service provider with a DI container. * * @param Container $container The DI container. * * @return void * * @since 4.3.0 */ public function register(Container $container) { $container->set( PluginInterface::class, function (Container $container) { $dispatcher = $container->get(DispatcherInterface::class); $plugin = new Article( $dispatcher, (array) PluginHelper::getPlugin('editors-xtd', 'article') ); $plugin->setApplication(Factory::getApplication()); return $plugin; } ); } }; article.xml000064400000001553151721513320006715 0ustar00<?xml version="1.0" encoding="UTF-8"?> <extension type="plugin" group="editors-xtd" method="upgrade"> <name>plg_editors-xtd_article</name> <author>Joomla! Project</author> <creationDate>2009-10</creationDate> <copyright>(C) 2009 Open Source Matters, Inc.</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>3.0.0</version> <description>PLG_ARTICLE_XML_DESCRIPTION</description> <namespace path="src">Joomla\Plugin\EditorsXtd\Article</namespace> <files> <folder plugin="article">services</folder> <folder>src</folder> </files> <languages> <language tag="en-GB">language/en-GB/plg_editors-xtd_article.ini</language> <language tag="en-GB">language/en-GB/plg_editors-xtd_article.sys.ini</language> </languages> </extension> src/Extension/Article.php000064400000005202151721513320011402 0ustar00<?php /** * @package Joomla.Plugin * @subpackage Editors-xtd.article * * @copyright (C) 2009 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ namespace Joomla\Plugin\EditorsXtd\Article\Extension; use Joomla\CMS\Language\Text; use Joomla\CMS\Object\CMSObject; use Joomla\CMS\Plugin\CMSPlugin; use Joomla\CMS\Session\Session; // phpcs:disable PSR1.Files.SideEffects \defined('_JEXEC') or die; // phpcs:enable PSR1.Files.SideEffects /** * Editor Article button * * @since 1.5 */ final class Article extends CMSPlugin { /** * Load the language file on instantiation. * * @var boolean * @since 3.1 */ protected $autoloadLanguage = true; /** * Display the button * * @param string $name The name of the button to add * * @return CMSObject|void The button options as CMSObject, void if ACL check fails. * * @since 1.5 */ public function onDisplay($name) { $user = $this->getApplication()->getIdentity(); // Can create in any category (component permission) or at least in one category $canCreateRecords = $user->authorise('core.create', 'com_content') || count($user->getAuthorisedCategories('com_content', 'core.create')) > 0; // Instead of checking edit on all records, we can use **same** check as the form editing view $values = (array) $this->getApplication()->getUserState('com_content.edit.article.id'); $isEditingRecords = count($values); // This ACL check is probably a double-check (form view already performed checks) $hasAccess = $canCreateRecords || $isEditingRecords; if (!$hasAccess) { return; } $link = 'index.php?option=com_content&view=articles&layout=modal&tmpl=component&' . Session::getFormToken() . '=1&editor=' . $name; $button = new CMSObject(); $button->modal = true; $button->link = $link; $button->text = Text::_('PLG_ARTICLE_BUTTON_ARTICLE'); $button->name = $this->_type . '_' . $this->_name; $button->icon = 'file-add'; $button->iconSVG = '<svg viewBox="0 0 32 32" width="24" height="24"><path d="M28 24v-4h-4v4h-4v4h4v4h4v-4h4v-4zM2 2h18v6h6v10h2v-10l-8-' . '8h-20v32h18v-2h-16z"></path></svg>'; $button->options = [ 'height' => '300px', 'width' => '800px', 'bodyHeight' => '70', 'modalWidth' => '80', ]; return $button; } } index.html000060400000000037151721513320006535 0ustar00<!DOCTYPE html><title></title>
/home/opticamezl/www/newok/07d6c/../api/../libraries/src/../../cli/../cli/./../bin/../article.tar