diff options
Diffstat (limited to 'account/logout.php')
| -rw-r--r-- | account/logout.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/account/logout.php b/account/logout.php new file mode 100644 index 0000000..dfe0952 --- /dev/null +++ b/account/logout.php @@ -0,0 +1,10 @@ +<?php +include_once $_SERVER['DOCUMENT_ROOT'] . '/lib/partials.php'; +include_once $_SERVER['DOCUMENT_ROOT'] . '/lib/utils.php'; +include_once $_SERVER['DOCUMENT_ROOT'] . '/lib/config.php'; +include_once $_SERVER['DOCUMENT_ROOT'] . '/lib/alert.php'; + +session_destroy(); + +header('Location: /'); +echo 'Logged out!'; |
