From ef055e79855cf3be1ad5e1aa5f9ebad480062384 Mon Sep 17 00:00:00 2001 From: Minteck Date: Sat, 1 Jan 2022 10:37:28 +0100 Subject: Bye furries --- admin/callback/index.php | 55 ------------------------------------------------ 1 file changed, 55 deletions(-) delete mode 100644 admin/callback/index.php (limited to 'admin/callback') diff --git a/admin/callback/index.php b/admin/callback/index.php deleted file mode 100644 index f938621..0000000 --- a/admin/callback/index.php +++ /dev/null @@ -1,55 +0,0 @@ - $user) { - if ($result["id"] === $id && in_array("login", $user)) { - $login = true; - } - } - - if ($login) { - $token = bin2hex(random_bytes(32)); - file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/admin/private/tokens/" . $token, json_encode($result)); - setcookie("ADMIN_TOKEN", $token, 0, "/", ".minteck.org", true, true); - - header("Location: /admin"); - } else { - header("Location: /?admin"); - } -} \ No newline at end of file -- cgit