CoreFiles by mySites.guru
controller.php39 lines, 1,050 bytes, from Joomla_1.5.0-Stable-Full_Package.zip
Raw History Compare with 1.0.15
md5
4fee153ad0caaf26667cd992429db9de
sha1
6aced9fc2097f99cb302651a7e6a243270d3e4f4
sha256
45372fd9fbcd25604677357c813a9e8efdd0721c946fa1b23b51177b4aa20727
<?php
/**
 * @version		$Id: controller.php 9764 2007-12-30 07:48:11Z ircmaxell $
 * @package  	Joomla
 * @subpackage	Banners
 * @copyright	Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
 * @license		GNU/GPL, see LICENSE.php
 * Joomla! is free software. This version may have been modified pursuant to the
 * GNU General Public License, and as distributed it includes or is derivative
 * of works licensed under the GNU General Public License or other free or open
 * source software licenses. See COPYRIGHT.php for copyright notices and
 * details.
 */

// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die();

jimport( 'joomla.application.component.controller' );

/**
 * Banners Controller
 *
 * @package  	Joomla
 * @subpackage	Banners
 * @since		1.5
 */
class BannersController extends JController
{
	function click()
	{
		$bid = JRequest::getInt( 'bid', 0 );
		if ($bid)
		{
			$model = &$this->getModel( 'Banner' );
			$model->click( $bid );
			$this->setRedirect( $model->getUrl( $bid ) );
		}
	}
}

The same content is in 2 releases, Joomla 1.5.0 to 1.5.1. See them all, or every version of this file.