Файл: adultscript-2.0.3-pro/files/admin/modules/nuevo/nuevo.php
Строк: 71
<?php
defined('_VALID') or die('Restricted Access!');
class VModule_Admin_nuevo
{
private $components = array(
'player' => 1,
'player2' => 1,
'player3' => 1,
'embed' => 1,
'embed2' => 1,
'ads' => 1,
'invideo' => 1,
'preroll' => 1,
'prerollnew' => 1,
'prerolledit' => 1,
'overlay' => 1,
'overlaynew' => 1,
'overlayedit' => 1,
'midroll' => 1,
'midrolledit' => 1,
'midrollnew' => 1,
'midrollset' => 1,
'overlay' => 1,
'ticker' => 1,
'tickernew' => 1,
'tickeredit' => 1,
'plugins' => 1,
'peel' => 1,
'language' => 1,
'languagenew' => 1,
'peeledit' => 1,
'peelnew' => 1,
'anyad' => 1,
'anyadnew' => 1,
'anyadedit' => 1,
'analytics' => 1,
'limit' => 1,
'progressthumbs' => 1
);
public function __construct()
{
}
public function render()
{
$component = (VUri::request(1)) ? VUri::request(1) : 'player';
if (isset($this->components[$component]) && $this->components[$component] === 1) {
$component_file = ADMIN_DIR.'/modules/nuevo/components/'.$component.'.php';
$component_class = 'VComponent_Admin_nuevo_'.$component;
if (file_exists($component_file) && is_file($component_file)) {
require $component_file;
} else {
die('Failed to load admin Nuevoplayer component ('.$component.')!');
}
$obj = new $component_class();
$obj->render();
} else {
die('Invalid admin Nuevoplayer component specified!');
}
}
}
?>