\n"; if ($user) { echo "Logged in as $user->name"; } else { echo "
"; } echo "
\n"; } ?>