Discuz教程网

[代码修改] 解决Discuz X2.0升级2.5后站点显示“关闭”无法打开的临时方法

[复制链接]
authicon dly 发表于 2012-8-24 08:21:17 | 显示全部楼层 |阅读模式
找到\source\class\discuz\discuz_application.php
找到:

  1. if($this->var['setting']['bbclosed']) {
  2. if($this->var['uid'] && ($this->var['group']['allowvisit'] == 2 || $this->var['groupid'] == 1)) {
  3. } elseif(in_array(CURSCRIPT, array('admin', 'member', 'api')) || defined('ALLOWGUEST') && ALLOWGUEST) {
  4. } else {
  5. $closedreason = C::t('common_setting')->fetch('closedreason');
  6. $closedreason = str_replace(':', ':', $closedreason);
  7. showmessage($closedreason ? $closedreason : 'board_closed', NULL, array('adminemail' => $this->var['setting']['adminemail']), array('login' => 1));
  8. }
  9. }
复制代码

修改为:
  1. // if($this->var['setting']['bbclosed']) {
  2. // if($this->var['uid'] && ($this->var['group']['allowvisit'] == 2 || $this->var['groupid'] == 1)) {
  3. // } elseif(in_array(CURSCRIPT, array('admin', 'member', 'api')) || defined('ALLOWGUEST') && ALLOWGUEST) {
  4. // } else {
  5. // $closedreason = C::t('common_setting')->fetch('closedreason');
  6. // $closedreason = str_replace(':', ':', $closedreason);
  7. // showmessage($closedreason ? $closedreason : 'board_closed', NULL, array('adminemail' => $this->var['setting']['adminemail']), array('login' => 1));
  8. // }
  9. // }
复制代码

即将第521-529行注释掉。



上一篇:用百度的PING RPC2让百度瞬间收录你的Discuz X帖子的方法
下一篇:从Discuz 2.5RC降到Discuz 2.0的方法
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

1314学习网 ( 浙ICP备10214163号 )

GMT+8, 2025-5-2 10:56

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表