文件:core\class\dzz\dzz_app.php
在代码
if($this->var['setting']['bbclosed']) {
if($this->var['member']['adminid']==1) { //系统管理员允许访问
} elseif(in_array(CURSCRIPT, array('admin', 'user', 'api')) || defined('ALLOWGUEST') && ALLOWGUEST) {
} else {
$closedreason = C::t('setting')->fetch('closedreason');
$closedreason = str_replace(':', ':', $closedreason);
dheader("Location: user.php?mod=login");
}
}
后插入
if ($this->var['member']['adminid']){
}elseif(in_array(CURSCRIPT, array('admin', 'user', 'api')) || defined('ALLOWGUEST') &&