discuz允许游客表态的技巧
发布时间:2021-11-29 18:33:11 所属栏目:教程 来源:互联网
导读:修改方法: 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(
修改方法: 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'); } 注销或删掉 然后刷新,去看看吧 (编辑:东莞站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |