Commit 343aa7df authored by Ad Schellevis's avatar Ad Schellevis

(legacy) remove isAjax in guiconfig.inc

parent a453828f
......@@ -658,28 +658,7 @@ function get_crash_report($pedantic = false)
function redirectHeader($text)
{
global $_SERVER;
if (isAjax()) {
if ($_SERVER['HTTPS'] == 'on') {
$protocol = 'https';
} else {
$protocol = 'http';
}
$port = '';
if (
!($_SERVER['SERVER_PORT'] == '80' && $protocol == 'http') &&
!($_SERVER['SERVER_PORT'] == '443' && $protocol == 'https')
) {
$port = ":{$_SERVER['SERVER_PORT']}";
}
echo "\ndocument.location.href = '{$protocol}://{$_SERVER['SERVER_NAME']}{$port}/{$text}';\n";
} else {
header("Location: $text");
}
header("Location: $text");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment