打开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 `#@__arctype` act on arc.typeid=act.id
- where {$this->addsql} and arcrank<100 $ordersql limit $limitstart,$row"; //开源软件:Vevb.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 `#@__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了.
新闻热点
疑难解答