CoreFiles by mySites.guru
message.php85 lines, 1,474 bytes, from Joomla_3.2.1-Stable-Full_Package.zip
Raw History Compare with 3.2.0
md5
cedb72ab1c4d32a5ba5d7dd7b3247b67
sha1
33aa02a8e73ec5f2899f5061a9f4e48b76b57aef
sha256
ca017d21981d50c60fb4e17bd70a9c1723f74c43cec34390c7b31802969ad1ff
<?php
/**
 * @package     Joomla.Administrator
 * @subpackage  com_postinstall
 *
 * @copyright   Copyright (C) 2005 - 2013 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 2 releases, Joomla 3.2.0 to 3.2.1. See them all, or every version of this file.