diff --git a/docs/auth.php b/docs/auth.php new file mode 100644 index 0000000..9b49252 --- /dev/null +++ b/docs/auth.php @@ -0,0 +1,5 @@ + diff --git a/docs/login.php b/docs/login.php index fa72ca5..c7e7620 100755 --- a/docs/login.php +++ b/docs/login.php @@ -30,7 +30,14 @@ $stmt->execute([$user,$token]); setcookie("token", $token, time()+3600*24); - + + if (isset($_GET['next'])) { + $gett = htmlspecialchars($_GET['next'] . '?token=' . $token); + echo ""; + page_footer(); + die(); + } + header("Location: /"); die(); } @@ -45,4 +52,4 @@ )); page_footer(); -?> \ No newline at end of file +?>