From 6b796258d413f00e498ce7f80f73a9f6c061f29c Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Sat, 30 Mar 2024 23:40:33 +0100 Subject: Updated 5 files, added 2 files, deleted 495 files and renamed 7 files (automated) --- auth/callback/index.php | 85 ------------------------------------------------- auth/index.php | 1 - auth/init/index.php | 7 ---- 3 files changed, 93 deletions(-) delete mode 100644 auth/callback/index.php delete mode 100644 auth/index.php delete mode 100644 auth/init/index.php (limited to 'auth') diff --git a/auth/callback/index.php b/auth/callback/index.php deleted file mode 100644 index e808dd1..0000000 --- a/auth/callback/index.php +++ /dev/null @@ -1,85 +0,0 @@ - time(), - "last" => time(), - "profile" => $result, - "addresses" => [], - "name" => "Ponycule Web (" . get_browser(null, true)["browser"] . " on " . str_replace("Windows dows", "Windows", str_replace("Win", "Windows ", str_replace("MacOSX", "macOS", get_browser(null, true)["platform"]))) . ")" - ])); - - file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/tokens/" . $token, $result_orig); - } else { - file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/sessions/" . $token, json_encode([ - "created" => time(), - "last" => time(), - "profile" => $result, - "addresses" => [], - "name" => "Ponycule Web (" . get_browser(null, true)["browser"] . " on " . get_browser(null, true)["platform"] . ")" - ])); - - file_put_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/lowertokens/" . $token, $result_orig); - } - - header("Set-Cookie: PEH2_SESSION_TOKEN=" . $token . "; SameSite=None; Path=/; Secure; HttpOnly; Expires=" . date("r", time() + (86400 * 730))); - - if (isset($_COOKIE["PEH2_RETURN_PAGE"])) { - header("Location: " . str_replace("\n", "", str_replace("\r", "", $_COOKIE["PEH2_RETURN_PAGE"]))); - } else { - header("Location: /"); - } - - setcookie("PEH2_RETURN_PAGE", ""); - die(); -} \ No newline at end of file diff --git a/auth/index.php b/auth/index.php deleted file mode 100644 index 3067e82..0000000 --- a/auth/index.php +++ /dev/null @@ -1 +0,0 @@ -