From b677202e45f5c8284e5b58fda6bab7b5169b7a6a Mon Sep 17 00:00:00 2001
From: "Hahn Axel (hahn)" <axel.hahn@iml.unibe.ch>
Date: Tue, 31 May 2022 14:21:58 +0200
Subject: [PATCH] update admin

---
 public_html/admin/index.php            | 7 ++-----
 public_html/admin/main.css             | 1 +
 public_html/classes/redirect.class.php | 3 +++
 3 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/public_html/admin/index.php b/public_html/admin/index.php
index 84ce99e..aa0594e 100644
--- a/public_html/admin/index.php
+++ b/public_html/admin/index.php
@@ -12,7 +12,7 @@
  * admin: list all defined redirections
  * ----------------------------------------------------------------------
  * 2022-02-03  v0.1  <axel.hahn@iml.unibe.ch>  initial version 
- * 2022-05-21  v0.2  <axel.hahn@iml.unibe.ch>  optical changes; use debugredirect=1 if url is a local domain
+ * 2022-05-31  v0.2  <axel.hahn@iml.unibe.ch>  optical changes; use debugredirect=1 if url is a local domain
  * ----------------------------------------------------------------------
  */
 
@@ -188,9 +188,6 @@ if (!$oR->isEnabled()){
         */
         ;
 
-
-
-    
     $sErrors = $sErrors 
         ? '<h2>'.$aIco['h2_err'].' Found errors</h2>'
             .'<div class="content">'
@@ -200,7 +197,7 @@ if (!$oR->isEnabled()){
             .'</div>'
         : ''
     ;
-
+    $sHtml.='<footer><a href="'.$oR->urlRepo.'">Source</a> | <a href="'.$oR->urlDocs.'">Docs</a></footer>';
 }
 
 // ---------- OUTPUT
diff --git a/public_html/admin/main.css b/public_html/admin/main.css
index 54004d4..8f52376 100644
--- a/public_html/admin/main.css
+++ b/public_html/admin/main.css
@@ -7,6 +7,7 @@ h2{background: #d0e0e8;  color:#458; margin: 1em 0 0.5em; border-top: 2px solid
 pre{background: rgba(0,0,0,0.02);padding: 0.3em 1em; border: 1px solid rgba(0,0,0,0.1); margin: 2em 0 3em;; border-bottom: 2px solid rgba(0,0,0,0.2);}
 
 tr:hover{background: #f4f0f8 !important;}
+footer{background:rgba(0,0,0,0.03); margin-top: 4em; text-align: right;padding: 1em;}
 
 .content{margin: 0 1em;}
 .error{background: #fcc;}
diff --git a/public_html/classes/redirect.class.php b/public_html/classes/redirect.class.php
index 22101d4..7d9231d 100644
--- a/public_html/classes/redirect.class.php
+++ b/public_html/classes/redirect.class.php
@@ -47,6 +47,9 @@ class redirect {
     protected $aConfig  = false;
     protected $aRedirect  = false;
     
+    public $urlRepo='https://git-repo.iml.unibe.ch/iml-open-source/redirect-handler';
+    public $urlDocs='https://os-docs.iml.unibe.ch/redirect-handler/';
+
     // ----------------------------------------------------------------------
     // CONSTRUCTOR
     // ----------------------------------------------------------------------
-- 
GitLab