uid){ print l($user->name,'user/'.$user->uid); print " | "; print l(t('Logout'),'logout'); } else{ $options = array(); $options['query'] = drupal_get_destination(); print l(t('Login'),'user/login', $options); if(variable_get('user_register',FALSE)){ print " | "; print l(t('Register'),'user/register'); } } ?>