Файл: upload/module/log/include/component/block/login.class.php
Строк: 44
<?php
/**
* [PHPFOX_HEADER]
*/
defined('PHPFOX') or exit('NO DICE!');
/**
*
*
* @copyright [PHPFOX_COPYRIGHT]
* @author Raymond Benc
* @package Phpfox_Component
* @version $Id: login.class.php 3248 2011-10-07 12:29:57Z Miguel_Espinoza $
*/
class Log_Component_Block_Login extends Phpfox_Component
{
/**
* Class process method wnich is used to execute this component.
*/
public function process()
{
$aUsers = Phpfox::getService('log')->getRecentLoggedInUsers();
if (!count($aUsers))
{
return false;
}
$this->template()->assign(array(
'sHeader' => Phpfox::getPhrase('log.recent_logins'),
'aLoggedInUsers' => $aUsers,
//'sDeleteBlock' => 'dashboard',
/*
'aEditBar' => array(
'ajax_call' => 'log.getUserLoginEditBar',
'params' => '&type_id=dashboard'
)
*/
)
);
return 'block';
}
/**
* Garbage collector. Is executed after this class has completed
* its job and the template has also been displayed.
*/
public function clean()
{
$this->template()->clean(array(
'sHeader',
'aLoggedInUsers'
)
);
(($sPlugin = Phpfox_Plugin::get('log.component_block_login_clean')) ? eval($sPlugin) : false);
}
}
?>