From 925edf4166f26007c54ecfe9b9eaf8b63322ff8b Mon Sep 17 00:00:00 2001 From: xiaomlove Date: Sun, 30 Jul 2023 02:00:08 +0800 Subject: [PATCH] login + logout nexus_redirect --- public/logout.php | 4 ++-- public/takelogin.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/public/logout.php b/public/logout.php index 6eb78751..b237faba 100644 --- a/public/logout.php +++ b/public/logout.php @@ -4,5 +4,5 @@ dbconn(); logoutcookie(); //logoutsession(); //header("Refresh: 0; url=./"); -Header("Location: " . get_protocol_prefix() . "$BASEURL/"); -?> \ No newline at end of file +nexus_redirect("/"); +?> diff --git a/public/takelogin.php b/public/takelogin.php index 42e4312e..48c8964a 100644 --- a/public/takelogin.php +++ b/public/takelogin.php @@ -95,7 +95,7 @@ else } if (!empty($_POST["returnto"])) - header("Location: " . $pprefix . "$BASEURL/{$_POST['returnto']}"); + nexus_redirect($_POST['returnto']); else - header("Location: " . $pprefix . "$BASEURL/index.php"); + nexus_redirect("index.php"); ?>