CoreFiles by mySites.guru
config.php58 lines, 1,280 bytes, from Joomla_3.4.7-Stable-Full_Package.zip
Raw History Compare with 3.4.6
md5
5cb0f0d20da03a55df5c60f464007802
sha1
b0cb66ec2c6f09a6282239079717c1f73e8e261f
sha256
a2761350d5a4919aa06ac0beda3548687e2212847503e96bbb09fb98ee10c277
<?php
/**
 * @package     Joomla.Installation
 * @subpackage  Controller
 *
 * @copyright   Copyright (C) 2005 - 2015 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'), 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 20 releases, Joomla 3.4.0-beta1 to 3.5.0-beta. See them all, or every version of this file.