Spade

Mini Shell

Directory:~$ /proc/self/root/home/lmsyaran/public_html/css/
Upload File

[Home] [System Details] [Kill Me]
Current File:~$ //proc/self/root/home/lmsyaran/public_html/css/quickicon.tar

extensionupdate/extensionupdate.php000064400000005176151166410400013722
0ustar00<?php
/**
 * @package     Joomla.Plugin
 * @subpackage  Quickicon.Extensionupdate
 *
 * @copyright   Copyright (C) 2005 - 2020 Open Source Matters, Inc. All
rights reserved.
 * @license     GNU General Public License version 2 or later; see
LICENSE.txt
 */

defined('_JEXEC') or die;

/**
 * Joomla! update notification plugin
 *
 * @since  2.5
 */
class PlgQuickiconExtensionupdate extends JPlugin
{
	/**
	 * Load the language file on instantiation.
	 *
	 * @var    boolean
	 * @since  3.1
	 */
	protected $autoloadLanguage = true;

	/**
	 * Returns an icon definition for an icon which looks for extensions
updates
	 * via AJAX and displays a notification when such updates are found.
	 *
	 * @param   string  $context  The calling context
	 *
	 * @return  array  A list of icon definition associative arrays,
consisting of the
	 *                 keys link, image, text and access.
	 *
	 * @since   2.5
	 */
	public function onGetIcons($context)
	{
		if ($context !== $this->params->get('context',
'mod_quickicon') ||
!JFactory::getUser()->authorise('core.manage',
'com_installer'))
		{
			return;
		}

		JHtml::_('jquery.framework');

		$token    = JSession::getFormToken() . '=' . 1;
		$url      = JUri::base() .
'index.php?option=com_installer&view=update&task=update.find&'
. $token;
		$ajax_url = JUri::base() .
'index.php?option=com_installer&view=update&task=update.ajax&'
. $token;
		$script   = array();
		$script[] = 'var plg_quickicon_extensionupdate_url = \'' .
$url . '\';';
		$script[] = 'var plg_quickicon_extensionupdate_ajax_url =
\'' . $ajax_url . '\';';
		$script[] = 'var plg_quickicon_extensionupdate_text = {'
			. '"UPTODATE" : "' .
JText::_('PLG_QUICKICON_EXTENSIONUPDATE_UPTODATE', true) .
'",'
			. '"UPDATEFOUND": "' .
JText::_('PLG_QUICKICON_EXTENSIONUPDATE_UPDATEFOUND', true) .
'",'
			. '"UPDATEFOUND_MESSAGE": "' .
JText::_('PLG_QUICKICON_EXTENSIONUPDATE_UPDATEFOUND_MESSAGE',
true) . '",'
			. '"UPDATEFOUND_BUTTON": "' .
JText::_('PLG_QUICKICON_EXTENSIONUPDATE_UPDATEFOUND_BUTTON',
true) . '",'
			. '"ERROR": "' .
JText::_('PLG_QUICKICON_EXTENSIONUPDATE_ERROR', true) .
'",'
			. '};';
		JFactory::getDocument()->addScriptDeclaration(implode("\n",
$script));
		JHtml::_('script',
'plg_quickicon_extensionupdate/extensionupdatecheck.js',
array('version' => 'auto', 'relative'
=> true));

		return array(
			array(
				'link'  =>
'index.php?option=com_installer&view=update&task=update.find&'
. $token,
				'image' => 'asterisk',
				'icon'  => 'header/icon-48-extension.png',
				'text'  =>
JText::_('PLG_QUICKICON_EXTENSIONUPDATE_CHECKING'),
				'id'    => 'plg_quickicon_extensionupdate',
				'group' => 'MOD_QUICKICON_MAINTENANCE'
			)
		);
	}
}
extensionupdate/extensionupdate.xml000064400000002226151166410400013724
0ustar00<?xml version="1.0" encoding="utf-8"?>
<extension version="3.1" type="plugin"
group="quickicon" method="upgrade">
	<name>plg_quickicon_extensionupdate</name>
	<author>Joomla! Project</author>
	<creationDate>August 2011</creationDate>
	<copyright>Copyright (C) 2005 - 2020 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>3.0.0</version>
	<description>PLG_QUICKICON_EXTENSIONUPDATE_XML_DESCRIPTION</description>
	<files>
		<filename
plugin="extensionupdate">extensionupdate.php</filename>
	</files>
	<languages>
		<language
