Файл: adultscript-2.0.3-pro/files/admin/modules/grab/grab.php
Строк: 44
<?php
defined('_VALID') or die('Restricted Access!');
class VModule_Admin_grab
{
private $components = array(
'grab' => 1,
'config' => 1
);
public function __construct()
{
}
public function render()
{
$component = (VUri::request(1)) ? VUri::request(1) : 'grab';
if (isset($this->components[$component]) && $this->components[$component] === 1) {
$component_class = 'VComponent_Admin_grab_'.$component;
try {
require ADMIN_DIR.'/modules/grab/components/'.$component.'.php';
$obj = new $component_class();
$obj->render();
} catch (Exception $e) {
throw new VException($e);
}
} else {
die('Invalid admin video component specified!');
}
}
}