Guest User

position

a guest
May 17th, 2015
274
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. <?php
  2. session_start();
  3. if(!isset($_SESSION['username'])) {
  4. echo "<script>alert('YOU MUST LOGIN FIRST');</script>";
  5. echo "<script>window.location='fpl_login.php'</script>";
  6. }
  7. if(isset($_SESSION['position'])== '1') {
  8. echo "<script>window.location='op.php'</script>";
  9. }
  10. if(isset($_SESSION['position'])== '2') {
  11. echo "<script>window.location='foo.php'</script>";
  12. }
  13. if(isset($_SESSION['position'])== '3') {
  14. echo "<script>window.location='bo.php'</script>";
  15. }
  16. if(isset($_SESSION['position'])== '4') {
  17. echo "<script>window.location='hq.php'</script>";
  18. }
  19. ?>
Advertisement
Add Comment
Please, Sign In to add comment