discuz允许游客表态的方法

时间:2018-12-29 10:00作者:网友投稿
修改方法:   1.找到文件:source/module/home/home_spacecp.php   找到:   [代码]php代码: if(empty($_G['uid'])) {          if($_SERVER['REQUEST_METHOD'] == 'GET') {               dsetcookie('_refer', rawurlencode($_SERVER['REQUEST_URI']));          } else {               dsetcookie('_refer', rawurlencode('home.php?mod=spacecp&ac='.$ac));          }          showmessage('to_login', '', array(), array('showmsg' => true, 'login' => 1));     }   注销或删掉   找到:   [代码]php代码: if(empty($space)) {          showmessage('space_does_not_exist');     }   注销或删掉     找到文件:/source/include/spacecp/spacecp_click.php   找到:   [代码]php代码: if(!checkperm('allowclick') || $_GET['hash'] != $hash) {          showmessage('no_privilege_click');     }   注销或删掉   找到:   [代码]php代码: if(C::t('home_clickuser')->count_by_uid_id_idtype($space[uid], $id, $idtype)) {          showmessage('click_have');     }   注销或删掉   然后刷新,去看看吧。

免责声明:本站所有文章和图片均来自用户分享和网络收集,文章和图片版权归原作者及原出处所有,仅供学习与参考,请勿用于商业用途,如果损害了您的权利,请联系网站客服处理。