View file PF.Base/module/core/include/component/block/view-admincp-login.class.php

File size: 930B
<?php
/**
 * [PHPFOX_HEADER]
 */

defined('PHPFOX') or exit('NO DICE!');

/**
 * 
 * 
 * @copyright		[PHPFOX_COPYRIGHT]
 * @author  		Raymond Benc
 * @package 		Phpfox_Component
 * @version 		$Id: view-admincp-login.class.php 892 2009-08-24 13:23:36Z Raymond_Benc $
 */
class Core_Component_Block_View_Admincp_Login extends Phpfox_Component
{
	/**
	 * Controller
	 */
	public function process()
	{
		Phpfox::isAdmin(true);
		
		if (!($aLog = Core_Service_Admincp_Admincp::instance()->getAdminLoginLog($this->request()->get('login_id'))))
		{
			return false;
		}
		
		$this->template()->assign(array(
				'aLog' => $aLog
			)
		);
        return null;
	}
	
	/**
	 * 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_block_view_admincp_login_clean')) ? eval($sPlugin) : false);
	}
}