Файл: upload/module/admincp/include/component/controller/plugin/index.class.php
Строк: 53
<?php
/**
* [PHPFOX_HEADER]
*/
defined('PHPFOX') or exit('NO DICE!');
/**
*
*
* @copyright [PHPFOX_COPYRIGHT]
* @author Raymond Benc
* @package Module_Admincp
* @version $Id: index.class.php 1931 2010-10-25 11:58:06Z Raymond_Benc $
*/
class Admincp_Component_Controller_Plugin_Index extends Phpfox_Component
{
/**
* Class process method wnich is used to execute this component.
*/
public function process()
{
if (Phpfox::getParam('core.phpfox_is_hosted'))
{
$this->url()->send('admincp');
}
if ($aVals = $this->request()->getArray('val'))
{
if (Phpfox::getService('admincp.plugin.process')->updateActive($aVals))
{
$this->url()->send('admincp.plugin', null, Phpfox::getPhrase('admincp.plugin_s_updated'));
}
}
if ($sDeletePlugin = $this->request()->get('delete'))
{
if (Phpfox::getService('admincp.plugin.process')->delete($sDeletePlugin))
{
$this->url()->send('admincp.plugin', null, Phpfox::getPhrase('admincp.plugin_successfully_deleted'));
}
}
$this->template()->setTitle(Phpfox::getPhrase('admincp.manage_plugins'))
->setBreadcrumb(Phpfox::getPhrase('admincp.manage_plugins'))
->assign(array(
'aPlugins' => Phpfox::getService('admincp.plugin')->get()
)
);
}
}
?>