login + logout nexus_redirect

This commit is contained in:
xiaomlove
2023-07-30 02:00:08 +08:00
parent 68896196ea
commit 925edf4166
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -4,5 +4,5 @@ dbconn();
logoutcookie(); logoutcookie();
//logoutsession(); //logoutsession();
//header("Refresh: 0; url=./"); //header("Refresh: 0; url=./");
Header("Location: " . get_protocol_prefix() . "$BASEURL/"); nexus_redirect("/");
?> ?>
+2 -2
View File
@@ -95,7 +95,7 @@ else
} }
if (!empty($_POST["returnto"])) if (!empty($_POST["returnto"]))
header("Location: " . $pprefix . "$BASEURL/{$_POST['returnto']}"); nexus_redirect($_POST['returnto']);
else else
header("Location: " . $pprefix . "$BASEURL/index.php"); nexus_redirect("index.php");
?> ?>