account_proverka.php 264 B

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