Вход Регистрация
Файл: adultscript-2.0.3-pro/files/mobile/components/channel.php
Строк: 46
<?php
class VComponent_mobile_channel extends VMobile
{
    public function 
__construct()
    {
        
parent::__construct();
    }
    
    public function 
render()
    {
        if (!
VModule::enabled('channel')) {
            
$this->notfound();
        }
    
        
$segment              VUri::request(0);
        
$component            = ($segment == 'channels') ? 'browse' 'view';
        
$component_class    'VComponent_mobile_channel_'.$component;

        try {
            require 
BASE_DIR.'/mobile/components/channel_'.$component.'.php';
            
            
$obj = new $component_class();
            
$obj->render();
        } catch (
Exception $e) {
            throw new 
VException($e);
        }        
    }
}
Онлайн: 1
Реклама