Posted By

wza on 06/25/09


Tagged

textmate


Versions (?)

go to user


 / Published in: Other
 

  1. <?php
  2. global $user;
  3. if ( !$user->uid ) {
  4. header("Status: 301"); # 301 Moved Permanently
  5. header("Location: http://{$_SERVER['SERVER_NAME']}/user/login");
  6. exit;
  7. }
  8. ?>

Report this snippet  

You need to login to post a comment.