1
0
www.mikescher.com/www/pages/logout.php

17 lines
433 B
PHP
Raw Normal View History

2018-01-21 19:35:49 +01:00
<?php
2020-01-17 01:28:34 +01:00
require_once (__DIR__ . '/../internals/website.php');
2018-01-21 19:35:49 +01:00
2020-01-17 01:28:34 +01:00
/** @var PageFrameOptions $FRAME_OPTIONS */ global $FRAME_OPTIONS;
/** @var URLRoute $ROUTE */ global $ROUTE;
/** @var Website $SITE */ global $SITE;
?>
2018-01-21 19:35:49 +01:00
2020-01-17 01:28:34 +01:00
<?php
$redirect = $ROUTE->parameter['logout_target'];
$SITE->clearLoginCookie();
2018-01-21 19:35:49 +01:00
?>
2020-01-17 01:28:34 +01:00
2018-01-21 19:35:49 +01:00
You have been logged out
2020-01-17 01:28:34 +01:00
<script> setTimeout(function () { window.location.href = "<?php echo $redirect; ?>"; }, 1000); </script>