aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
authorespipj <espipj@gmail.com>2019-05-27 21:26:44 +0100
committerespipj <espipj@gmail.com>2019-05-27 21:26:44 +0100
commit0c3ff0419c81c0901b6a991d70f2e5e709e4a233 (patch)
treea839a130e5e31e40fadab7cda911495fa0bbe382 /phpBB/includes/functions.php
parent97e92f52d7b60ec7194bbee772ab14592c551e82 (diff)
downloadforums-0c3ff0419c81c0901b6a991d70f2e5e709e4a233.tar
forums-0c3ff0419c81c0901b6a991d70f2e5e709e4a233.tar.gz
forums-0c3ff0419c81c0901b6a991d70f2e5e709e4a233.tar.bz2
forums-0c3ff0419c81c0901b6a991d70f2e5e709e4a233.tar.xz
forums-0c3ff0419c81c0901b6a991d70f2e5e709e4a233.zip
[ticket/16070] Remove unused code
PHPBB3-16070
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r--phpBB/includes/functions.php21
1 files changed, 0 insertions, 21 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index 5234c3472d..5ade4854c1 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -1843,27 +1843,6 @@ function redirect($url, $return = false, $disable_cd_check = false)
garbage_collection();
}
- // Redirect via an HTML form for PITA webservers
- if (@preg_match('#WebSTAR|Xitami#', getenv('SERVER_SOFTWARE')))
- {
- header('Refresh: 0; URL=' . $url);
-
- echo '<!DOCTYPE html>';
- echo '<html dir="' . $user->lang['DIRECTION'] . '" lang="' . $user->lang['USER_LANG'] . '">';
- echo '<head>';
- echo '<meta charset="utf-8">';
- echo '<meta http-equiv="X-UA-Compatible" content="IE=edge">';
- echo '<meta http-equiv="refresh" content="0; url=' . str_replace('&', '&amp;', $url) . '" />';
- echo '<title>' . $user->lang['REDIRECT'] . '</title>';
- echo '</head>';
- echo '<body>';
- echo '<div style="text-align: center;">' . sprintf($user->lang['URL_REDIRECT'], '<a href="' . str_replace('&', '&amp;', $url) . '">', '</a>') . '</div>';
- echo '</body>';
- echo '</html>';
-
- exit;
- }
-
// Behave as per HTTP/1.1 spec for others
header('Location: ' . $url);
exit;