8 require_once(dirname(__FILE__) .
'/../../lib/View.php');
9 require_once(dirname(__FILE__) .
'/../../lib/Controller.php');
10 require_once(dirname(__FILE__) .
'/RootMenuModel.php');
23 if ($_SESSION[
'minfo'][
'role'] !=
'root') {
24 $this->viewName =
'root_menu_err';
31 $this->view =
new View();
33 $this->param[
'base'] = dirname(__FILE__);
35 $this->err = $this->model->chkDatabse();
37 if (empty($this->err)) {
38 $this->viewName =
'root_menu';
40 $this->viewName =
'root_menu_err';