Location: PHPKode > projects > OpenRat CMS > openrat/themes/default/include/html/user.inc.php
<?php
		if	( is_object($attr_user) )
			$user = $attr_user;
		else
			$user = $$attr_user;
			
		if	( empty($user->name) )
			$user->name = lang('GLOBAL_UNKNOWN');
		if	( empty($user->fullname) )
			$user->fullname = lang('GLOBAL_NO_DESCRIPTION_AVAILABLE');

		if	( !empty($user->mail) && $conf['security']['user']['show_mail'] )
			echo '<a href="mailto:'.$user->mail.'" title="'.$user->fullname.'">'.$user->name.'</a>';
		else
			echo '<span title="'.$user->fullname.'">'.$user->name.'</span>';
?>
Return current item: OpenRat CMS