Вход Регистрация
Файл: upload/module/share/include/component/controller/admincp/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 2846 2011-08-18 09:30:49Z Raymond_Benc $
 */
class Share_Component_Controller_Admincp_Index extends Phpfox_Component
{
    
/**
     * Class process method wnich is used to execute this component.
     */
    
public function process()
    {
        if ((
$iDeleteId $this->request()->getInt('delete')) && Phpfox::getService('share.process')->delete($iDeleteId))
        {
            
$this->url()->send('admincp.share'nullPhpfox::getPhrase('share.site_successfully_deleted'));
        }
        
        
$this->template()->setTitle(Phpfox::getPhrase('share.manage_sites'))
            ->
setBreadcrumb(Phpfox::getPhrase('share.share'), $this->url()->makeUrl('admincp.share'))
            ->
setBreadcrumb(Phpfox::getPhrase('share.manage_sites'), nulltrue)
            ->
setHeader('cache', array(
                    
'drag.js' => 'static_script',
                    
'<script type="text/javascript">Core_drag.init({table: '#js_drag_drop', ajax: 'share.ordering'});</script>'        
                
)
            )            
            ->
assign(array(
                    
'aSites' => Phpfox::getService('share')->get()
                )
            );    
    }
    
    
/**
     * 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('share.component_controller_admincp_social_index_clean')) ? eval($sPlugin) : false);
    }
}

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