Вход Регистрация
Файл: upload/module/admincp/include/component/controller/logout.class.php
Строк: 41
<?php
/**
 * [PHPFOX_HEADER]
 */

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

/**
 * 
 * 
 * @copyright        [PHPFOX_COPYRIGHT]
 * @author          Raymond Benc
 * @package         Phpfox_Component
 * @version         $Id: logout.class.php 1629 2010-06-06 07:28:54Z Raymond_Benc $
 */
class Admincp_Component_Controller_Logout extends Phpfox_Component
{
    
/**
     * Class process method wnich is used to execute this component.
     */
    
public function process()
    {
        if (!
Phpfox::getParam('core.admincp_do_timeout'))
        {
            
Phpfox::getService('user.auth')->logout();    
            
            
$this->url()->send('');    
        }
        
        
Phpfox::getService('user.auth')->logoutAdmin();
        
        
$this->url()->send('admincp'nullPhpfox::getPhrase('admincp.successfully_logged_out'));    
    }
    
    
/**
     * 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('admincp.component_controller_logout_clean')) ? eval($sPlugin) : false);
    }
}

?>
Онлайн: 1
Реклама