Add logout page
This commit is contained in:
parent
ee7c57a374
commit
e674c5bb86
1 changed files with 29 additions and 0 deletions
29
includes/pages/logout.php
Normal file
29
includes/pages/logout.php
Normal 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();
|
Loading…
Reference in a new issue