GetOne("SELECT tp.id,ch.issystem FROM `#@__arctype` tp LEFT JOIN `#@__channeltype` ch ON ch.id=tp.channeltype WHERE tp.channeltype='$channelid' And tp.reid=0 order by sortrank asc"); if(!is_array($tinfos)) die(" No catalogs in the channel! "); $tid = $tinfos['id']; } else { $tinfos = $dsql->GetOne("SELECT ch.issystem FROM `#@__arctype` tp LEFT JOIN `#@__channeltype` ch ON ch.id=tp.channeltype WHERE tp.id='$tid' "); } if($tinfos['issystem']==-1) { $nativeplace = ( (empty($nativeplace) || !is_numeric($nativeplace)) ? 0 : $nativeplace ); $infotype = ( (empty($infotype) || !is_numeric($infotype)) ? 0 : $infotype ); if(!empty($keyword)) $keyword = FilterSearch($keyword); $cArr = array(); if(!empty($nativeplace)) $cArr['nativeplace'] = $nativeplace; if(!empty($infotype)) $cArr['infotype'] = $infotype; if(!empty($keyword)) $cArr['keyword'] = $keyword; include(DEDEINC."/arc.sglistview.class.php"); $lv = new SgListView($tid,$cArr); } else { include(DEDEINC."/arc.listview.class.php"); $lv = new ListView($tid); //对设置了会员级别的栏目进行处? if(isset($lv->Fields['corank']) && $lv->Fields['corank'] > 0) { require_once(DEDEINC.'/memberlogin.class.php'); $cfg_ml = new MemberLogin(); if( $cfg_ml->M_Rank < $lv->Fields['corank'] ) { $dsql->Execute('me' , "SELECT * FROM `#@__arcrank` "); while($row = $dsql->GetObject('me')) { $memberTypes[$row->rank] = $row->membername; } $memberTypes[0] = "游客或没权限会员"; $msgtitle = "你没有权限浏览栏目:{$lv->Fields['typename']} ?; $moremsg = "这个栏目需?".$memberTypes[$lv->Fields['corank']]." 才能访问,你目前是:".$memberTypes[$cfg_ml->M_Rank]." ?; include_once(DEDETEMPLATE.'/plus/view_msg_catalog.htm'); exit(); } } } if($lv->IsError) ParamError(); $lv->Display();
  • ȫҪ˳ӦᷢչɣƸƵķΧСƸ˽ƵķΧԱƸ˽ƣƸơ 2019-12-10
  • ˼Թ趨һͶıֶΡһôҲģij治 2019-12-10
  • ذЭῪչĻҵչ 2019-12-05
  • 硢ߩ飬ЩС´󲿷˶ 2019-12-05
  • Žίֱֳƽͬ 2019-11-17
  • Ӣ ұǼҵı 2019-11-17
  • ǣждŻСƪ 2019-11-13
  • ԽϷ 2019-11-13
  • ʮҵѧҵ ҵҪעɶ 2019-11-12
  • ÷ս ز÷߶Զ 2019-11-12
  • лͻ߶߸ĹϢ 2019-11-02
  • ʱ2016ر߻ 2019-10-29
  • 䲩ح4000ǰʱ 2019-10-29
  • ݴѧϰƽʱйɫ˼оġ 2019-10-29
  • ɽʡҪϢŷᡪƺ 2019-10-25