CoreFiles by mySites.guru
site.php46 lines, 1,004 bytes, from Joomla_3.8.13-Stable-Full_Package.zip
Raw History Compare with 3.8.12
md5
8e71dbbe3ca0bbb61d66340641763727
sha1
d0200cf63298850b409786c2a7dfb353fe4a7253
sha256
c28e80ee39bc08ce002cc64f18c15004cfc6d95908421764927f4d4978db1fa0
<?php
/**
 * @package     Joomla.Installation
 * @subpackage  Controller
 *
 * @copyright   Copyright (C) 2005 - 2018 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 13 releases, Joomla 3.8.7-rc to 3.9.0-alpha. See them all, or every version of this file.