<?
$ftbbs_nav_name=get_cookie('username');
$ftbbs_clubuser_id=get_cookie("clubuser_id");
if ($ftbbs_nav_name==""){
   $userinfo='游客 你还未登录 <img src="blogimages/line-center.gif" align="middle" /> <a href="userlogin.php">用户登录</a> <img src="blogimages/line-center.gif" align="middle" /> <a href="register.php">用户注册</a> <img src="blogimages/line-center.gif" align="middle" /> <a href="memberlist.php">会员列表</a> <img src="blogimages/line-center.gif" align="middle" /> <a href="search.php">贴子搜索</a> <img src="blogimages/line-center.gif" align="middle" /> <a href="help.php">论坛指南</a> <img src="blogimages/line-center.gif" align="middle" />';
}
else{
   $sql="select count(*) as num from {$tablepre}sms where IsNew=1 and accepter='".$ftbbs_nav_name."'";
   $rs=mysql_query($sql);
   $row = mysql_fetch_array($rs);
   $num=$row["num"];
   if ($num>0){
   $smsnum="(<font color=red>".$num."</font>)";
   }
   else{
   $smsnum="";
   }
   $userinfo='欢迎 <font color="#FF0000">'.$ftbbs_nav_name.'</font> <img src="blogimages/line-center.gif" align="middle" /><a href="myfriend.php">我的好友</a><img src="blogimages/line-center.gif" align="middle" /><a href="mysms.php">我的信箱'.$smsnum.'</a><img src="blogimages/line-center.gif" align="middle" /><a href="myfavorties.php">收藏夹</a><img src="blogimages/line-center.gif" align="middle" /><a href=main.php?searchkind=name&searchcontent='.$ftbbs_nav_name.'>我发的贴</a><img src="blogimages/line-center.gif" align="middle" /><a href=search.php?searchkind=myrepost&searchcontent='.$ftbbs_nav_name.'>我参与的贴</a><img src="blogimages/line-center.gif" align="middle" /><a href="memberlist.php">会员列表</a><img src="blogimages/line-center.gif" align="middle" /><a href="home.php?userid='.$ftbbs_clubuser_id.'" target="_blank">个人空间</a><img src="blogimages/line-center.gif" align="middle" /><a href="search.php">论坛搜索</a>';
}
?>