| Server IP : 46.105.57.169 / Your IP : 216.73.217.35 Web Server : Apache System : Linux webm002.cluster120.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : verseaumee ( 152031) PHP Version : 8.5.7 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/verseaumee/123click/assets/ |
Upload File : |
PK ! "[؋\ \ joomlaupdate/joomlaupdate.xmlnu �[��� <?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>(C) 2011 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_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>
PK ! ���N N joomlaupdate/joomlaupdate.phpnu �[��� <?php
/**
* @package Joomla.Plugin
* @subpackage Quickicon.Joomlaupdate
*
* @copyright (C) 2011 Open Source Matters, Inc. <https://www.joomla.org>
* @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_joomlaupdate'))
{
return;
}
JHtml::_('jquery.framework');
$currentTemplate = JFactory::getApplication()->getTemplate();
$url = JUri::base() . 'index.php?option=com_joomlaupdate';
$ajaxUrl = JUri::base() . 'index.php?option=com_joomlaupdate&task=update.ajax&' . JSession::getFormToken() . '=1';
$script = array();
$script[] = 'var plg_quickicon_joomlaupdate_url = \'' . $url . '\';';
$script[] = 'var plg_quickicon_joomlaupdate_ajax_url = \'' . $ajaxUrl . '\';';
$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/' . $currentTemplate . '/images/header/icon-48-jupdate-uptodate.png",'
. '"UPDATEFOUND": "' . JUri::base(true) . '/templates/' . $currentTemplate . '/images/header/icon-48-jupdate-updatefound.png",'
. '"ERROR": "' . JUri::base(true) . '/templates/' . $currentTemplate . '/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'
)
);
}
}
PK ! ��f5 5 privacycheck/privacycheck.xmlnu �[��� <?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>(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>
<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>
PK ! �w ڔ � privacycheck/privacycheck.phpnu �[��� <?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
*/
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'
)
);
}
}
PK ! ��I��
�
! jcefilebrowser/jcefilebrowser.phpnu &1i� <?php
/**
* @package JCE
* @copyright Copyright (c) 2009-2016 Ryan Demmer. All rights reserved.
* @license GNU/GPL 2 or later - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
* JCE is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
*/
defined('_JEXEC') or die;
/**
* JCE File Browser Quick Icon plugin
*
* @package JCE
* @subpackage Quickicon.JCE
* @since 2.1
*/
class plgQuickiconJcefilebrowser extends JPlugin {
public function __construct(& $subject, $config) {
parent::__construct($subject, $config);
$app = JFactory::getApplication();
// only in Admin and only if the component is enabled
if ($app->isSite() || JComponentHelper::getComponent('com_jce', true)->enabled === false) {
return;
}
$this->loadLanguage();
}
public function onGetIcons($context) {
@include_once(JPATH_ADMINISTRATOR . '/components/com_jce/models/model.php');
// check for class to prevent fatal errors
if (!class_exists('WFModel')) {
return;
}
if ($context != $this->params->get('context', 'mod_quickicon') || WFModel::authorize('browser') === false) {
return;
}
$document = JFactory::getDocument();
$language = JFactory::getLanguage();
$language->load('com_jce', JPATH_ADMINISTRATOR);
$width = $this->params->get('width', 800);
$height = $this->params->get('height', 600);
$filter = $this->params->get('filter', '');
JHtml::_('behavior.modal');
$document->addScriptDeclaration(
"
window.addEvent('domready', function() {
SqueezeBox.assign($$('#plg_quickicon_jcefilebrowser a'), {
handler: 'iframe', size: {x: " . $width . ", y: " . $height . "}
});
});"
);
require_once(JPATH_ADMINISTRATOR . '/components/com_jce/helpers/browser.php');
$version = new JVersion;
$icon = $version->isCompatible('3.0') ? 'pictures' : 'header/icon-48-media.png';
$link = WFBrowserHelper::getBrowserLink('', $filter);
if ($link) {
return array(array(
'link' => $link,
'image' => $icon,
'icon' => 'pictures',
'access' => array('jce.browser', 'com_jce'),
'text' => JText::_('WF_QUICKICON_BROWSER'),
'id' => 'plg_quickicon_jcefilebrowser'
));
}
return array();
}
}PK ! ���� � ! jcefilebrowser/jcefilebrowser.xmlnu &1i� <?xml version="1.0" encoding="utf-8"?>
<extension version="2.5" type="plugin" group="quickicon" method="upgrade">
<name>plg_quickicon_jcefilebrowser</name>
<author>Ryan Demmer</author>
<creationDate>08 April 2016</creationDate>
<copyright>Copyright (C) 2006 - 2016 Ryan Demmer. All rights reserved</copyright>
<license>GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html</license>
<authorEmail>@@email@@</authorEmail>
<authorUrl>www.joomalcontenteditor.net</authorUrl>
<version>2.5.16</version>
<description>PLG_QUICKICON_JCEFILEBROWSER_XML_DESCRIPTION</description>
<files>
<filename plugin="jcefilebrowser">jcefilebrowser.php</filename>
</files>
<config>
<fields name="params"></fields>
</config>
</extension>
PK ! �Q~(� � jce/jce.xmlnu &1i� <?xml version="1.0" encoding="utf-8"?>
<extension version="2.5" type="plugin" group="quickicon" method="upgrade">
<name>plg_quickicon_jce</name>
<version>2.6.38</version>
<creationDate>14-03-2019</creationDate>
<author>Ryan Demmer</author>
<authorEmail>info@joomlacontenteditor.net</authorEmail>
<authorUrl>http://www.joomlacontenteditor.net</authorUrl>
<copyright>Copyright (C) 2006 - 2019 Ryan Demmer. All rights reserved</copyright>
<license>GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html</license>
<description>PLG_QUICKICON_JCE_XML_DESCRIPTION</description>
<files folder="plugins/quickicon/jce">
<filename plugin="jce">jce.php</filename>
</files>
<languages folder="administrator/language/en-GB">
<language tag="en-GB">en-GB.plg_quickicon_jce.ini</language>
<language tag="en-GB">en-GB.plg_quickicon_jce.sys.ini</language>
</languages>
</extension>
PK ! ���Q� � jce/jce.phpnu &1i� <?php
/**
* @copyright Copyright (c) 2009-2017 Ryan Demmer. All rights reserved
* @license GNU/GPL 2 or later - http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
* JCE is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses
*/
defined('_JEXEC') or die;
/**
* JCE File Browser Quick Icon plugin.
*
* @since 2.1
*/
class plgQuickiconJce extends JPlugin
{
public function __construct(&$subject, $config)
{
parent::__construct($subject, $config);
$app = JFactory::getApplication();
// only in Admin and only if the component is enabled
if ($app->isSite() || JComponentHelper::getComponent('com_jce', true)->enabled === false) {
return;
}
$this->loadLanguage();
}
public function onGetIcons($context)
{
@include_once JPATH_ADMINISTRATOR . '/components/com_jce/models/model.php';
// check for class to prevent fatal errors
if (!class_exists('WFModel')) {
return;
}
if ($context != $this->params->get('context', 'mod_quickicon') || WFModel::authorize('browser') === false) {
return;
}
$document = JFactory::getDocument();
$language = JFactory::getLanguage();
$language->load('com_jce', JPATH_ADMINISTRATOR);
$width = $this->params->get('width', 780);
$height = $this->params->get('height', 560);
$filter = $this->params->get('filter', '');
require_once JPATH_ADMINISTRATOR . '/components/com_jce/helpers/browser.php';
JHtml::_('behavior.modal');
$version = new JVersion();
if ($version->isCompatible('3.0')) {
$document->addScriptDeclaration("
jQuery('document').ready(function($) {
SqueezeBox.assign($('#plg_quickicon_jce a').get(), {
handler: 'iframe', size: {x: " . $width . ', y: ' . $height . '}
});
});'
);
$icon = 'pictures';
} else {
$document->addScriptDeclaration("
window.addEvent('domready', function() {
SqueezeBox.assign($$('#plg_quickicon_jce a'), {
handler: 'iframe', size: {x: " . $width . ', y: ' . $height . '}
});
});'
);
$icon = 'header/icon-48-media.png';
}
$link = WFBrowserHelper::getBrowserLink('', $filter);
if ($link) {
return array(array(
'link' => $link,
'image' => $icon,
'icon' => 'pictures',
'access' => array('jce.browser', 'com_jce'),
'text' => JText::_('PLG_QUICKICON_JCE_TITLE'),
'id' => 'plg_quickicon_jce',
));
}
return array();
}
}
PK ! ���� � # phpversioncheck/phpversioncheck.phpnu �[��� <?php
/**
* @package Joomla.Plugin
* @subpackage Quickicon.phpversioncheck
*
* @copyright (C) 2016 Open Source Matters, Inc. <https://www.joomla.org>
* @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',
),
'8.0' => array(
'security' => '2022-11-26',
'eos' => '2023-11-26',
),
'8.1' => array(
'security' => '2023-11-25',
'eos' => '2024-11-25',
),
);
// 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;
}
}
PK ! ���mI I # phpversioncheck/phpversioncheck.xmlnu �[��� <?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>(C) 2016 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.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>
PK ! ��Mq
q
# extensionupdate/extensionupdate.phpnu �[��� <?php
/**
* @package Joomla.Plugin
* @subpackage Quickicon.Extensionupdate
*
* @copyright (C) 2011 Open Source Matters, Inc. <https://www.joomla.org>
* @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'
)
);
}
}
PK ! J�Ƶu u # extensionupdate/extensionupdate.xmlnu �[��� <?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>(C) 2011 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_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>
PK ! j�K &