aboutsummaryrefslogtreecommitdiff
path: root/callback/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'callback/index.php')
-rw-r--r--callback/index.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/callback/index.php b/callback/index.php
new file mode 100644
index 0000000..533a2ac
--- /dev/null
+++ b/callback/index.php
@@ -0,0 +1,11 @@
+<?php
+
+if (!isset($_GET['u'])) {
+ die();
+}
+
+$exp = (new DateTime('tomorrow'))->format("U");
+setcookie("FL_SESSION_TOKEN", $_GET['u'], $exp, "/", ".familine.minteck.org", true, true);
+
+header("Location: https://share.familine.minteck.org");
+die();