tag="en-GB">en-GB.plg_quickicon_extensionupdate.ini</language>
		<language
tag="en-GB">en-GB.plg_quickicon_extensionupdate.sys.ini</language>
	</languages>
	<config>
		<fields name="params">
			<fieldset name="basic">
				<field 
					name="context"
					type="text"
					label="PLG_QUICKICON_EXTENSIONUPDATE_GROUP_LABEL"
					description="PLG_QUICKICON_EXTENSIONUPDATE_GROUP_DESC"
					default="mod_quickicon"
				/>
			</fieldset>
		</fields>
	</config>
</extension>
gantry5/gantry5.php000064400000005606151166410400010244 0ustar00<?php
/**
 * @package   Gantry 5
 * @author    RocketTheme http://www.rockettheme.com
 * @copyright Copyright (C) 2007 - 2017 RocketTheme, LLC
 * @license   GNU/GPLv2 and later
 *
 * http://www.gnu.org/licenses/gpl-2.0.html
 */
defined('_JEXEC') or die;

class plgQuickiconGantry5 extends JPlugin
{
    public function __construct(&$subject, $config)
    {
        // Do not load if Gantry libraries are not installed or
initialised.
        if (!class_exists('Gantry5\Loader')) return;

        parent::__construct($subject, $config);

        // Always load language.
        $lang = JFactory::getLanguage();
        $lang->load('com_gantry5.sys') ||
$lang->load('com_gantry5.sys', JPATH_ADMINISTRATOR .
'/components/com_gantry5');
        $this->loadLanguage('plg_quickicon_gantry5.sys');
    }

    /**
     * Display Gantry 5 backend icon
     *
     * @param string $context
     * @return array|null
     */
    public function onGetIcons($context)
    {
        $user = JFactory::getUser();

        if ($context != $this->params->get('context',
'mod_quickicon')
            || !$user->authorise('core.manage',
'com_gantry5')) {
            return null;
        }

        try {
            $updates = null;
            if ($user->authorise('core.manage',
'com_installer'))
            {
                // Initialise Gantry.
                Gantry5\Loader::setup();
                $gantry = Gantry\Framework\Gantry::instance();
                $gantry['streams']->register();

                /** @var Gantry\Framework\Platform $platform */
                $platform = $gantry['platform'];
                $updates = $platform->updates();
            }
        } catch (Exception $e) {
            $app = JFactory::getApplication();
            $app->enqueueMessage($e->getMessage(),
'warning');
            $updates = false;
        }

        $quickicons = array(
            array(
                'link' =>
JRoute::_('index.php?option=com_gantry5'),
                'image' => 'eye',
                'text' => JText::_('COM_GANTRY5'),
                'group' =>
'MOD_QUICKICON_EXTENSIONS',
                'access' => array('core.manage',
'com_gantry5')
            )
        );

        if ($updates === false) {
            // Disabled
            $quickicons[] = array(
                'link' =>
JRoute::_('index.php?option=com_gantry5'),
                'image' => 'eye',
                'text' =>
JText::_('PLG_QUICKICON_GANTRY5_UPDATES_DISABLED'),
                'group' =>
'MOD_QUICKICON_MAINTENANCE'
            );

        } elseif (!empty($updates)) {
            // Has updates
            $quickicons[] = array(
                'link' =>
JRoute::_('index.php?option=com_installer&view=update'),
                'image' => 'download',
                'text' =>
JText::_('PLG_QUICKICON_GANTRY5_UPDATE_NOW'),
                'group' =>
'MOD_QUICKICON_MAINTENANCE'
            );
        }

        return $quickicons;
    }
}
gantry5/gantry5.xml000064400000002262151166410400010250 0ustar00<?xml
version="1.0" encoding="UTF-8"
standalone="no"?>
<extension version="3.4" type="plugin"
group="quickicon" method="upgrade">
    <name>plg_quickicon_gantry5</name>
    <version>5.4.37</version>
    <creationDate>January 25, 2021</creationDate>
    <author>RocketTheme, LLC</author>
    <authorEmail>support@rockettheme.com</authorEmail>
    <authorUrl>http://www.rockettheme.com</authorUrl>
    <copyright>(C) 2005 - 2019 RocketTheme, LLC. All rights
reserved.</copyright>
    <license>http://www.gnu.org/licenses/gpl-2.0.html
GNU/GPL</license>
   
