    <?php
        $add_channel_menu = array();
        //如果为游客访问，不启用左侧菜单
        if(!empty($cfg_ml->M_ID))
        {
            $channelInfos = array();
            $dsql->Execute('addmod',"SELECT id,nid,typename,useraddcon,usermancon,issend,issystem,usertype,isshow FROM `#@__channeltype` ");	
            while($menurow = $dsql->GetArray('addmod'))
            {
                $channelInfos[$menurow['nid']] = $menurow;
                //禁用的模型
                if($menurow['isshow']==0)
                {
                    continue;
                }
                //其它情况
                if($menurow['issend']!=1 || $menurow['issystem']==1 
                || ( !preg_match("#".$cfg_ml->M_MbType."#", $menurow['usertype']) && trim($menurow['usertype'])!='' ) )
                {
                    continue;
                }
                $menurow['ddcon'] = empty($menurow['useraddcon']) ? 'archives_add.php' : $menurow['useraddcon'];
                $menurow['list'] = empty($menurow['usermancon']) ? 'content_list.php' : $menurow['usermancon'];
                $add_channel_menu[] = $menurow;
            }
            unset($menurow);
		?>

<div class="setting_bar fl ">
 <h1>管理中心</h1>
  <div class="base_info">
  <li><a href="../user/index.php">我的首页</a></li>
  <li><a href="../user/site_add.php">提交网站</a></li>
  <li><a href="../user/site_list.php">网站管理</a></li>
   <li><a href="../user/site_claim.php">网站认领</a></li>
    <?php
        //是否启用文章投稿
        if($channelInfos['article']['issend']==1 && $channelInfos['article']['isshow']==1)
        {
        echo "<li><a href='../user/article_add.php'>在线投稿</a></li> <li><a href='../user/article_list.php'>我的投稿</a></li>";
	}
	?>
  </div>
  <h1>帐号设置</h1>
<div class="base_info">
  <li><a href="../user/profile.php">个人资料</a></li>
  <li><a href="../user/edit_password.php">修改密码</a></li>
  <li><a href="../user/join.php?fmdo=login&dopost=exit">安全退出</a></li>
</div>
</div>
<?php
}
?>