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

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

/**
 * 
 * 
 * @copyright        [PHPFOX_COPYRIGHT]
 * @author          Raymond Benc
 * @package         Phpfox_Component
 * @version         $Id: index.class.php 4272 2012-06-13 14:56:34Z Miguel_Espinoza $
 */
class Feed_Component_Controller_Index extends Phpfox_Component
{
    
/**
     * Class process method wnich is used to execute this component.
     */
    
public function process()
    {
        
$sFeedDisplay 'feed.display';
        ((
$sPlugin Phpfox_Plugin::get('feed.component_controller_index_feeddisplay')) ? eval($sPlugin) : false);
        
/* Load the picup files if needed*/
        
if (Phpfox::isMobile() && ( ($sBrowser Phpfox::getLib('request')->getBrowser()) && strpos($sBrowser'Safari') !== false))
        {
            
$sMethod 'simple';
            
$this->template()->setHeader(array(
                
'<script type="text/javascript">
                        var flash_user_id = '
.Phpfox::getUserId() .';
                        var sHash = "'
.Phpfox::getService('core')->getHashForUpload().'";</script>',
                
'mobile.js' => 'module_photo'
                
))->assign(array('bRawFileInput' => true));
        }
        
$this->template()->setEditor()->setHeader('cache', array(
                
'feed.js' => 'module_feed',                    
                
'comment.css' => 'style_css',                    
                
'quick_edit.js' => 'static_script',
                
'jquery/plugin/jquery.highlightFade.js' => 'static_script',
                
'jquery/plugin/jquery.scrollTo.js' => 'static_script'                                
            
)                    
        )
        ->
assign(array('sFeedDisplay' => $sFeedDisplay));            
    }
    
    
/**
     * 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('feed.component_controller_index_clean')) ? eval($sPlugin) : false);
    }
}

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