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
d9b86af5
Commit
d9b86af5
authored
3 years ago
by
Hahn Axel (hahn)
Browse files
Options
Downloads
Patches
Plain Diff
update admin ui
parent
7200d2e3
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
public_html/admin/index.php
+14
-8
14 additions, 8 deletions
public_html/admin/index.php
public_html/admin/main.css
+4
-3
4 additions, 3 deletions
public_html/admin/main.css
with
18 additions
and
11 deletions
public_html/admin/index.php
+
14
−
8
View file @
d9b86af5
...
@@ -44,10 +44,12 @@ if (!$oR->isEnabled()){
...
@@ -44,10 +44,12 @@ if (!$oR->isEnabled()){
// ---------- SHOW ERRORS
// ---------- SHOW ERRORS
if
(
count
(
$aHosts
[
'_errors'
]))
{
if
(
count
(
$aHosts
[
'_errors'
]))
{
$sHtml
.
=
'<h2>Found errors</h2>'
$sHtml
.
=
'<h2>🔔 Found errors</h2>'
.
'<ol class="error">'
.
'<div class="content">'
.
'<li>'
.
implode
(
'</li></li>'
,
$aHosts
[
'_errors'
])
.
'</li>'
.
'<ol class="error">'
.
'</ol>'
.
'<li>'
.
implode
(
'</li></li>'
,
$aHosts
[
'_errors'
])
.
'</li>'
.
'</ol>'
.
'</div>'
;
;
}
}
unset
(
$aHosts
[
'_errors'
]);
unset
(
$aHosts
[
'_errors'
]);
...
@@ -55,13 +57,17 @@ if (!$oR->isEnabled()){
...
@@ -55,13 +57,17 @@ if (!$oR->isEnabled()){
// ---------- LOOP OVER ALL ENTRIES
// ---------- LOOP OVER ALL ENTRIES
$sHtml
.
=
'
$sHtml
.
=
'
<h2>✔️ Http head tester</h2>
<div class="content">
<form>
<form>
🌐 <input type="text" name="url" size="100" value="'
.
$sUrl
.
'" />
🌐 <input type="text" name="url" size="100" value="'
.
$sUrl
.
'"
placeholder="Enter url or click a link in the table below."
/>
<button>Http HEAD</button>
<button>Http HEAD</button>
</form>
</form>
</div>
<br>
<br>
<h2>Domains and their redirects</h2>
<h2>🛠️ Domains and their redirects</h2>
<div class="content">
<table class="mydatatable"><thead>
<table class="mydatatable"><thead>
<tr>
<tr>
...
@@ -76,7 +82,7 @@ if (!$oR->isEnabled()){
...
@@ -76,7 +82,7 @@ if (!$oR->isEnabled()){
</thead><tbody>'
;
</thead><tbody>'
;
foreach
(
$aHosts
as
$sHost
=>
$aCfg
){
foreach
(
$aHosts
as
$sHost
=>
$aCfg
){
$sTdFirst
=
'<tr class="cfgtype-'
.
$aCfg
[
'type'
]
.
'">'
$sTdFirst
=
'<tr class="cfgtype-'
.
$aCfg
[
'type'
]
.
'">'
.
'<td><a href="?url=http://'
.
$sHost
.
'/">'
.
$sHost
.
'</a></td>'
.
'<td>
🔷
<a href="?url=http://'
.
$sHost
.
'/">'
.
$sHost
.
'</a></td>'
.
'<td>'
.
'<td>'
.
(
$aCfg
[
'ip'
]
?
$aCfg
[
'ip'
]
:
'<span class="error">ERROR: unknown host</span>'
)
.
(
$aCfg
[
'ip'
]
?
$aCfg
[
'ip'
]
:
'<span class="error">ERROR: unknown host</span>'
)
.
'</td>'
.
'</td>'
...
@@ -107,7 +113,7 @@ if (!$oR->isEnabled()){
...
@@ -107,7 +113,7 @@ if (!$oR->isEnabled()){
}
}
}
}
$sHtml
.
=
'</tbody></table>'
$sHtml
.
=
'</tbody></table>
</div>
'
/*
/*
.'<h2>Config array</h2>
.'<h2>Config array</h2>
<pre>'.print_r($aHosts, 1).'</pre>'
<pre>'.print_r($aHosts, 1).'</pre>'
...
...
This diff is collapsed.
Click to expand it.
public_html/admin/main.css
+
4
−
3
View file @
d9b86af5
a
{
color
:
royalblue
;}
a
{
color
:
royalblue
;}
body
{
background
:
#f8f8f8
;
color
:
#234
;
font-family
:
arial
;}
body
{
background
:
#f8f8f8
;
color
:
#234
;
font-family
:
arial
;
margin
:
0
;
}
h1
{
background
:
rgba
(
0
,
0
,
0
,
0.05
);
margin
:
0
0
1em
;
;
padding
:
0.5em
;}
h1
{
background
:
rgba
(
0
,
0
,
0
,
0.05
);
margin
:
0
0
1em
;
;
padding
:
0.5em
;}
h1
a
{
color
:
#234
;
text-decoration
:
none
;}
h1
a
{
color
:
#234
;
text-decoration
:
none
;}
h2
{
background
:
rgba
(
0
,
0
,
0
,
0.02
);
color
:
#458
;
margin
:
0
;
}
h2
{
background
:
rgba
(
0
,
0
,
0
,
0.02
);
color
:
#458
;
margin
:
1em
0
0.5em
;
border-top
:
2px
solid
#fff
;
border-left
:
5px
solid
#fff
;
border-top-left-radius
:
0.5em
;
padding
:
0.5em
;
}
h2
a
{
color
:
#458
;
text-decoration
:
none
;
}
h2
a
{
color
:
#458
;
text-decoration
:
none
;
}
pre
{
background
:
rgba
(
0
,
0
,
0
,
0.02
);
padding
:
0.3em
1em
;
border
:
1px
solid
rgba
(
0
,
0
,
0
,
0.1
);
margin-bottom
:
2em
;}
pre
{
background
:
rgba
(
0
,
0
,
0
,
0.02
);
padding
:
0.3em
1em
;
border
:
1px
solid
rgba
(
0
,
0
,
0
,
0.1
);
margin-bottom
:
2em
;}
.content
{
margin
:
0
1em
;}
.error
{
background
:
#fcc
;}
.error
{
background
:
#fcc
;}
.cfgtype-alias
{
color
:
#89a
;
}
.cfgtype-alias
{
color
:
#89a
;}
.http-301
::after
{
color
:
#a55
;
content
:
' (Moved Permanently)'
}
.http-301
::after
{
color
:
#a55
;
content
:
' (Moved Permanently)'
}
.http-307
::after
{
color
:
#488
;
content
:
' (Temporary Redirect)'
}
.http-307
::after
{
color
:
#488
;
content
:
' (Temporary Redirect)'
}
.http-308
::after
{
color
:
#a95
;
content
:
' (Permanent Redirect)'
}
.http-308
::after
{
color
:
#a95
;
content
:
' (Permanent Redirect)'
}
...
...
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