Файл: adultscript-2.0.3-pro/files/admin/modules/adv/adv.php
Строк: 47
<?php
defined('_VALID') or die('Restricted Access!');
class VModule_Admin_adv
{
private $components = array(
'manage' => 1,
'group' => 1,
'group_add' => 1,
'group_edit' => 1,
'add' => 1,
'edit' => 1,
'view' => 1,
'sponsor' => 1,
'sponsor_add' => 1,
'sponsor_edit' => 1,
'sponsor_videos' => 1,
'player' => 1,
'player_add' => 1,
'player_edit' => 1
);
public function __construct()
{
}
public function render()
{
$component = VUri::component('manage');
if (isset($this->components[$component]) && $this->components[$component] === 1) {
$component_class = 'Vcomponent_Admin_adv_'.$component;
try {
require ADMIN_DIR.'/modules/adv/components/'.$component.'.php';
} catch(Exception $e) {
throw new VException($e);
}
$obj = new $component_class();
$obj->render();
}
}
}
?>