Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ASM
dkim-validator
Commits
7bc2e943
Commit
7bc2e943
authored
Feb 20, 2018
by
Jørn Åne de Jong
Browse files
Design fixes
parent
8e9cee3d
Changes
1
Hide whitespace changes
Inline
Side-by-side
www/index.php
View file @
7bc2e943
...
@@ -8,6 +8,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
...
@@ -8,6 +8,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
}
}
$msgContent
=
$_POST
[
'mail'
];
$msgContent
=
$_POST
[
'mail'
];
$dkimValidator
=
new
DKIM_Verify
(
$msgContent
);
$dkimValidator
=
new
DKIM_Verify
(
$msgContent
);
$signatures
=
$dkimValidator
->
validate
();
}
}
?><!DOCTYPE html>
?><!DOCTYPE html>
<meta
http-equiv=
"Content-Type"
value=
"text/html;charset=utf-8"
>
<meta
http-equiv=
"Content-Type"
value=
"text/html;charset=utf-8"
>
...
@@ -47,6 +48,7 @@ textarea {
...
@@ -47,6 +48,7 @@ textarea {
resize
:
none
;
resize
:
none
;
background
:
#fff
;
background
:
#fff
;
padding
:
0
1em
;
padding
:
0
1em
;
font-family
:
monospace
;
}
}
textarea
:invalid
{
textarea
:invalid
{
background
:
url('instruction.png')
50%
10%
no-repeat
;
background
:
url('instruction.png')
50%
10%
no-repeat
;
...
@@ -56,7 +58,7 @@ nav {
...
@@ -56,7 +58,7 @@ nav {
background
:
#f8f8f8
;
background
:
#f8f8f8
;
border-bottom
:
1px
solid
#e7e7e7
;
border-bottom
:
1px
solid
#e7e7e7
;
}
}
footer
>
ol
{
footer
>
*
{
padding-left
:
2em
;
padding-left
:
2em
;
background
:
#f8f8f8
;
background
:
#f8f8f8
;
border-top
:
1px
solid
#e7e7e7
;
border-top
:
1px
solid
#e7e7e7
;
...
@@ -112,13 +114,11 @@ nav a {
...
@@ -112,13 +114,11 @@ nav a {
</nav>
</nav>
</header>
</header>
<main><textarea
required
autofocus
name=
"mail"
>
<?=
htmlspecialchars
(
$msgContent
)
?>
</textarea></main>
<?php
if
(
isset
(
$signatures
))
:
?>
<?php
if
(
isset
(
$dkimValidator
))
:
?>
<footer>
<footer>
<ol>
<ol>
<?php
foreach
(
$
dkimValidator
->
validate
()
as
$sig
)
:
?>
<?php
foreach
(
$
signatures
as
$sig
)
:
?>
<li><ul>
<li><ul>
<?php
foreach
(
$sig
as
$result
)
:
?>
<?php
foreach
(
$sig
as
$result
)
:
?>
...
@@ -133,4 +133,6 @@ nav a {
...
@@ -133,4 +133,6 @@ nav a {
</footer>
</footer>
<?php
endif
;
?>
<?php
endif
;
?>
<main><textarea
required
autofocus
name=
"mail"
>
<?=
htmlspecialchars
(
$msgContent
)
?>
</textarea></main>
</form>
</form>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment