summaryrefslogtreecommitdiff
path: root/api/booru.php
diff options
context:
space:
mode:
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