public function __construct() { $this->user_info = User::_getAdmintUserInfo(); $tplVar['user_info'] = $this->user_info; $this->tpl = new Smarty(); $this->tpl->left_delimiter = "{{"; $this->tpl->right_delimiter = "}}"; $this->tpl->template_dir = ADMINDIR . '/templates'; $this->tpl->compile_dir = ADMINDIR . '/templates_c'; $this->tpl->assign($tplVar); if ($this->need_login == 1) { $this->checkLogin(); } }