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