欢迎各位兄弟 发布技术文章
这里的技术是共享的
<?php
if(drupal_is_front_page() ){
return true;
}
$bool = false;
$current_url = $_GET['q'];
$arr_url = array(
'kfzx-bingzhuantu',
'listzongzong',
'node/add/jingjiazongbiaotype',
'node/add/kefuzongbiaotype',
'node/add/seozongbiaotype',
'listzongwuzhong',
'listzongadb',
'listzonghuadong',
'node/add/kefuchat',
'listkefu',
'listzxkefu',
'listwangshangbaoming',
'kfzx-bingzhuantu',
'kfzx-bingzhuantu',
'listzongsjsc',
'listsousoutuiguang',
'node/add/sousou',
'list2014nianduzhuanhuawuzhong',
'listzongtanghui',
'listzongzhaojing',
'listzongwujingyan',
'list2014nianduzhuanhuaadb',
'listzhuqutelqq',
'listwangmeng',
'listwangshangbaomingwj',
'listzongzg',
'listkefuzg',
'listbianjiarticle',
'zhuaqutelqq',
'import/importzhuaquqq',
'listpassword',
'listadbxinshengluqu',
'node/add/adbxingshengluqujieguo',
'list-publish-task',
'my_accept_tasks',
'node/add/publish-task',
'batchmubiao',
'kfzx-bingzhuantu',
'listkehugengzong',
'listxiaonenfenxi',
'listyijimingxi',
'allbuglist',
'listmengdianyunying',
'xiaonenfenxi-bingzhuantu',
'xiaonenfenxi-zhuzhuantu',
'xiaonenfenxi-bingzhuantu-project',
'xiaonenfenxi-week-zhuzhuantu',
'node/add/xiaonenzhibantime',
'node/add/xiaonenfenxi',
'node/add/yijimingxi',
'node/add/kehugengzong',
'node/add/mengdianyunying',
'kfzx-souzaidiqu-zhuzhuantu-onlyzg',
'multi_node_add/xiaonenzhibantime',
'listxiaonenzhibantime',
'xiaonenfenxi-person-and-yiji',
'xiaonenfenxi-person-shiduan-data-service-fenxi',
'xiaonenfenxi-zhibanbiao-zhuzhuantu',
);
foreach($arr_url as $key=>$value){
if(stripos($current_url , $value) === 0){
$bool = true;
break;
}
}
$arg0= arg(0);
$arg1= arg(1);
$arg2= arg(2);
if( $arg0=='node' && is_numeric($arg1)){
$node = node_load($arg1);
if($node->type == 'xiaonenzhibantime' || $node->type == 'xiaonenfenxi' || $node->type == 'yijimingxi' || $node->type == 'mengdianyunying' || $node->type == 'kehugengzong' )
{
$bool = true;
}
}
return $bool ;
?>