field basic

This commit is contained in:
xiaomlove
2021-03-02 21:03:02 +08:00
parent 2cb04a1a4f
commit 16bd7ac76d
8 changed files with 273 additions and 5 deletions

View File

@@ -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;
}