summaryrefslogtreecommitdiff
path: root/api/booru.php
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2023-01-25 21:29:24 +0100
committerMinteck <contact@minteck.org>2023-01-25 21:29:24 +0100
commit9b2f05228357a34a3c0f2950782835dfeb35086e (patch)
tree5a13df212ad9c22e3af921017950cb6d617d3a37 /api/booru.php
parent78003af142c7c851ee14dbafecaa47954e07a8c2 (diff)
downloadpluralconnect-9b2f05228357a34a3c0f2950782835dfeb35086e.tar.gz
pluralconnect-9b2f05228357a34a3c0f2950782835dfeb35086e.tar.bz2
pluralconnect-9b2f05228357a34a3c0f2950782835dfeb35086e.zip
Updated 3 files and added 2 files (automated)
Diffstat (limited to 'api/booru.php')
-rw-r--r--api/booru.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/api/booru.php b/api/booru.php
new file mode 100644
index 0000000..3c3c1d0
--- /dev/null
+++ b/api/booru.php
@@ -0,0 +1,8 @@
+<?php
+
+require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/session.inc";
+global $isLoggedIn;
+if (!$isLoggedIn) header("Location: /-/login") and die();
+
+header("Location: http://localhost:8083/auth/?key=" . sha1($_COOKIE['PEH2_SESSION_TOKEN']) . md5($_COOKIE['PEH2_SESSION_TOKEN']));
+die(); \ No newline at end of file