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

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

/**
 * 
 * 
 * @copyright        [PHPFOX_COPYRIGHT]
 * @author          Raymond Benc
 * @package         Phpfox_Component
 * @version         $Id: block.class.php 103 2009-01-27 11:32:36Z Raymond_Benc $
 */
class Forum_Component_Block_Copy extends Phpfox_Component
{
    
/**
     * Class process method wnich is used to execute this component.
     */
    
public function process()
    {
        
$aThread Phpfox::getService('forum.thread')->getActualThread($this->request()->get('thread_id'));        
        
        if (!isset(
$aThread['thread_id']))
        {
            return 
Phpfox_Error::display(Phpfox::getPhrase('forum.not_a_valid_thread_to_copy'));
        }
        
        
$this->template()->assign(array(
                
'sForums' => Phpfox::getService('forum')->active($aThread['forum_id'])->getJumpTool(true),
                
'aThread' => $aThread
            
)
        );        
    }
    
    
/**
     * 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('forum.component_block_copy_clean')) ? eval($sPlugin) : false);
    }
}

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