protected function _initialize()
 {
     defined('Ueditor') or define('Ueditor', true);
     if (IS_POST) {
         $authkey = I('get.authkey');
         $sess_id = I('get.sessid', 0);
         $userid = I('get.uid');
         $this->isadmin = I('get.isadmin', 0, 'intval');
         $key = md5(C("AUTHCODE") . $sess_id . $userid . $this->isadmin);
         if ($key != $authkey) {
             exit(json_encode(array('state' => '身份认证失败!')));
         } else {
             $this->uid = $userid;
             $this->groupid = I('get.groupid');
         }
     }
     parent::_initialize();
     if ($this->isadmin) {
         //上传大小
         $this->confing['imageMaxSize'] = $this->confing['scrawlMaxSize'] = $this->confing['catcherMaxSize'] = $this->confing['videoMaxSize'] = $this->confing['fileMaxSize'] = self::$Cache['Config']['uploadmaxsize'] * 1024;
         //上传文件类型
         $uploadallowext = explode('|', self::$Cache['Config']['uploadallowext']);
         foreach ($uploadallowext as $k => $rs) {
             $uploadallowext[$k] = ".{$rs}";
         }
         $this->confing['fileAllowFiles'] = $uploadallowext;
     } else {
         $this->confing['imageMaxSize'] = $this->confing['scrawlMaxSize'] = $this->confing['catcherMaxSize'] = $this->confing['videoMaxSize'] = $this->confing['fileMaxSize'] = self::$Cache['Config']['qtuploadmaxsize'] * 1024;
         //上传文件类型
         $uploadallowext = explode('|', self::$Cache['Config']['qtuploadallowext']);
         foreach ($uploadallowext as $k => $rs) {
             $uploadallowext[$k] = ".{$rs}";
         }
         $this->confing['fileAllowFiles'] = $uploadallowext;
     }
 }