<description>PLG_QUICKICON_GANTRY5_DESCRIPTION</description>

    <files>
        <filename
plugin="gantry5">gantry5.php</filename>
        <filename>MD5SUMS</filename>
        <folder>language</folder>
    </files>

    <config>
        <fields name="params">
            <fieldset name="basic">
                <field name="context"
                       type="text"
                       default="mod_quickicon"
                      
description="PLG_QUICKICON_GANTRY5_GROUP_DESC"
                       label="PLG_QUICKICON_GANTRY5_GROUP_LABEL"
                        />
            </fieldset>
        </fields>
    </config>
</extension>
gantry5/language/en-GB/en-GB.plg_quickicon_gantry5.sys.ini000064400000000723151166410400017315
0ustar00PLG_QUICKICON_GANTRY5="Quick Icon - Gantry 5"
PLG_QUICKICON_GANTRY5_DESCRIPTION="Displays Gantry 5 and its updates
in Joomla Control Panel page."

PLG_QUICKICON_GANTRY5_UPDATE_NOW="Gantry 5 - Update now!"
PLG_QUICKICON_GANTRY5_UPDATES_DISABLED="Gantry 5 Updates
disabled"

PLG_QUICKICON_GANTRY5_GROUP_DESC="The group of this plugin (this value
is compared with the group value used in 'Quick Icons' modules to
inject icons)"
PLG_QUICKICON_GANTRY5_GROUP_LABEL="Group"
gantry5/MD5SUMS000064400000000327151166410400007155
0ustar00language/en-GB/en-GB.plg_quickicon_gantry5.sys.ini	6c74971e95e095ea9511c25336dcd19a
gantry5.xml	4e7f62f0fbfddefb16d773510ac0f391
MD5SUMS	d41d8cd98f00b204e9800998ecf8427e
gantry5.php	ce06d8c4f4eaadec5a31bcd300d30f00
hikashop/hikashop.php000064400000002626151166410400010675 0ustar00<?php
/**
 * @package	HikaShop for Joomla!
 * @version	4.4.1
 * @author	hikashop.com
 * @copyright	(C) 2010-2021 HIKARI SOFTWARE. All rights reserved.
 * @license	GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
 */
defined('_JEXEC') or die('Restricted access');
?><?php
class plgQuickiconHikaShop  extends JPlugin {
	public function __construct(&$subject, $config) {
		parent::__construct($subject, $config);
		$this->loadLanguage('com_hikashop.sys');
	}

	public function onGetIcons($context) {
		if(!defined('DS'))
			define('DS',DIRECTORY_SEPARATOR);
		$hikashopHelper =
rtrim(JPATH_ADMINISTRATOR,DS).DS.'components'.DS.'com_hikashop'.DS.'helpers'.DS.'helper.php';
		if($context != $this->params->get('context',
'mod_quickicon') || !file_exists($hikashopHelper) ||
!JFactory::getUser()->authorise('core.manage',
'com_hikashop')) {
			return;
		}

		if(version_compare(JVERSION, '4.0', '>=')) {
			$img = 'fa fa-shopping-cart';
		} else if(version_compare(JVERSION, '3.0', '>='))
{
			$img = 'cart';
		} else {
			$img =
JURI::base().'../media/com_hikashop/images/icons/icon-48-hikashop.png';
		}

		return array(
			array(
				'link' =>
JRoute::_('index.php?option=com_hikashop'),
				'image' => $img,
				'text' =>
$this->params->get('displayedtext',
JText::_('HIKASHOP')),
				'access' => array('core.manage',
'com_hikashop'),
				'id' => 'plg_quickicon_hikashop'
			)
		);
	}
}
hikashop/hikashop.xml000064400000001707151166410400010705 0ustar00<?xml
version="1.0" encoding="utf-8"?>
<extension version="2.5" type="plugin"
group="quickicon" method="upgrade">
	<name>HikaShop Quick Icon</name>
	<creationDate>12 février 2021</creationDate>
	<version>4.4.1</version>
	<author>Obsidev</author>
	<authorEmail>jerome@obsidev.com</authorEmail>
	<authorUrl>http://www.hikashop.com</authorUrl>
	<copyright>Copyright (c) 2011-2021 Obsidev S.A.R.L. All rights
reserved.</copyright>
	<license>http://www.gnu.org/licenses/gpl-3.0.html
GNU/GPL</license>
	<description>HikaShop Quick Icon</description>
	<files>
		<filename
