Файл: adultscript-2.0.3-pro/files/admin/modules/tools/tools.php
Строк: 59
<?php
defined('_VALID') or die('Restricted Access!');
class VModule_Admin_tools
{
private $components = array(
'bans' => 1,
'cache' => 1,
'cache_ttls' => 1,
'sitemap' => 1,
'sitemap_video' => 1,
'check' => 1,
'engines' => 1,
'database' => 1,
'backup' => 1,
'cron' => 1,
'cron_add' => 1,
'cron_edit' => 1,
'cron_run' => 1,
'synonyms' => 1
);
public function __construct()
{
}
public function render()
{
$component = VUri::component('check');
if (isset($this->components[$component]) && $this->components[$component] === 1) {
$component_file = ADMIN_DIR.'/modules/tools/components/'.$component.'.php';
$component_class = 'VComponent_Admin_tools_'.$component;
try {
require $component_file;
$obj = new $component_class();
$obj->render();
} catch (Exception $e) {
throw new VException($e);
}
} else {
die('Invalid admin tools component specified!');
}
}
}
?>