summaryrefslogtreecommitdiff
path: root/auth/init
diff options
context:
space:
mode:
authorRaindropsSys <contact@minteck.org>2023-04-11 08:37:50 +0200
committerRaindropsSys <contact@minteck.org>2023-04-11 08:37:50 +0200
commitd20d2621d153ce00125dfd66aadf4887e82c439c (patch)
tree4a5aec2895d5878214398650a721cc7f589d8985 /auth/init
parentd4ec482e69c31454b3b39b7ae913ba480e918421 (diff)
downloadpluralconnect-d20d2621d153ce00125dfd66aadf4887e82c439c.tar.gz
pluralconnect-d20d2621d153ce00125dfd66aadf4887e82c439c.tar.bz2
pluralconnect-d20d2621d153ce00125dfd66aadf4887e82c439c.zip
Updated 2 files (automated)
Diffstat (limited to 'auth/init')
-rw-r--r--auth/init/index.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/auth/init/index.php b/auth/init/index.php
index 9428825..6f1ada7 100644
--- a/auth/init/index.php
+++ b/auth/init/index.php
@@ -1,5 +1,6 @@
<?php
+$app = $GLOBALS["ColdHazeApp"] = json_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/app.json"), true);
$server = "auth.equestria.horse";
header("Location: https://$server/hub/api/rest/oauth2/auth?client_id=" . $GLOBALS["ColdHazeApp"]["oauth"]["id"] . "&response_type=code&redirect_uri=https://ponies.equestria.horse/auth/callback&scope=Hub&request_credentials=default&access_type=offline");