AAAAextensionupdate.php000066600000004236151373025710010511 0ustar00loadLanguage(); } /** * Returns an icon definition for an icon which looks for extensions updates * via AJAX and displays a notification when such updates are found. * * @param $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; } $cur_template = JFactory::getApplication()->getTemplate(); $ajax_url = JURI::base().'index.php?option=com_installer&view=update&task=update.ajax'; $script = "var plg_quickicon_extensionupdate_ajax_url = '$ajax_url';\n"; $script .= 'var plg_quickicon_extensionupdate_text = {"UPTODATE" : "'. JText::_('PLG_QUICKICON_EXTENSIONUPDATE_UPTODATE', true).'", "UPDATEFOUND": "'. JText::_('PLG_QUICKICON_EXTENSIONUPDATE_UPDATEFOUND', true).'", "ERROR": "'. JText::_('PLG_QUICKICON_EXTENSIONUPDATE_ERROR', true)."\"};\n"; $document = JFactory::getDocument(); $document->addScriptDeclaration($script); $document->addScript(JURI::base().'../media/plg_quickicon_extensionupdate/extensionupdatecheck.js'); return array(array( 'link' => 'index.php?option=com_installer&view=update', 'image' => 'header/icon-48-extension.png', 'text' => JText::_('PLG_QUICKICON_EXTENSIONUPDATE_CHECKING'), 'id' => 'plg_quickicon_extensionupdate' )); } } .htaccess000066600000000177151373025710006357 0ustar00 Order allow,deny Deny from all extensionupdate.xml000066600000002223151373025710010514 0ustar00 plg_quickicon_extensionupdate Joomla! Project August 2011 Copyright (C) 2005 - 2014 Open Source Matters. All rights reserved. http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL admin@joomla.org www.joomla.org 2.5.0 PLG_QUICKICON_EXTENSIONUPDATE_XML_DESCRIPTION extensionupdate.php index.html en-GB.plg_quickicon_extensionupdate.ini en-GB.plg_quickicon_extensionupdate.sys.ini
index.html000066600000000037151373025710006551 0ustar00