一、使用FTP工具下载网站的source\module\home\home_spacecp.php文件 使用编辑-查找和替换,搜索下面两段代码并删除 1、 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));} 2、 if(empty($space)) {showmessage('space_does_not_exist');} 二、同样的方法下载/source/include/spacecp/spacecp_click.php 删除以下两段代码 1、 if(!checkperm('allowclick') || $_GET['hash'] != $hash) {showmessage('no_privilege_click');} 2、 if(C::t('home_clickuser')->count_by_uid_id_idtype($space[uid], $id, $idtype)) {showmessage('click_have');} 保存并上传,这时候无需登录就可以表态 |