Also für noch nicht eingeloggt:

PHP-Code:
if($alledaten['login_ip']==""){
  echo 
'Noch nicht eingeloggt.';
}else{
//.....

PHP-Code:
if($land['land']==''){
  
//links hier rein
}else{
  
//land ausgeben