mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-15 21:41:03 +08:00
field basic
This commit is contained in:
@@ -1253,11 +1253,14 @@ function allowedemails()
|
||||
|
||||
function redirect($url)
|
||||
{
|
||||
if (substr($url, 0, 4) != 'http') {
|
||||
$url = getSchemeAndHttpHost() . '/' . trim($url, '/');
|
||||
}
|
||||
if(!headers_sent()){
|
||||
header("Location : $url");
|
||||
}
|
||||
else
|
||||
echo "<script type=\"text/javascript\">window.location.href = '$url';</script>";
|
||||
header("Location: $url", true, 302);
|
||||
} else {
|
||||
echo "<script type=\"text/javascript\">window.location.href = '$url';</script>";
|
||||
}
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user