- md5
- 1304e29a36ad6c05c140b8e2d3bf9f6a
- sha1
- cd11d9ac3b31400dbe7763a7e3f2675171d6188c
- sha256
- 197ef13d39942d7a2a6a4ec37cda5a527cc6ad6b186379386becf6b0ac033a04
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
<?php
/**
* @package Joomla.Installation
* @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
jimport('joomla.application.component.helper');
/**
* Base controller class for the Joomla Core Installer.
*
* @package Joomla.Installation
* @since 1.6
*/
class JInstallationController extends JControllerLegacy
{
/**
* 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 JController This object to support chaining.
* @since 1.5
*/
public function display($cachable = false, $urlparams = false)
{
// Get the current URI to redirect to.
$uri = JURI::getInstance();
$redirect = base64_encode($uri);
// Get the document object.
$document = JFactory::getDocument();
// Set the default view name and format from the Request.
if (file_exists(JPATH_CONFIGURATION.'/configuration.php') && (filesize(JPATH_CONFIGURATION.'/configuration.php') > 10) && file_exists(JPATH_INSTALLATION.'/index.php')) {
$default_view = 'remove';
} else {
$default_view = 'language';
}
$vName = JRequest::getWord('view', $default_view);
$vFormat = $document->getType();
$lName = JRequest::getWord('layout', 'default');
if (strcmp($vName, $default_view) == 0) {
JRequest::setVar('view', $default_view);
}
if ($view = $this->getView($vName, $vFormat)) {
switch ($vName) {
default:
$model = $this->getModel('Setup', 'JInstallationModel', array('dbo' => null));
break;
}
// Push the model into the view (as default).
$view->setModel($model, true);
$view->setLayout($lName);
// Push document object into the view.
$view->document = $document;
$view->display();
}
return $this;
}
}
The same content is in 11 releases, Joomla 2.5.18 to 2.5.28. See them all, or every version of this file.