Exemplo n.º 1
0
 public function _initialize()
 {
     $aGroupId = I('group_id', 0, 'intval');
     $this->groupId = $aGroupId;
     parent::_initialize();
     //判断是否有权限编辑
     if (!is_login()) {
         $this->error('请先登陆。');
     }
     $this->checkAuth('Group/Manager/*', get_group_admin($this->groupId), '您没有管理群组的权限。');
     $this->assignNotice($this->groupId);
     $this->assign('group_id', $this->groupId);
     unset($e);
     $myInfo = query_user(array('avatar128', 'avatar64', 'nickname', 'uid', 'space_url'), is_login());
     $this->assign('myInfo', $myInfo);
     //赋予贴吧列表
     $this->assign('current', 'mygroup');
 }
Exemplo n.º 2
0
 public function _initialize()
 {
     parent::_initialize();
     $myInfo = query_user(array('avatar128', 'avatar64', 'nickname', 'uid', 'space_url'), is_login());
     $this->assign('myInfo', $myInfo);
 }