diff options
-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> |