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

Design fixes

parent 8e9cee3d
...@@ -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>
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