Add logout page

This commit is contained in:
Jay Trees 2022-01-17 13:15:54 +01:00
parent ee7c57a374
commit e674c5bb86

29
includes/pages/logout.php Normal file
View file

@ -0,0 +1,29 @@
<?php
/**
* logout.php
*
* @author Jay Trees <github.jay@grandel.anonaddy.me>
*/
use wishthis\Page;
$page = new page(__FILE__, 'Logout');
session_destroy();
$page->header();
$page->navigation();
?>
<main>
<div class="ui container">
<div class="ui segment">
<h1 class="ui header"><?= $page->title ?></h1>
<h2 class="ui header">Goodbye</h2>
<p>You have been logged out.</p>
</div>
</div>
</main>
<?php
$page->footer();