CoreFiles by mySites.guru
site.php46 lines, 1,003 bytes, from Joomla_3.4.7-Stable-Full_Package.zip
Raw History Compare with 3.4.6
md5
967ebfba33994f1278c19ccc012edf1b
sha1
035eb134a8f27f2feaf4041e19b801614d83ed84
sha256
466e5f5c6659c4a04f68cfa99faf4dcdba61caa9e31b7c5f0534f9f4690b348c
<?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 set the site data for the Joomla Installer.
 *
 * @since  3.1
 */
class InstallationControllerSite 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;

		// Check the form
		$model->checkForm('site');

		// Redirect to the page.
		$r = new stdClass;
		$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.