<?php
/*
 ########################################################################
#                                                                        #
#           Version 4       /                        /   /               #
#          -----------__---/__---__------__----__---/---/-               #
#           | /| /  /___) /   ) (_ `   /   ) /___) /   /                 #
#          _|/_|/__(___ _(___/_(__)___/___/_(___ _/___/___               #
#                       Free Content / Management System                 #
#                                   /                                    #
#                                                                        #
#                                                                        #
#   Copyright 2005-2006 by webspell.org                                  #
#                                                                        #
#   visit webSPELL.org, webspell.info to get webSPELL for free           #
#   - Script runs under the GNU GENERAL PUBLIC LICENSE                   #
#   - It's NOT allowed to remove this copyright-tag                      #
#   -- http://www.fsf.org/licensing/licenses/gpl.html                    #
#                                                                        #
#   Code based on WebSPELL Clanpackage (Michael Gruber - webspell.at),   #
#   Far Development by Development Team - webspell.org                   #
#                                                                        #
#   visit webspell.org                                                   #
#                                                                        #
 ########################################################################
*/

if($loggedin) {
  $username='<a href="index.php?site=profile&id='.$userID.'"><b>'.getnickname($userID).'</b></a>';
	if(isanyadmin($userID)) $admin='&#8226; <a href="admin/admincenter.php" target="_blank"><font color="white">admin</font></a><br>';
	else $admin='';
	$anz=getnewmessages($userID);
	if($anz) {
		$newmessages=' (<b>'.$anz.'</b>)';
		//if($site!='messenger') echo '<script language="JavaScript">messageconfirm('.$anz.');</script>';
	}
	else $newmessages='';
	if(getavatar($userID)) $l_avatar='<img src="images/avatars/'.getavatar($userID).'">';
	else $l_avatar='n/a';
	
	
	eval ("\$logged = \"".gettemplate("logged")."\";");
    echo $logged;
}
else {
	eval ("\$loginform = \"".gettemplate("login")."\";");
    echo $loginform;
}

?>