/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
if (user_is_logged_in()) { $output = t('User is logged in.'); else { $output = t('User is an anonymous user.'); }