Файл: upload/module/api/include/component/controller/token.class.php
Строк: 36
<?php
/**
* [PHPFOX_HEADER]
*/
defined('PHPFOX') or exit('NO DICE!');
/**
*
*
* @copyright [PHPFOX_COPYRIGHT]
* @author Raymond_Benc
* @package Phpfox_Component
* @version $Id: token.class.php 3093 2011-09-14 12:34:12Z Raymond_Benc $
*/
class Api_Component_Controller_Token extends Phpfox_Component
{
/**
* Class process method wnich is used to execute this component.
*/
public function process()
{
echo Phpfox::getService('api')->createToken($this->request()->get('key'));
exit;
}
/**
* 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('api.component_controller_token_clean')) ? eval($sPlugin) : false);
}
}
?>