CoreFiles by mySites.guru
message.php85 lines, 1,474 bytes, from Joomla_3.3.6-Stable-Full_Package.zip
Raw History Compare with 3.3.5
md5
dfff77fe68fcc4b2a7295cc0f7058018
sha1
46ef0dd7bdc2e00300ac8873134ef37333218e14
sha256
e3bcbdc96880620e268797c1e38d3feaa6e0b4bc81c203b02c878be18374dcd0
<?php
/**
 * @package     Joomla.Administrator
 * @subpackage  com_postinstall
 *
 * @copyright   Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

class PostinstallControllerMessage extends FOFController
{
	/**
	 * Resets all post-installation messages of the specified extension
	 *
	 * @return  void
	 *
	 * @since   3.2
	 */
	public function reset()
	{
		$model = $this->getThisModel();

		$eid = $this->input->getInt('eid', '700');

		$model->resetMessages($eid);

		$this->setRedirect('index.php?option=com_postinstall');
	}

	/**
	 * Executes the action associated with an item
	 *
	 * @return  void
	 *
	 * @since   3.2
	 */
	public function action()
	{
		// CSRF prevention
		if ($this->csrfProtection)
		{
			$this->_csrfProtection();
		}

		$model = $this->getThisModel();

		if (!$model->getId())
		{
			$model->setIDsFromRequest();
		}

		$item = $model->getItem();

		switch ($item->type)
		{
			case 'link':
				$this->setRedirect($item->action);

				return;

				break;

			case 'action':
				jimport('joomla.filesystem.file');

				$file = FOFTemplateUtils::parsePath($item->action_file, true);

				if (JFile::exists($file))
				{
					require_once $file;

					call_user_func($item->action);
				}
				break;

			case 'message':
			default:
				break;
		}

		$this->setRedirect('index.php?option=com_postinstall');
	}
}

The same content is in 13 releases, Joomla 3.2.2 to 3.3.6. See them all, or every version of this file.