CoreFiles by mySites.guru
config.php58 lines, 1,275 bytes, from Joomla_3.10.7-Stable-Full_Package.zip
Raw History Compare with 3.10.6
md5
12291e594cd14f519859504f726e4755
sha1
ee8d53f8815e948aae5117e42fdd03a834605419
sha256
51ad8710d2946411719c4b7f495b853672e0b5d826f84c5820e78e259d38bc44
<?php
/**
 * @package     Joomla.Installation
 * @subpackage  Controller
 *
 * @copyright   (C) 2013 Open Source Matters, Inc. <https://www.joomla.org>
 * @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 25 releases, Joomla 3.10.0-alpha2 to 3.10.12. See them all, or every version of this file.