plugin="hikashop">hikashop.php</filename>
	</files>
	<config>
		<fields name="params">
			<fieldset name="basic">
				<field name="context" type="text"
default="mod_quickicon" description="QUICKICON_GROUP"
label="GROUP" />
				<field name="displayedtext" type="text"
default="" description="ICON_LEGEND"
label="ICON_LEGEND" />
			</fieldset>
		</fields>
	</config>
</extension>
hikashop/index.html000064400000000054151166410400010344
0ustar00<html><body
bgcolor="#FFFFFF"></body></html>joomlaupdate/joomlaupdate.php000064400000006150151166410400012425
0ustar00<?php
/**
 * @package     Joomla.Plugin
 * @subpackage  Quickicon.Joomlaupdate
 *
 * @copyright   Copyright (C) 2005 - 2020 Open Source Matters, Inc. All
rights reserved.
 * @license     GNU General Public License version 2 or later; see
LICENSE.txt
 */

defined('_JEXEC') or die;

/**
 * Joomla! update notification plugin
 *
 * @since  2.5
 */
class PlgQuickiconJoomlaupdate extends JPlugin
{
	/**
	 * Load the language file on instantiation.
	 *
	 * @var    boolean
	 * @since  3.1
	 */
	protected $autoloadLanguage = true;

	/**
	 * This method is called when the Quick Icons module is constructing its
set
	 * of icons. You can return an array which defines a single icon and it
will
	 * be rendered right after the stock Quick Icons.
	 *
	 * @param   string  $context  The calling context
	 *
	 * @return  array  A list of icon definition associative arrays,
consisting of the
	 *                 keys link, image, text and access.
	 *
	 * @since   2.5
	 */
	public function onGetIcons($context)
	{
		if ($context !== $this->params->get('context',
'mod_quickicon') ||
!JFactory::getUser()->authorise('core.manage',
'com_installer'))
		{
			return;
		}

		JHtml::_('jquery.framework');

		$cur_template = JFactory::getApplication()->getTemplate();

		$token    = JSession::getFormToken() . '=' . 1;
		$url = JUri::base() . 'index.php?option=com_joomlaupdate';
		$ajax_url = JUri::base() .
'index.php?option=com_installer&view=update&task=update.ajax&'
. $token;
		$script = array();
		$script[] = 'var plg_quickicon_joomlaupdate_url = \'' .
$url . '\';';
		$script[] = 'var plg_quickicon_joomlaupdate_ajax_url = \''
. $ajax_url . '\';';
		$script[] = 'var plg_quickicon_jupdatecheck_jversion = \''
. JVERSION . '\'';
		$script[] = 'var plg_quickicon_joomlaupdate_text = {'
			. '"UPTODATE" : "' .
JText::_('PLG_QUICKICON_JOOMLAUPDATE_UPTODATE', true) .
'",'
			. '"UPDATEFOUND": "' .
JText::_('PLG_QUICKICON_JOOMLAUPDATE_UPDATEFOUND', true) .
'",'
			. '"UPDATEFOUND_MESSAGE": "' .
JText::_('PLG_QUICKICON_JOOMLAUPDATE_UPDATEFOUND_MESSAGE', true)
. '",'
			. '"UPDATEFOUND_BUTTON": "' .
JText::_('PLG_QUICKICON_JOOMLAUPDATE_UPDATEFOUND_BUTTON', true) .
'",'
			. '"ERROR": "' .
JText::_('PLG_QUICKICON_JOOMLAUPDATE_ERROR', true) .
'",'
			. '};';
		$script[] = 'var plg_quickicon_joomlaupdate_img = {'
			. '"UPTODATE" : "' . JUri::base(true) .
'/templates/' . $cur_template .
'/images/header/icon-48-jupdate-uptodate.png",'
			. '"UPDATEFOUND": "' . JUri::base(true) .
'/templates/' . $cur_template .
'/images/header/icon-48-jupdate-updatefound.png",'
			. '"ERROR": "' . JUri::base(true) .
'/templates/' . $cur_template .
'/images/header/icon-48-deny.png",'
			. '};';
		JFactory::getDocument()->addScriptDeclaration(implode("\n",
$script));
		JHtml::_('script',
'plg_quickicon_joomlaupdate/jupdatecheck.js',
array('version' => 'auto', 'relative'
=> true));

		return array(
			array(
				'link' => 'index.php?option=com_joomlaupdate',
				'image' => 'joomla',
				'icon' => 'header/icon-48-download.png',
				'text' =>
JText::_('PLG_QUICKICON_JOOMLAUPDATE_CHECKING'),
				'id' => 'plg_quickicon_joomlaupdate',
				'group' => 'MOD_QUICKICON_MAINTENANCE'
			)
		);
	}
}
joomlaupdate/joomlaupdate.xml000064400000002175151166410400012441
0ustar00<?xml version="1.0" encoding="utf-8"?>
<extension version="3.1" type="plugin"
group="quickicon" method="upgrade">
	<name>plg_quickicon_joomlaupdate</name>
	<author>Joomla! Project</author>
	<creationDate>August 2011</creationDate>
	<copyright>Copyright (C) 2005 - 2020 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>3.0.0</version>
	<description>PLG_QUICKICON_JOOMLAUPDATE_XML_DESCRIPTION</description>
	<files>
		<filename
