Commit 7bc2e943 authored by Jørn Åne de Jong's avatar Jørn Åne de Jong

Design fixes

parent 8e9cee3d
......@@ -8,6 +8,7 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
}
$msgContent = $_POST['mail'];
$dkimValidator = new DKIM_Verify($msgContent);
$signatures = $dkimValidator->validate();
}
?><!DOCTYPE html>
<meta http-equiv="Content-Type" value="text/html;charset=utf-8">
......@@ -47,6 +48,7 @@ textarea {
resize: none;
background: #fff;
padding: 0 1em;
font-family: monospace;
}
textarea:invalid {
background: url('instruction.png') 50% 10% no-repeat;
......@@ -56,7 +58,7 @@ nav {
background: #f8f8f8;
border-bottom: 1px solid #e7e7e7;
}
footer > ol {
footer > * {
padding-left: 2em;
background: #f8f8f8;
border-top: 1px solid #e7e7e7;
......@@ -112,13 +114,11 @@ nav a {
</nav>
</header>
<main><textarea required autofocus name="mail"><?= htmlspecialchars($msgContent) ?></textarea></main>
<?php if (isset($dkimValidator)): ?>
<?php if (isset($signatures)): ?>
<footer>
<ol>
<?php foreach($dkimValidator->validate() as $sig): ?>
<?php foreach($signatures as $sig): ?>
<li><ul>
<?php foreach($sig as $result): ?>
......@@ -133,4 +133,6 @@ nav a {
</footer>
<?php endif; ?>
<main><textarea required autofocus name="mail"><?= htmlspecialchars($msgContent) ?></textarea></main>
</form>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment