summaryrefslogtreecommitdiff
path: root/api/booru.php
blob: 3c3c1d0699280b5a46aa45d37656806263015961 (plain)
1
2
3
4
5
6
7
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();