Advertisement
reenadak

ELP check if not logged in

Oct 1st, 2017
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.34 KB | None | 0 0
  1. <?php if(Auth::guest()): ?>
  2.  
  3.     <a href="login.php" class="btn btn-primary"><?php _e('main.login') ?></a> &nbsp;
  4.     <a href="signup.php" class="btn btn-primary"><?php _e('main.signup') ?></a> <P>Public Wall</P>
  5.  
  6. <?php elseif: ?>
  7.  
  8.     <h3 class="page-header">Public Wall - you are logged in as <?php echo Auth::user()->username;  ?></h3>
  9. <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement