<?php
// 为了能在system下面显示-v-
global $topFeed, $bugle, $_IORANGE, $memberBugle, $memberRecommend;
?>
<?php if (false === strpos($_SERVER['PHP_SELF'], 'read') && false !== $topFeed):?>
    <div class="block"><?php echo $topFeed;?></div>
<?php endif;?>
<?php if (!empty($bugle) && (CTIME - $bugle['starttime']) < 180):?>
    <?php if(false === strpos($_SERVER['PHP_SELF'], 'read') || !$_SESSION['user']['hiddenBugle']):?>
        <div class="pl"><?php echo ilink(userName($bugle['uid']),url('system',array('s'=>'member','uid'=>$bugle['uid'])));?><?php echo printImage('bugle.gif');?><b><?php echo iubb($bugle['subject']);?></b>[<?php echo ilink('回',url('system',array('s'=>'props','c'=>'bugle','uid'=>$bugle['uid'],'back'=>$GLOBALS['selfurl'])));?>][<?php echo ilink('列',url('system',array('s'=>'props','c'=>'bugle','a'=>'list','back'=>$GLOBALS['selfurl'])));?>]<?php if (u('superbm') || isGM()):?>[<?php echo ilink('禁', url('system', array('s'=>'props','c'=>'bugle','a'=>'deny','uid'=>$bugle['uid'])));?>][<?php echo ilink('清', url('system', array('s'=>'props','c'=>'bugle','a'=>'clean','back'=>$GLOBALS['selfurl'])));?>]<?php endif;?><?php if (false !== strpos($_SERVER['PHP_SELF'], 'read')):?>[<?php if ($_SESSION['user']['hiddenBugle']):?><?php echo ilink('显', url('system',array('s'=>'props','c'=>'bugle','a'=>'status','do'=>'view','url'=>$GLOBALS['selfurl'])));?><?php else:?><?php echo ilink('屏蔽',url('system',array('s'=>'props','c'=>'bugle','a'=>'status','do'=>'hidden','url'=>$GLOBALS['selfurl'])));?><?php endif;?>]<?php endif;?></div>
    <?php endif;?>
<?php endif;?>

<?php if ($iorange_id):?>
    <?php if ((isUCWeb() || IS_MOBILE) && $GLOBALS['path'] . 'index.php' != $_SERVER['PHP_SELF'] && !$bbsIndex && 0 < ($_IORANGE['user']['ads']-1) && $_IORANGE['user']['newpm']):?>
        <div class="pl">★您还有<?php echo ($_IORANGE['user']['ads']-1);?>次<?php echo getAdsLinks(array('抽奖机会'));?>|<?php echo printImage('bugle.gif');?><?php echo ilink('消息('.$_IORANGE['user']['newpm'].')',url('system',array('s'=>'member','c'=>'message','a'=>'list','do'=>'new')));?></div>
    <?php elseif ((isUCWeb() || IS_MOBILE) && $path . 'index.php' != $_SERVER['PHP_SELF'] && !$bbsIndex && 0 < ($_IORANGE['user']['ads']-1)):?>
    	<div class="pl">★您还有<?php echo ($_IORANGE['user']['ads']-1);?>次<?php echo getAdsLinks(array('抽奖机会'));?></div>
    <?php elseif($_IORANGE['user']['newpm'] && $path . 'index.php' != $_SERVER['PHP_SELF'] && !$bbsIndex):?>
    	<div class="pl"><?php echo printImage('bugle.gif');?>您有<?php echo ilink(u('newpm'), url('system',array('s'=>'member','c'=>'message','a'=>'list','do'=>'new')));?>封新的站内信</div>
    <?php endif;?>
<?php endif;?>