找到\source\class\discuz\discuz_application.php
找到:
- if($this->var['setting']['bbclosed']) {
- if($this->var['uid'] && ($this->var['group']['allowvisit'] == 2 || $this->var['groupid'] == 1)) {
- } elseif(in_array(CURSCRIPT, array('admin', 'member', 'api')) || defined('ALLOWGUEST') && ALLOWGUEST) {
- } else {
- $closedreason = C::t('common_setting')->fetch('closedreason');
- $closedreason = str_replace(':', ':', $closedreason);
- showmessage($closedreason ? $closedreason : 'board_closed', NULL, array('adminemail' => $this->var['setting']['adminemail']), array('login' => 1));
- }
- }
复制代码
修改为:- // if($this->var['setting']['bbclosed']) {
- // if($this->var['uid'] && ($this->var['group']['allowvisit'] == 2 || $this->var['groupid'] == 1)) {
- // } elseif(in_array(CURSCRIPT, array('admin', 'member', 'api')) || defined('ALLOWGUEST') && ALLOWGUEST) {
- // } else {
- // $closedreason = C::t('common_setting')->fetch('closedreason');
- // $closedreason = str_replace(':', ':', $closedreason);
- // showmessage($closedreason ? $closedreason : 'board_closed', NULL, array('adminemail' => $this->var['setting']['adminemail']), array('login' => 1));
- // }
- // }
复制代码
即将第521-529行注释掉。 |