Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
redirect-handler
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IML Open Source
redirect-handler
Commits
b677202e
Commit
b677202e
authored
3 years ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Patches
Plain Diff
update admin
parent
8d9f54b8
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
public_html/admin/index.php
+2
-5
2 additions, 5 deletions
public_html/admin/index.php
public_html/admin/main.css
+1
-0
1 addition, 0 deletions
public_html/admin/main.css
public_html/classes/redirect.class.php
+3
-0
3 additions, 0 deletions
public_html/classes/redirect.class.php
with
6 additions
and
5 deletions
public_html/admin/index.php
+
2
−
5
View file @
b677202e
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
* admin: list all defined redirections
* admin: list all defined redirections
* ----------------------------------------------------------------------
* ----------------------------------------------------------------------
* 2022-02-03 v0.1 <axel.hahn@iml.unibe.ch> initial version
* 2022-02-03 v0.1 <axel.hahn@iml.unibe.ch> initial version
* 2022-05-
2
1 v0.2 <axel.hahn@iml.unibe.ch> optical changes; use debugredirect=1 if url is a local domain
* 2022-05-
3
1 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()){
...
@@ -188,9 +188,6 @@ if (!$oR->isEnabled()){
*/
*/
;
;
$sErrors
=
$sErrors
$sErrors
=
$sErrors
?
'<h2>'
.
$aIco
[
'h2_err'
]
.
' Found errors</h2>'
?
'<h2>'
.
$aIco
[
'h2_err'
]
.
' Found errors</h2>'
.
'<div class="content">'
.
'<div class="content">'
...
@@ -200,7 +197,7 @@ if (!$oR->isEnabled()){
...
@@ -200,7 +197,7 @@ if (!$oR->isEnabled()){
.
'</div>'
.
'</div>'
:
''
:
''
;
;
$sHtml
.
=
'<footer><a href="'
.
$oR
->
urlRepo
.
'">Source</a> | <a href="'
.
$oR
->
urlDocs
.
'">Docs</a></footer>'
;
}
}
// ---------- OUTPUT
// ---------- OUTPUT
...
...
This diff is collapsed.
Click to expand it.
public_html/admin/main.css
+
1
−
0
View file @
b677202e
...
@@ -7,6 +7,7 @@ h2{background: #d0e0e8; color:#458; margin: 1em 0 0.5em; border-top: 2px solid
...
@@ -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
);}
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
;}
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
;}
.content
{
margin
:
0
1em
;}
.error
{
background
:
#fcc
;}
.error
{
background
:
#fcc
;}
...
...
This diff is collapsed.
Click to expand it.
public_html/classes/redirect.class.php
+
3
−
0
View file @
b677202e
...
@@ -47,6 +47,9 @@ class redirect {
...
@@ -47,6 +47,9 @@ class redirect {
protected
$aConfig
=
false
;
protected
$aConfig
=
false
;
protected
$aRedirect
=
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
// CONSTRUCTOR
// ----------------------------------------------------------------------
// ----------------------------------------------------------------------
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment