Keine Beschreibung

checkLogin.php 472B

12345678910111213
  1. <?php
  2. // IF NOT LOGGED IN THROUGH GOOGLE, SEND USER TO GENERAL ERROR PAGE
  3. // ELSE IF LOGGED IN THROUGH GOOGLE BUT USER IS UNAUTHORIZED, SEND USER TO UNAUTHORIZED PAGE
  4. // ELSE PRESENT NORMAL PAGE
  5. if(empty($_SESSION)) {
  6. header('Location: https://tania.uprrp.edu/admin_nuevo/error.php');
  7. exit();
  8. }
  9. else if(isset($_SESSION['error']) && $_SESSION['error'] === 'unauthorized') {
  10. header('Location: https://tania.uprrp.edu/admin_nuevo/unauthorized.php');
  11. exit();
  12. }