CoreFiles by mySites.guru
preinstall.php40 lines, 900 bytes, from Joomla_3.10.0-Stable-Full_Package.zip
Raw History Compare with 3.9.28
md5
4ab2d44ad218de0353119527d0629dfe
sha1
5e64d72d007d3e7fdd72325978a1d6313644a020
sha256
04e78a604bb4564c12968a7aac289acaf2d8bb5ea608435e9d4b754ea0bf05ca
<?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 refresh the preinstall view for the Joomla Installer.
 *
 * @since  3.1
 */
class InstallationControllerPreinstall 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));

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