diff --git a/public_html/admin/index.php b/public_html/admin/index.php index 84ce99ed721881572723597c4c27116c942de2a2..aa0594e661441ac71f6b1f72523aab1f7ee48320 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 54004d495cabdec76a02d7a2d22a940d64197941..8f52376cff7a6a791c868ea7cbdbecca7c0281b9 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 22101d4d88ab236865810d0c731931bc8b2d312c..7d9231d5ce910c331abd37bee4109d8d432ef320 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 // ----------------------------------------------------------------------