";
}
print"[Contests] ";
if($p==contestlist){
print"";
}
if($p==updates){
print"";
}
print"[Updates] ";
if($p==updates){
print"";
}
$lognum = mysql_num_rows(mysql_query("select * from `log` where `read`='F' and `owner`='$user[id]'"));
$lognumb = mysql_num_rows(mysql_query("select * from `log` where `read`='T' and `owner`='$user[id]'"));
$lognumc = $lognum+$lognumb;
if($lognum>0){
print"";
print"[log[$lognumc]] ";
print"";
}elseif($lognumb>0){
if($p==log){
print"";
}
print"[log[$lognumc]] ";
if($p==log){
print"";
}
}
$ttime=time();
$span=$ttime-600;
$chatnum = mysql_num_rows(mysql_query("select * from users where page='chat' and lastseen >= '$span'"));
if($p==chat){
print"";
}
print"[Chatroom[$chatnum]] ";
if($p==chat){
print"";
}
$nummail = mysql_num_rows(mysql_query("select * from mail where unread='F' and owner=$user[id]"));
$nummailb = mysql_num_rows(mysql_query("select * from mail where unread='T' and owner=$user[id]"));
$nummailc = $nummailb+$nummail;
if($nummail>0){
print"";
print"[Mail[$nummailc]] ";
print"";
}elseif($nummailb>0){
if($p==mail){
print"";
}
print"[Mail[$nummailc]] ";
if($p==mail){
print"";
}
}
// If you host forums somewhere else use a link like the following, else use the built in forums
print"[Forums] ";
if($p==options){
print"";
}
print"[Options] ";
if($p==options){
print"";
}
if($user[username]=="guest"){
print"
[LOGIN] ";
print"[REGISTER] ";
}else{
print"
[LOGOUT] ";
}
?>