File size: 789B
<?php
/**
* [PHPFOX_HEADER]
*/
defined('PHPFOX') or exit('NO DICE!');
/**
*
*
* @copyright [PHPFOX_COPYRIGHT]
* @author Raymond Benc
* @package Phpfox_Component
* @version $Id: redirect.class.php 1388 2010-01-11 20:17:18Z Raymond_Benc $
*/
class Core_Component_Controller_Redirect extends Phpfox_Component
{
/**
* Controller
*/
public function process()
{
$this->template()->assign(array(
'sRedirectLink' => Phpfox_Url::instance()->decode($this->request()->get('url'))
)
);
}
/**
* Garbage collector. Is executed after this class has completed
* its job and the template has also been displayed.
*/
public function clean()
{
(($sPlugin = Phpfox_Plugin::get('core.component_controller_redirect_clean')) ? eval($sPlugin) : false);
}
}