dedecms搜寻功能高级会员未登录文章禁止出现在搜索结果
发布时间:2021-12-16 10:21 所属栏目:19 来源:互联网
导读:打开include/arc.searchview.class.php找到493行,增加如下代码: */ require_once(dedeinc./memberlogin.class.php); $cfg_ml = new memberlogin(); //if(($needrank1 $cfg_ml-m_rank 100 1 !=$cfg_ml-m_id)) if(( $cfg_ml-m_rank 100 1 !=$cfg_ml-m_id)) { $q
打开include/arc.searchview.class.php找到493行,增加如下代码: */ require_once(dedeinc.'/memberlogin.class.php'); $cfg_ml = new memberlogin(); //if(($needrank>1 && $cfg_ml->m_rank < 100 && 1 !=$cfg_ml->m_id)) if(( $cfg_ml->m_rank < 100 && 1 !=$cfg_ml->m_id)) { $query = "select arc.*,act.typedir,act.typename,act.isdefault,act.defaultname,act.namerule, act.namerule2,act.ispart,act.moresite,act.siteurl,act.sitepath from `{$this->addtable}` arc left join `dede_arctype` act on arc.typeid=act.id where {$this->addsql} and arcrank<100 $ordersql limit $limitstart,$row"; //开源软件:Cuoxin.com } else { $query = "select arc.*,act.typedir,act.typename,act.isdefault,act.defaultname,act.namerule, act.namerule2,act.ispart,act.moresite,act.siteurl,act.sitepath from `{$this->addtable}` arc left join `dede_arctype` act on arc.typeid=act.id where {$this->addsql} $ordersql limit $limitstart,$row"; } /* 方法比较简单只要加载一下$cfg_ml = new memberlogin();判断他会员等级100在我系统是高级会员,1是admin,所以判断就是$cfg_ml->m_rank < 100 && 1 !=$cfg_ml->m_id了. (编辑:ASP站长网) |
相关内容
网友评论
推荐文章
热点阅读