aboutsummaryrefslogtreecommitdiff
path: root/login
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 /login
parent4692b0866fb0051b8647f77f1f5a8ee74f48e89e (diff)
downloadshare-c451cbe0b6de0707d891937d7f61596491e81565.tar.gz
share-c451cbe0b6de0707d891937d7f61596491e81565.tar.bz2
share-c451cbe0b6de0707d891937d7f61596491e81565.zip
Commit
Diffstat (limited to 'login')
-rw-r--r--login/index.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/login/index.php b/login/index.php
new file mode 100644
index 0000000..cc2a306
--- /dev/null
+++ b/login/index.php
@@ -0,0 +1,9 @@
+<?php
+
+//var_dump($_SERVER);die();
+
+if (isset($_SERVER["HTTP_REFERER"]) && strpos($_SERVER["HTTP_REFERER"], "fl4-network-proxy.alwaysdata.net") !== false) {
+ header("Location: https://familine.jetbrains.space/oauth/auth?response_type=token&client_id=b73d6873-fb22-4794-ad79-585a7280a066&redirect_uri=https://fl4-network-proxy.alwaysdata.net/oauth&scope=Profile:ViewProfile");
+} else {
+ header("Location: https://familine.jetbrains.space/oauth/auth?response_type=token&client_id=b73d6873-fb22-4794-ad79-585a7280a066&redirect_uri=https://famishare.ddns.net/oauth&scope=Profile:ViewProfile");
+}