plugin="joomlaupdate">joomlaupdate.php</filename>
	</files>
	<languages>
		<language
tag="en-GB">en-GB.plg_quickicon_joomlaupdate.ini</language>
		<language
tag="en-GB">en-GB.plg_quickicon_joomlaupdate.sys.ini</language>
	</languages>
	<config>
		<fields name="params">
			<fieldset name="basic">
				<field
					name="context"
					type="text"
					label="PLG_QUICKICON_JOOMLAUPDATE_GROUP_LABEL"
					description="PLG_QUICKICON_JOOMLAUPDATE_GROUP_DESC"
					default="mod_quickicon"
				/>
			</fieldset>
		</fields>
	</config>
</extension>
phpversioncheck/phpversioncheck.php000064400000013442151166410400013645
0ustar00<?php
/**
 * @package     Joomla.Plugin
 * @subpackage  Quickicon.phpversioncheck
 *
 * @copyright   Copyright (C) 2005 - 2020 Open Source Matters, Inc. All
rights reserved.
 * @license     GNU General Public License version 2 or later; see
LICENSE.txt
 */

defined('_JEXEC') or die;

/**
 * Plugin to check the PHP version and display a warning about its support
status
 *
 * @since  3.7.0
 */
class PlgQuickiconPhpVersionCheck extends JPlugin
{
	/**
	 * Constant representing the active PHP version being fully supported
	 *
	 * @var    integer
	 * @since  3.7.0
	 */
	const PHP_SUPPORTED = 0;

	/**
	 * Constant representing the active PHP version receiving security support
only
	 *
	 * @var    integer
	 * @since  3.7.0
	 */
	const PHP_SECURITY_ONLY = 1;

	/**
	 * Constant representing the active PHP version being unsupported
	 *
	 * @var    integer
	 * @since  3.7.0
	 */
	const PHP_UNSUPPORTED = 2;

	/**
	 * Application object.
	 *
	 * @var    JApplicationCms
	 * @since  3.7.0
	 */
	protected $app;

	/**
	 * Load plugin language files automatically
	 *
	 * @var    boolean
	 * @since  3.7.0
	 */
	protected $autoloadLanguage = true;

	/**
	 * Check the PHP version after the admin component has been dispatched.
	 *
	 * @param   string  $context  The calling context
	 *
	 * @return  void
	 *
	 * @since   3.7.0
	 */
	public function onGetIcons($context)
	{
		if (!$this->shouldDisplayMessage())
		{
			return;
		}

		$supportStatus = $this->getPhpSupport();

		if ($supportStatus['status'] !== self::PHP_SUPPORTED)
		{
			// Enqueue the notification message; set a warning if receiving security
support or "error" if unsupported
			switch ($supportStatus['status'])
			{
				case self::PHP_SECURITY_ONLY:
					$this->app->enqueueMessage($supportStatus['message'],
'warning');

					break;

				case self::PHP_UNSUPPORTED:
					$this->app->enqueueMessage($supportStatus['message'],
'error');

					break;
			}
		}
	}

