- md5
- 378b056e2c7e22e01f60806554a6596d
- sha1
- b24cda1ddf85acf9a755e8c732e3454906089eeb
- sha256
- 0f796c496be14891555af6f4c9e3e1c2323349a53f5230ab0a7e810aba49e9da
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
<?php
/**
* @version $Id: update.php 21170 2011-04-18 21:33:11Z dextercowley $
* @package Joomla.Administrator
* @subpackage com_installer
* @copyright Copyright (C) 2005 - 2011 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License, see LICENSE.php
*/
// No direct access
defined('_JEXEC') or die;
/**
* @package Joomla.Administrator
* @subpackage com_installer
*/
class InstallerControllerUpdate extends JController {
/**
* Update a set of extensions.
*
* @since 1.6
*/
function update()
{
// Check for request forgeries
JRequest::checkToken() or jexit(JText::_('JINVALID_TOKEN'));
$model = $this->getModel('update');
$uid = JRequest::getVar('cid', array(), '', 'array');
JArrayHelper::toInteger($uid, array());
if ($model->update($uid)) {
$cache = JFactory::getCache('mod_menu');
$cache->clean();
}
$this->setRedirect(JRoute::_('index.php?option=com_installer&view=update',false));
}
/**
* Find new updates.
*
* @since 1.6
*/
function find()
{
// Find updates
// Check for request forgeries
JRequest::checkToken() or jexit(JText::_('JINVALID_TOKEN'));
$model = $this->getModel('update');
$model->purge();
$result = $model->findUpdates();
$this->setRedirect(JRoute::_('index.php?option=com_installer&view=update',false));
//$view->display();
}
/**
* Purges updates.
*
* @since 1.6
*/
function purge()
{
// Purge updates
// Check for request forgeries
JRequest::checkToken() or jexit(JText::_('JINVALID_TOKEN'));
$model = $this->getModel('update');
$model->purge();
$model->enableSites();
$this->setRedirect(JRoute::_('index.php?option=com_installer&view=update',false), $model->_message);
}
}
The same content is in 4 releases, Joomla 1.6.3 to 1.6.6. See them all, or every version of this file.