Вход Регистрация
Файл: adultscript-2.0.3-pro/files/modules/channel/channel.php
Строк: 44
<?php
class VModule_channel
{
    protected 
$db;
    protected 
$tpl;
    public function 
__construct()
    {
        
$this->db    VF::factory('database');
        
$this->tpl    VF::factory('template');
    }
    
    public function 
render()
    {
        
$component  VUri::request(0);
        
        if (
$component == 'channels') {
              
$component    'browse';
        } elseif (
$component == 'channel') {
              
$component    'view';
        }

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