Файл: upload/module/core/include/component/controller/admincp/ip.class.php
Строк: 40
<?php
/**
* [PHPFOX_HEADER]
*/
defined('PHPFOX') or exit('NO DICE!');
/**
*
*
* @copyright [PHPFOX_COPYRIGHT]
* @author Raymond Benc
* @package Phpfox_Component
* @version $Id: ip.class.php 1025 2009-09-21 09:24:56Z Raymond_Benc $
*/
class Core_Component_Controller_Admincp_Ip extends Phpfox_Component
{
/**
* Class process method wnich is used to execute this component.
*/
public function process()
{
$this->template()->setTitle(Phpfox::getPhrase('admincp.ip_address'))
->setBreadcrumb(Phpfox::getPhrase('admincp.ip_address'), $this->url()->makeUrl('admincp.core.ip'));
$aResults = array();
if (($sSearch = $this->request()->get('search')) && !empty($sSearch))
{
if (($aResults = Phpfox::getService('core')->ipSearch($sSearch)) !== false)
{
$this->template()->setBreadcrumb(Phpfox::getPhrase('admincp.search') . ': ' . str_replace('-', '.', $sSearch), null, true);
}
}
$this->template()->assign(array(
'aResults' => $aResults
)
);
}
/**
* 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_admincp_ip_clean')) ? eval($sPlugin) : false);
}
}
?>