Advertisement
Guest User

Untitled

a guest
Oct 24th, 2014
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. <?php
  2. require_once 'core/init.php';
  3.  
  4.  
  5. $user = new User();
  6. if($user->isLoggedIn()){
  7. include 'upload_form.html';
  8.  
  9. ?>
  10.  
  11. <p><a href="index.php">Home</a></p>
  12.  
  13. <?php
  14. }else{
  15. //User not logged in.
  16. Session::flash('home', 'You have to be logged in to visit that page');
  17. Redirect::to('index.php');
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement