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

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

/**
 * 
 * 
 * @copyright        [PHPFOX_COPYRIGHT]
 * @author          Raymond Benc
 * @package         Phpfox_Component
 * @version         $Id: private.class.php 3205 2011-09-27 13:53:48Z Raymond_Benc $
 */
class Profile_Component_Controller_Private extends Phpfox_Component
{
    
/**
     * Class process method wnich is used to execute this component.
     */
    
public function process()
    {
        
define('PHPFOX_PROFILE_PRIVACY'true);
        
        
$aUser $this->getParam('aUser');
        
$bCanFrRequest true;
        if (
Phpfox::getService('user.block')->isBlocked($aUser['user_id'], Phpfox::getUserId()) /* is user blocked*/
            
&& Phpfox::getParam('friend.allow_blocked_user_to_friend_request') == false
                
)
        {
            
$bCanFrRequest false;
        }
        
$this->template()->setTitle($aUser['full_name'])
            ->
assign(array(
                
'aUser' => $aUser,
                
'bIsFriend' => (Phpfox::getUserId() ? Phpfox::getService('friend')->isFriend(Phpfox::getUserId(), $aUser['user_id']) : false),
                
'bIsBlocked' => (Phpfox::isUser() ? Phpfox::getService('user.block')->isBlocked(Phpfox::getUserId(), $aUser['user_id']) : false),
                
'bCanFrRequest' => $bCanFrRequest
            
)
        );
    }
    
    
/**
     * 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('profile.component_controller_private_clean')) ? eval($sPlugin) : false);
    }
}

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