From 45d75dcbab38d00e12b8641af62bdfc319ad0a2a Mon Sep 17 00:00:00 2001
From: "Hahn Axel (hahn)" <axel.hahn@iml.unibe.ch>
Date: Thu, 2 Jun 2022 15:04:16 +0200
Subject: [PATCH] add legend

---
 public_html/admin/index.php | 38 +++++++++++++++++++++++++++++++++++--
 1 file changed, 36 insertions(+), 2 deletions(-)

diff --git a/public_html/admin/index.php b/public_html/admin/index.php
index aa0594e..c03b166 100644
--- a/public_html/admin/index.php
+++ b/public_html/admin/index.php
@@ -196,8 +196,42 @@ if (!$oR->isEnabled()){
                 .'</ol>'
             .'</div>'
         : ''
-    ;
-    $sHtml.='<footer><a href="'.$oR->urlRepo.'">Source</a> | <a href="'.$oR->urlDocs.'">Docs</a></footer>';
+        ;
+
+    $sHtml.=''
+        .'<br><br>'
+        .'<div class="content legend">'
+            . '<strong>Legend</strong>:<br>'
+            . '<table><tbody>'
+                .'<tr>'
+                . '<td colspan="2"><br>Icons:</td>'
+                .'</tr>'
+                .'<tr>'
+                    . '<td>'
+                    . $aIco['type_config'].' Domain with config entries<br>'
+                    . $aIco['type_alias'].' Alias pointng to the config of another domain<br>'
+                    . $aIco['url'].' clickable url to show result of a http head request<br>'
+                    . '</td>'
+                    . '<td>'
+                    . $aIco['ip_ok'].' Domain is on the same ip like the redirect tool.<br>'
+                    . $aIco['ip_warn'].' Domain is on another domain (= the config from here does not work because redirect is handled on another system)<br>'
+                    . $aIco['ip_err'].' Hostname was not found ni DNS<br>'
+                    . '</td>'
+                . '</tr>'
+                .'<tr>'
+                . '<td colspan="2"><br>Redirect status codes:</td>'
+                .'<tr>'
+                    . '<td colspan="2">'
+                        . '301 Moved Permanently - The address is outdated! However, the new address of the resource is still being forwarded.<br>'
+                        . '307 Temporary Redirect - The URL is currently being redirected temporarily (method is retained) - but the old address remains valid.<br>'
+                        . '308 Permanent Redirect - The address is outdated! The new address of the resource is forwarded with the same method.<br>'
+                    . '</td>'
+                    .'</tr>'
+            .'</tbody></table>'
+        .'</div>'
+
+        .'<footer><a href="'.$oR->urlRepo.'">Source</a> | <a href="'.$oR->urlDocs.'">Docs</a></footer>'
+        ;
 }
 
 // ---------- OUTPUT
-- 
GitLab