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"); ?>