	/**
	 * Gets PHP support status.
	 *
	 * @return  array  Array of PHP support data
	 *
	 * @since   3.7.0
	 * @note    The dates used in this method should correspond to the dates
given on PHP.net
	 * @link    https://www.php.net/supported-versions.php
	 * @link    https://www.php.net/eol.php
	 */
	private function getPhpSupport()
	{
		$phpSupportData = array(
			'5.3' => array(
				'security' => '2013-07-11',
				'eos'      => '2014-08-14',
			),
			'5.4' => array(
				'security' => '2014-09-14',
				'eos'      => '2015-09-14',
			),
			'5.5' => array(
				'security' => '2015-07-10',
				'eos'      => '2016-07-21',
			),
			'5.6' => array(
				'security' => '2017-01-19',
				'eos'      => '2018-12-31',
			),
			'7.0' => array(
				'security' => '2017-12-03',
				'eos'      => '2018-12-03',
			),
			'7.1' => array(
				'security' => '2018-12-01',
				'eos'      => '2019-12-01',
			),
			'7.2' => array(
				'security' => '2019-11-30',
				'eos'      => '2020-11-30',
			),
			'7.3' => array(
				'security' => '2020-12-06',
				'eos'      => '2021-12-06',
			),
			'7.4' => array(
				'security' => '2021-11-28',
				'eos'      => '2022-11-28',
			),
		);

		// Fill our return array with default values
		$supportStatus = array(
			'status'  => self::PHP_SUPPORTED,
			'message' => null,
		);

		// Check the PHP version's support status using the minor version
		$activePhpVersion = PHP_MAJOR_VERSION . '.' .
PHP_MINOR_VERSION;

		// Do we have the PHP version's data?
		if (isset($phpSupportData[$activePhpVersion]))
		{
			// First check if the version has reached end of support
			$today           = new JDate;
			$phpEndOfSupport = new
JDate($phpSupportData[$activePhpVersion]['eos']);

			if ($phpNotSupported = $today > $phpEndOfSupport)
			{
				/*
				 * Find the oldest PHP version still supported that is newer than the
current version,
				 * this is our recommendation for users on unsupported platforms
				 */
				foreach ($phpSupportData as $version => $versionData)
				{
					$versionEndOfSupport = new JDate($versionData['eos']);

					if (version_compare($version, $activePhpVersion, 'ge')
&& ($today < $versionEndOfSupport))
					{
						$supportStatus['status']  = self::PHP_UNSUPPORTED;
						$supportStatus['message'] = JText::sprintf(
							'PLG_QUICKICON_PHPVERSIONCHECK_UNSUPPORTED',
							PHP_VERSION,
							$version,
							$versionEndOfSupport->format(JText::_('DATE_FORMAT_LC4'))
						);

						return $supportStatus;
					}
				}

				// PHP version is not supported and we don't know of any supported
versions.
				$supportStatus['status']  = self::PHP_UNSUPPORTED;
				$supportStatus['message'] =
JText::sprintf('PLG_QUICKICON_PHPVERSIONCHECK_UNSUPPORTED_JOOMLA_OUTDATED',
PHP_VERSION);

				return $supportStatus;
			}

			// If the version is still supported, check if it has reached eol minus
3 month
			$securityWarningDate = clone $phpEndOfSupport;
			$securityWarningDate->sub(new DateInterval('P3M'));

			if (!$phpNotSupported && $today > $securityWarningDate)
			{
				$supportStatus['status']  = self::PHP_SECURITY_ONLY;
				$supportStatus['message'] = JText::sprintf(
					'PLG_QUICKICON_PHPVERSIONCHECK_SECURITY_ONLY', PHP_VERSION,
$phpEndOfSupport->format(JText::_('DATE_FORMAT_LC4'))
				);
			}
		}

		return $supportStatus;
	}

	/**
	 * Determines if the message should be displayed
	 *
	 * @return  boolean
	 *
	 * @since   3.7.0
	 */
	private function shouldDisplayMessage()
	{
		// Only on admin app
		if (!$this->app->isClient('administrator'))
		{
			return false;
		}

		// Only if authenticated
		if (JFactory::getUser()->guest)
		{
			return false;
		}

		// Only on HTML documents
		if ($this->app->getDocument()->getType() !== 'html')
		{
			return false;
		}

		// Only on full page requests
		if ($this->app->input->getCmd('tmpl',
'index') === 'component')
		{
			return false;
		}

		// Only to com_cpanel
		if ($this->app->input->get('option') !==
'com_cpanel')
		{
			return false;
		}

		return true;
	}
}
phpversioncheck/phpversioncheck.xml000064400000001552151166410400013655
0ustar00<?xml version="1.0" encoding="utf-8"?>
<extension version="3.7" type="plugin"
group="quickicon" method="upgrade">
	<name>plg_quickicon_phpversioncheck</name>
	<author>Joomla! Project</author>
	<creationDate>August 2016</creationDate>
	<copyright>Copyright (C) 2005 - 2020 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>3.7.0</version>
	<description>PLG_QUICKICON_PHPVERSIONCHECK_XML_DESCRIPTION</description>
	<files>
		<filename
