Вход Регистрация
Файл: upload/module/ban/include/component/block/form.class.php
Строк: 39
<?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 Ban_Component_Block_Form extends Phpfox_Component
{
    
/**
     * Class process method wnich is used to execute this component.
     */
    
public function process()
    {
        
/* This is a good way of leaving out the admins and staff, we could remove the Banned user groups
         * but that would require more processing */
        
$aUserGroups Phpfox::getService('user.group')->get('user_group_id != 1 AND user_group_id != 4');

        
$this->template()->assign(array(
                
'aUserGroups' => $aUserGroups,
                
'bShow' => $this->getParam('bShow'false) ? true false,
                
'bHideAffected' => $this->getParam('bHideAffected'false) ? true false
            
)
        );
    }
    
    
/**
     * 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('blog.component_block_new_clean')) ? eval($sPlugin) : false);
    }
}

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