Skip to content
Snippets Groups Projects

7728 handle http and https redirects

Merged Hahn Axel (hahn) requested to merge 7728-handle-http-and-https-redirects into master
2 files
+ 7
7
Compare changes
  • Side-by-side
  • Inline

Files

+ 5
5
@@ -24,7 +24,6 @@ $sHtml = '';
$sErrors = '';
$aIco = [
'h2_err' => '⚠️',
'h2_config' => '🛠️',
'h2_file' => '📄',
@@ -32,6 +31,8 @@ $aIco = [
'ip_warn' => '🟠',
'ip_err' => '❗',
'error' => '❗',
'type_config' => '🔷',
'type_alias' => '▪️',
@@ -89,7 +90,7 @@ if (!$oR->isEnabled()) {
$sMyIp = gethostbyname($_SERVER['SERVER_NAME']);
if (!$sMyIp) {
$sErrors .= '<li>Ip address of current host [' . $_SERVER['SERVER_NAME'] . '] was not found.</li>';
$sErrors .= '<li>'.$aIco['error'].' Ip address of current host [' . $_SERVER['SERVER_NAME'] . '] was not found.</li>';
}
// ---------- GET CONFIG DATA
@@ -99,7 +100,7 @@ if (!$oR->isEnabled()) {
// ---------- SHOW ERRORS
if (count($aHosts['_errors'])) {
$sErrors .= '<li>' . implode('</li><li>', $aHosts['_errors']) . '</li>';
$sErrors .= '<li>'.$aIco['error'].' ' . implode('</li><li>'.$aIco['error'].' ', $aHosts['_errors']) . '</li>';
}
unset($aHosts['_errors']);
@@ -238,8 +239,7 @@ if (!$oR->isEnabled()) {
;
$sErrors = $sErrors
? '<!-- <h2>' . $aIco['h2_err'] . ' Found errors</h2> -->'
. '<ol class="error">'
? '<ol class="error">'
. $sErrors
. '</ol>'
: ''
Loading