index.php 191 B

12345678910111213
  1. <?php
  2. session_start();
  3. if (!empty($_SESSION['look'])) {
  4. unset($_SESSION['look']);
  5. header("Location: /");
  6. } else {
  7. session_destroy();
  8. header("Location: /login/");
  9. }
  10. exit;
  11. ?>