- md5
- 47793df7b29228732e67b408db191c04
- sha1
- 3a2eccef29ce4fd70591f97cdc09a376c14d21a3
- sha256
- 8080c36d1a0288e78ba652a047de72cf832b6f622a2755ffb5bda5eb6aa656f2
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
<?php
/**
* @version $Id: update.php 20196 2011-01-09 02:40:25Z ian $
* @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();
$this->setRedirect(JRoute::_('index.php?option=com_installer&view=update',false), $model->_message);
}
}
The same content is in 3 releases, Joomla 1.6.0 to 1.6.2. See them all, or every version of this file.