CoreFiles by mySites.guru
controller.php39 lines, 1,068 bytes, from Joomla_1.5.26-Stable-Full_Package.zip
Raw History Compare with 1.5.25
md5
e008a08890f129a54074082f258daf05
sha1
0dad96ad99fb2b9b31c80ba6b337ff166452ad13
sha256
f988678471605a3d15df96506833b02a49cea466dfe338e273b9502baf2db514
<?php
/**
 * @version		$Id: controller.php 14401 2010-01-26 14:10:00Z louis $
 * @package  	Joomla
 * @subpackage	Banners
 * @copyright	Copyright (C) 2005 - 2010 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( 'Restricted access' );

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 11 releases, Joomla 1.5.16 to 1.5.26. See them all, or every version of this file.