Skip to content
Snippets Groups Projects
Commit 537e0e1b authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

small optical fixes

parent 839dc92d
No related branches found
No related tags found
1 merge request!87728 handle http and https redirects
...@@ -24,7 +24,6 @@ $sHtml = ''; ...@@ -24,7 +24,6 @@ $sHtml = '';
$sErrors = ''; $sErrors = '';
$aIco = [ $aIco = [
'h2_err' => '⚠️',
'h2_config' => '🛠️', 'h2_config' => '🛠️',
'h2_file' => '📄', 'h2_file' => '📄',
...@@ -32,6 +31,8 @@ $aIco = [ ...@@ -32,6 +31,8 @@ $aIco = [
'ip_warn' => '🟠', 'ip_warn' => '🟠',
'ip_err' => '❗', 'ip_err' => '❗',
'error' => '❗',
'type_config' => '🔷', 'type_config' => '🔷',
'type_alias' => '▪️', 'type_alias' => '▪️',
...@@ -89,7 +90,7 @@ if (!$oR->isEnabled()) { ...@@ -89,7 +90,7 @@ if (!$oR->isEnabled()) {
$sMyIp = gethostbyname($_SERVER['SERVER_NAME']); $sMyIp = gethostbyname($_SERVER['SERVER_NAME']);
if (!$sMyIp) { 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 // ---------- GET CONFIG DATA
...@@ -99,7 +100,7 @@ if (!$oR->isEnabled()) { ...@@ -99,7 +100,7 @@ if (!$oR->isEnabled()) {
// ---------- SHOW ERRORS // ---------- SHOW ERRORS
if (count($aHosts['_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']); unset($aHosts['_errors']);
...@@ -238,8 +239,7 @@ if (!$oR->isEnabled()) { ...@@ -238,8 +239,7 @@ if (!$oR->isEnabled()) {
; ;
$sErrors = $sErrors $sErrors = $sErrors
? '<!-- <h2>' . $aIco['h2_err'] . ' Found errors</h2> -->' ? '<ol class="error">'
. '<ol class="error">'
. $sErrors . $sErrors
. '</ol>' . '</ol>'
: '' : ''
......
...@@ -141,8 +141,8 @@ class redirectadmin extends redirect ...@@ -141,8 +141,8 @@ class redirectadmin extends redirect
$iHops = (count($aTmp[0]) - 1); $iHops = (count($aTmp[0]) - 1);
$sReturn = ($iHops > 0 $sReturn = ($iHops > 0
? 'Found hops: <strong>' . $iHops . '</strong>' ? '<br>Found hops: <strong>' . $iHops . '</strong>'
. ($iHops > 1 ? ' <span class="warning"> ⚠️ Verify your redirect to skip unneeded hops.</span>' : '') . '<br><br>' . ($iHops > 1 ? ' <br><span class="warning"> ⚠️ Verify your redirect to skip unneeded hops.</span>' : '') . '<br><br>'
: '' : ''
) . $sReturn ) . $sReturn
; ;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment