CoreFiles by mySites.guru
config.php58 lines, 1,288 bytes, from Joomla_3.9.21-Stable-Full_Package.zip
Raw History Compare with 3.9.20
md5
45941609ecff0af45075a3f614806d66
sha1
0dd7900b5e49bafe62bbf688fe825c153f21b26d
sha256
1a8b088058d1266b66a5d129ded02b17647f0e760f89d7c88067535d3df38ceb
<?php
/**
 * @package     Joomla.Installation
 * @subpackage  Controller
 *
 * @copyright   Copyright (C) 2005 - 2020 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

/**
 * Controller class to write the config file for the Joomla Installer.
 *
 * @since  3.1
 */
class InstallationControllerInstallConfig extends JControllerBase
{
	/**
	 * Execute the controller.
	 *
	 * @return  void
	 *
	 * @since   3.1
	 */
	public function execute()
	{
		// Get the application
		/** @var InstallationApplicationWeb $app */
		$app = $this->getApplication();

		// Check for request forgeries.
		JSession::checkToken() or $app->sendJsonResponse(new Exception(JText::_('JINVALID_TOKEN_NOTICE'), 403));

		// Get the setup model.
		$model = new InstallationModelSetup;

		// Get the options from the session
		$options = $model->getOptions();

		// Get the database model.
		$configuration = new InstallationModelConfiguration;

		// Attempt to setup the configuration.
		$return = $configuration->setup($options);

		$r = new stdClass;
		$r->view = 'complete';

		// Check if the database was initialised
		if (!$return)
		{
			$r->view = 'database';
		}

		$app->sendJsonResponse($r);
	}
}

The same content is in 30 releases, Joomla 3.9.15-rc to 3.10.0-alpha1. See them all, or every version of this file.