Source for file update.php
Documentation is available at update.php
* @package Joomla.Administrator
* @subpackage com_joomlaupdate
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
* The Joomla! update controller for the Update view
* @package Joomla.Administrator
* @subpackage com_joomlaupdate
* Performs the download of the update package
$options['format'] =
'{DATE}\t{TIME}\t{LEVEL}\t{CODE}\t{MESSAGE}';
$options['text_file'] =
'joomla_update.php';
$file =
$model->download();
$url =
'index.php?option=com_joomlaupdate&task=update.install';
$url =
'index.php?option=com_joomlaupdate';
$message =
JText::_('COM_JOOMLAUPDATE_VIEW_UPDATE_DOWNLOADFAILED');
* Start the installation of the new Joomla! version
$options['format'] =
'{DATE}\t{TIME}\t{LEVEL}\t{CODE}\t{MESSAGE}';
$options['text_file'] =
'joomla_update.php';
$model->createRestorationFile($file);
* Finalise the upgrade by running the necessary scripts
$options['format'] =
'{DATE}\t{TIME}\t{LEVEL}\t{CODE}\t{MESSAGE}';
$options['text_file'] =
'joomla_update.php';
$model->finaliseUpgrade();
$url =
'index.php?option=com_joomlaupdate&task=update.cleanup';
* Clean up after ourselves
$options['format'] =
'{DATE}\t{TIME}\t{LEVEL}\t{CODE}\t{MESSAGE}';
$options['text_file'] =
'joomla_update.php';
$url =
'index.php?option=com_joomlaupdate&layout=complete';
// Check for request forgeries
$url =
'index.php?option=com_joomlaupdate';
* Method to display a view.
* @param boolean $cachable If true, the view output will be cached
* @param array $urlparams An array of safe url parameters and their variable types, for valid values see {@link JFilterInput::clean()}.
* @return JoomlaupdateControllerUpdate This object to support chaining.
public function display($cachable =
false, $urlparams =
array())
// Get the document object.
// Set the default view name and format from the Request.
$vName =
$this->input->get('view', 'update');
$vFormat =
$document->getType();
$lName =
$this->input->get('layout', 'default');
// Get and render the view.
if ($view =
$this->getView($vName, $vFormat))
// Get the model for the view.
// Push the model into the view (as default).
$view->setModel($model, true);
$view->setLayout($lName);
// Push document object into the view.
$view->document =
$document;
* Applies FTP credentials to Joomla! itself, when required
$user =
JFactory::getApplication()->getUserStateFromRequest('com_joomlaupdate.ftp_user', 'ftp_user', null, 'raw');
$pass =
JFactory::getApplication()->getUserStateFromRequest('com_joomlaupdate.ftp_pass', 'ftp_pass', null, 'raw');
if ($user !=
'' &&
$pass !=
'')
// Add credentials to the session
Documentation generated on Tue, 19 Nov 2013 15:16:08 +0100 by phpDocumentor 1.4.3