summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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>