diff options
author | Luke Bratch <luke@bratch.co.uk> | 2017-04-13 00:33:03 +0100 |
---|---|---|
committer | Luke Bratch <luke@bratch.co.uk> | 2017-04-13 00:33:03 +0100 |
commit | 9c088a68759ae81779a0e80c0296f115cce121ce (patch) | |
tree | 91c25936f6dd44dbf7fbb56c3e1036fd16bab622 /dns.php | |
parent | 610c259272cadd57a19905853d75a68eb04d28c1 (diff) |
Try to render a full HTML page on all normal pages
Diffstat (limited to 'dns.php')
-rw-r--r-- | dns.php | 22 |
1 files changed, 11 insertions, 11 deletions
@@ -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> |