From c451cbe0b6de0707d891937d7f61596491e81565 Mon Sep 17 00:00:00 2001 From: Minteck Date: Thu, 23 Dec 2021 19:41:28 +0100 Subject: Commit --- api/login/index.php | 54 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 api/login/index.php (limited to 'api') diff --git a/api/login/index.php b/api/login/index.php new file mode 100644 index 0000000..e8a41ce --- /dev/null +++ b/api/login/index.php @@ -0,0 +1,54 @@ +format("U"); + if (isset($_SERVER["HTTP_REFERER"]) && strpos($_SERVER["HTTP_REFERER"], "fl4-network-proxy.alwaysdata.net") !== false) { + setcookie("FL_SESSION_TOKEN", $token, $exp, "/", "fl4-network-proxy.alwaysdata.net", true, true); + } else { + setcookie("FL_SESSION_TOKEN", $token, $exp, "/", "famishare.ddns.net", true, true); + } + + die("ok"); +} else { + die("no"); +} -- cgit