summaryrefslogtreecommitdiff
path: root/dns.php
diff options
context:
space:
mode:
authorLuke Bratch <luke@bratch.co.uk>2017-04-13 00:33:03 +0100
committerLuke Bratch <luke@bratch.co.uk>2017-04-13 00:33:03 +0100
commit9c088a68759ae81779a0e80c0296f115cce121ce (patch)
tree91c25936f6dd44dbf7fbb56c3e1036fd16bab622 /dns.php
parent610c259272cadd57a19905853d75a68eb04d28c1 (diff)
Try to render a full HTML page on all normal pages
Diffstat (limited to 'dns.php')
-rw-r--r--dns.php22
1 files changed, 11 insertions, 11 deletions
diff --git a/dns.php b/dns.php
index b184a95..df7e0c7 100644
--- a/dns.php
+++ b/dns.php
@@ -1,3 +1,10 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>BlaDNS</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+ </head>
+ <body>
<?php
ini_set("display_errors", 1);
ini_set("display_startup_errors", 1);
@@ -115,28 +122,21 @@ if (isset($_POST['domain']) && isset($_POST['password']) && !isset($_POST['zonet
</form>
<?php
} else {
- die("sorry, the domain or password is wrong :(");
+ echo "<p>sorry, the domain or password is wrong :(</p>";
}
} else if (isset($_POST['domain']) && isset($_POST['password']) && isset($_POST['zonetext'])) {
$zonetext = str_replace("\r", '', $_POST['zonetext']);
writezone($_POST['domain'], $_POST['password'], $zonetext);
- echo "all done :)";
+ echo "<p>all done :)</p>";
} else {
?>
-<!DOCTYPE html>
-<html>
- <head>
- <title>BlaDNS</title>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- </head>
- <body>
<form name="login" action="dns.php" method="post">
Domain name: <input type="text" name="domain" autofocus><br>
Password: <input type="password" name="password"><br>
<input type="submit" value="Login">
</form>
- </body>
-</html>
<?php
}
?>
+ </body>
+</html>