Advertisement
Guest User

Untitled

a guest
Oct 18th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.61 KB | None | 0 0
  1. if (((isset($_SESSION['id_usertype'])) AND ($_SESSION['id_usertype']==1)) OR ((isset($_COOKIE['id_user']) AND ($_SESSION['id_usertype']==1)))) {
  2.  
  3. // stampa della roba (Non reindirizza)
  4.  
  5. } else {
  6.     if ((isset($_SESSION['id_usertype'])) AND ($_SESSION['id_usertype']==4) AND (isset($_SESSION['id_student']))) {
  7.         header('Location: student-page.php');
  8.     } else
  9.     {
  10.         if ((isset($_SESSION['id_usertype'])) AND ($_SESSION['id_usertype']==2)) {
  11.             header('Location: projects.php');
  12.         }
  13.         else {
  14.             header('Location: login.php');
  15.             //echo("stop");
  16.             //echo("id_usertype: ".$_SESSION['id_usertype']);
  17.         }
  18.     }
  19.        
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement