CoreFiles by mySites.guru
store.php44 lines, 1,169 bytes, from Joomla_3.6.0-rc-Release_Candidate-Full_Package.zip
Raw History Compare with 3.5.1-rc2
md5
9309c6f3f1a750c26db615ef1e8963dd
sha1
5c7eab01f51e3a08d2fd5d6dac4f9622929001f5
sha256
14818e79f6f3da6c3fc26ad177d28ea6aca101b7b839d5f62826b25c71539735
<?php
/**
 * @package     Joomla.Administrator
 * @subpackage  com_config
 *
 * @copyright   Copyright (C) 2005 - 2016 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */
defined('_JEXEC') or die;

/**
 * Controller for global configuration, Store Permissions in Database
 *
 * @since  3.5
 */
class ConfigControllerApplicationStore extends JControllerBase
{
	/**
	 * Method to GET permission value and give it to the model for storing in the database.
	 *
	 * @return  boolean  true on success, false when failed
	 *
	 * @since   3.5
	 */
	public function execute()
	{
		// Send json mime type.
		$this->app->mimeType = 'application/json';
		$this->app->setHeader('Content-Type', $this->app->mimeType . '; charset=' . $this->app->charSet);
		$this->app->sendHeaders();

		// Check if user token is valid.
		if (!JSession::checkToken('get'))
		{
			$this->app->enqueueMessage(JText::_('JINVALID_TOKEN'), 'error');
			echo new JResponseJson;
			$this->app->close();
		}

		$model = new ConfigModelApplication;
		echo new JResponseJson($model->storePermissions());
		$this->app->close();
	}
}

The same content is in 14 releases, Joomla 3.6.0-rc to 3.7.0-alpha1. See them all, or every version of this file.