uawdijnntqw1x1x1
IP : 216.73.217.102
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
/
tmp
/
..
/
cli
/
..
/
plugins
/
..
/
tmp
/
..
/
api
/
..
/
tmp
/
..
/
media
/
..
/
privacycheck.tar
/
/
privacycheck.xml000064400000002262151721516600007747 0ustar00<?xml version="1.0" encoding="UTF-8"?> <extension type="plugin" group="quickicon" method="upgrade"> <name>plg_quickicon_privacycheck</name> <author>Joomla! Project</author> <creationDate>2018-06</creationDate> <copyright>(C) 2018 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.9.0</version> <description>PLG_QUICKICON_PRIVACYCHECK_XML_DESCRIPTION</description> <namespace path="src">Joomla\Plugin\Quickicon\PrivacyCheck</namespace> <files> <folder plugin="privacycheck">services</folder> <folder>src</folder> </files> <languages> <language tag="en-GB">language/en-GB/plg_quickicon_privacycheck.ini</language> <language tag="en-GB">language/en-GB/plg_quickicon_privacycheck.sys.ini</language> </languages> <config> <fields name="params"> <fieldset name="basic"> <field name="context" type="text" label="PLG_QUICKICON_PRIVACYCHECK_GROUP_LABEL" description="PLG_QUICKICON_PRIVACYCHECK_GROUP_DESC" default="update_quickicon" /> </fieldset> </fields> </config> </extension> services/provider.php000064400000002506151721516600010741 0ustar00<?php /** * @package Joomla.Plugin * @subpackage Quickicon.privacycheck * * @copyright (C) 2022 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\Quickicon\PrivacyCheck\Extension\PrivacyCheck; 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 PrivacyCheck( $dispatcher, (array) PluginHelper::getPlugin('quickicon', 'privacycheck') ); $plugin->setApplication(Factory::getApplication()); return $plugin; } ); } }; src/Extension/PrivacyCheck.php000064400000007460151721516600012406 0ustar00<?php /** * @package Joomla.Plugin * @subpackage Quickicon.privacycheck * * @copyright (C) 2018 Open Source Matters, Inc. <https://www.joomla.org> * @license GNU General Public License version 2 or later; see LICENSE.txt */ namespace Joomla\Plugin\Quickicon\PrivacyCheck\Extension; use Joomla\CMS\Component\ComponentHelper; use Joomla\CMS\Plugin\CMSPlugin; use Joomla\CMS\Session\Session; use Joomla\CMS\Uri\Uri; use Joomla\Event\SubscriberInterface; use Joomla\Module\Quickicon\Administrator\Event\QuickIconsEvent; // phpcs:disable PSR1.Files.SideEffects \defined('_JEXEC') or die; // phpcs:enable PSR1.Files.SideEffects /** * Plugin to check privacy requests older than 14 days * * @since 3.9.0 */ final class PrivacyCheck extends CMSPlugin implements SubscriberInterface { /** * Load plugin language files automatically * * @var boolean * @since 3.9.0 */ protected $autoloadLanguage = true; /** * Returns an array of events this subscriber will listen to. * * @return array * * @since 4.3.0 */ public static function getSubscribedEvents(): array { return [ 'onGetIcons' => 'onGetIcons', ]; } /** * Check privacy requests older than 14 days. * * @param QuickIconsEvent $event The event object * * @return void * * @since 3.9.0 */ public function onGetIcons(QuickIconsEvent $event): void { $context = $event->getContext(); if ( $context !== $this->params->get('context', 'update_quickicon') || !$this->getApplication()->getIdentity()->authorise('core.admin', 'com_privacy') || !ComponentHelper::isEnabled('com_privacy') ) { return; } $token = Session::getFormToken() . '=' . 1; $privacy = 'index.php?option=com_privacy'; $options = [ 'plg_quickicon_privacycheck_url' => Uri::base() . $privacy . '&view=requests&filter[status]=1&list[fullordering]=a.requested_at ASC', 'plg_quickicon_privacycheck_ajax_url' => Uri::base() . $privacy . '&task=getNumberUrgentRequests&format=json&' . $token, 'plg_quickicon_privacycheck_text' => [ "NOREQUEST" => $this->getApplication()->getLanguage()->_('PLG_QUICKICON_PRIVACYCHECK_NOREQUEST'), "REQUESTFOUND" => $this->getApplication()->getLanguage()->_('PLG_QUICKICON_PRIVACYCHECK_REQUESTFOUND'), "ERROR" => $this->getApplication()->getLanguage()->_('PLG_QUICKICON_PRIVACYCHECK_ERROR'), "REQUESTFOUND_MESSAGE" => $this->getApplication()->getLanguage()->_('PLG_QUICKICON_PRIVACYCHECK_REQUESTFOUND_MESSAGE'), "REQUESTFOUND_BUTTON" => $this->getApplication()->getLanguage()->_('PLG_QUICKICON_PRIVACYCHECK_REQUESTFOUND_BUTTON'), ], ]; $this->getApplication()->getDocument()->addScriptOptions('js-privacy-check', $options); $this->getApplication()->getDocument()->getWebAssetManager() ->registerAndUseScript('plg_quickicon_privacycheck', 'plg_quickicon_privacycheck/privacycheck.js', [], ['defer' => true], ['core']); // Add the icon to the result array $result = $event->getArgument('result', []); $result[] = [ [ 'link' => $privacy . '&view=requests&filter[status]=1&list[fullordering]=a.requested_at ASC', 'image' => 'icon-users', 'icon' => '', 'text' => $this->getApplication()->getLanguage()->_('PLG_QUICKICON_PRIVACYCHECK_CHECKING'), 'id' => 'plg_quickicon_privacycheck', 'group' => 'MOD_QUICKICON_USERS', ], ]; $event->setArgument('result', $result); } }
/home/opticamezl/www/newok/tmp/../cli/../plugins/../tmp/../api/../tmp/../media/../privacycheck.tar