aboutsummaryrefslogtreecommitdiff
path: root/callback/index.php
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2021-12-23 19:41:28 +0100
committerMinteck <contact@minteck.org>2021-12-23 19:41:28 +0100
commitc451cbe0b6de0707d891937d7f61596491e81565 (patch)
tree4c564a930af36980be2f345f68306aca0a967269 /callback/index.php
parent4692b0866fb0051b8647f77f1f5a8ee74f48e89e (diff)
downloadshare-c451cbe0b6de0707d891937d7f61596491e81565.tar.gz
share-c451cbe0b6de0707d891937d7f61596491e81565.tar.bz2
share-c451cbe0b6de0707d891937d7f61596491e81565.zip
Commit
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();