plugin="phpversioncheck">phpversioncheck.php</filename>
	</files>
	<languages>
		<language
tag="en-GB">en-GB.plg_quickicon_phpversioncheck.ini</language>
		<language
tag="en-GB">en-GB.plg_quickicon_phpversioncheck.sys.ini</language>
	</languages>
</extension>
privacycheck/privacycheck.php000064400000004641151166410400012406
0ustar00<?php
/**
 * @package     Joomla.Plugin
 * @subpackage  Quickicon.privacycheck
 *
 * @copyright   Copyright (C) 2005 - 2020 Open Source Matters, Inc. All
rights reserved.
 * @license     GNU General Public License version 2 or later; see
LICENSE.txt
 */

defined('_JEXEC') or die;

use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
use Joomla\CMS\Session\Session;
use Joomla\CMS\Uri\Uri;

/**
 * Plugin to check privacy requests older than 14 days
 *
 * @since  3.9.0
 */
class PlgQuickiconPrivacyCheck extends JPlugin
{
	/**
	 * Load plugin language files automatically
	 *
	 * @var    boolean
	 * @since  3.9.0
	 */
	protected $autoloadLanguage = true;

	/**
	 * Check privacy requests older than 14 days.
	 *
	 * @param   string  $context  The calling context
	 *
	 * @return  array   A list of icon definition associative arrays
	 *
	 * @since   3.9.0
	 */
	public function onGetIcons($context)
	{
		if ($context !== $this->params->get('context',
'mod_quickicon') ||
!Factory::getUser()->authorise('core.admin'))
		{
			return;
		}

		JHtml::_('jquery.framework');

		$token    = Session::getFormToken() . '=' . 1;
		$privacy  = 'index.php?option=com_privacy';

		$options  = array(
			'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&' . $token,
			'plg_quickicon_privacycheck_text'     => array(
				"NOREQUEST"            =>
Text::_('PLG_QUICKICON_PRIVACYCHECK_NOREQUEST'),
				"REQUESTFOUND"         =>
Text::_('PLG_QUICKICON_PRIVACYCHECK_REQUESTFOUND'),
				"REQUESTFOUND_MESSAGE" =>
Text::_('PLG_QUICKICON_PRIVACYCHECK_REQUESTFOUND_MESSAGE'),
				"REQUESTFOUND_BUTTON"  =>
Text::_('PLG_QUICKICON_PRIVACYCHECK_REQUESTFOUND_BUTTON'),
				"ERROR"                =>
Text::_('PLG_QUICKICON_PRIVACYCHECK_ERROR'),
			)
		);

		Factory::getDocument()->addScriptOptions('js-privacy-check',
$options);

		JHtml::_('script',
'plg_quickicon_privacycheck/privacycheck.js',
array('version' => 'auto', 'relative'
=> true));

		return array(
			array(
				'link'  => $privacy .
'&view=requests&filter[status]=1&list[fullordering]=a.requested_at
ASC',
				'image' => 'users',
				'icon'  => 'header/icon-48-user.png',
				'text'  =>
Text::_('PLG_QUICKICON_PRIVACYCHECK_CHECKING'),
				'id'    => 'plg_quickicon_privacycheck',
				'group' => 'MOD_QUICKICON_USERS'
			)
		);
	}
}
privacycheck/privacycheck.xml000064400000001526151166410400012416
0ustar00<?xml version="1.0" encoding="utf-8"?>
<extension version="3.9" type="plugin"
group="quickicon" method="upgrade">
	<name>plg_quickicon_privacycheck</name>
	<author>Joomla! Project</author>
	<creationDate>June 2018</creationDate>
	<copyright>Copyright (C) 2005 - 2020 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>3.9.0</version>
	<description>PLG_QUICKICON_PRIVACYCHECK_XML_DESCRIPTION</description>
	<files>
		<filename
plugin="privacycheck">privacycheck.php</filename>
	</files>
	<languages>
		<language
tag="en-GB">en-GB.plg_quickicon_privacycheck.ini</language>
		<language
tag="en-GB">en-GB.plg_quickicon_privacycheck.sys.ini</language>
	</languages>
</extension>