proverkarol.php 270 B

123456789101112
  1. <?php
  2. session_start();
  3. $role = $_SESSION['role'];
  4. if($role == 1)
  5. {
  6. echo "<script>window.location.href = 'indexforadmin.html';</script>";
  7. }
  8. if($role == 0)
  9. {
  10. echo "<script>window.location.href = 'indexforuser.html';</script>";
  11. }
  12. ?>