Файл: source/app/objects/admin/user/group/Group.php
Строк: 31
<?php
class AdminGroup {
private $da;
private $savant;
public function __construct($da) {
$auth = Auth::singleton();
$auth->checkUserManagement();
$this->da = $da;
$this->savant = new Savant3();
$this->savant->setPath('template', dirname(__FILE__));
}
public function browse() {
global $config_database;
$conf = array();
if (!file_exists(__DATABASE_CONFIG_PATH__ . '/' . $config_database['default']["database"] . '/' . $_GET['table'] . '.php')) {
exit;
}else{
require __DATABASE_CONFIG_PATH__ . '/' . $config_database['default']["database"] . '/' . $_GET['table'] . '.php';
}
$conf['theme_path'] = dirname(dirname(__FILE__)).'/templates';
$scurd = new Scurd($_GET['table'], $conf, $this->da);
$this->savant->content = $scurd->process();
return $this->savant->getOutput('browse.tpl.php');
}
}