summaryrefslogtreecommitdiff
path: root/pages/logout.php
diff options
context:
space:
mode:
Diffstat (limited to 'pages/logout.php')
-rw-r--r--pages/logout.php15
1 files changed, 0 insertions, 15 deletions
diff --git a/pages/logout.php b/pages/logout.php
deleted file mode 100644
index 0263278..0000000
--- a/pages/logout.php
+++ /dev/null
@@ -1,15 +0,0 @@
-<?php
-
-if (isset($_COOKIE['PEH2_SESSION_TOKEN'])) {
- if (file_exists($_SERVER['DOCUMENT_ROOT'] . "/includes/tokens/" . str_replace(".", "", str_replace("/", "", $_COOKIE['PEH2_SESSION_TOKEN'])))) {
- unlink($_SERVER['DOCUMENT_ROOT'] . "/includes/tokens/" . str_replace(".", "", str_replace("/", "", $_COOKIE['PEH2_SESSION_TOKEN'])));
- }
-}
-
-if (isset($_COOKIE['PEH2_USER_TOKEN'])) {
- if (file_exists($_SERVER['DOCUMENT_ROOT'] . "/includes/tokens-public/" . str_replace(".", "", str_replace("/", "", $_COOKIE['PEH2_USER_TOKEN'])))) {
- unlink($_SERVER['DOCUMENT_ROOT'] . "/includes/tokens-public/" . str_replace(".", "", str_replace("/", "", $_COOKIE['PEH2_USER_TOKEN'])));
- }
-}
-
-header("Location: /") and die(); \ No newline at end of file