use valid html

This commit is contained in:
2018-01-05 13:19:53 +01:00
parent a720d581d5
commit 504586a033

View File

@@ -154,7 +154,7 @@ function show_dnsrecords($hostname) {
echo "<br />\n"; echo "<br />\n";
} }
} }
// PRINT Header // PRINT HEADER
function print_header() { function print_header() {
print '<!DOCTYPE html> print '<!DOCTYPE html>
<html lang="en_US"> <html lang="en_US">
@@ -162,7 +162,9 @@ function print_header() {
<meta charset="utf-8"> <meta charset="utf-8">
<title>IP and DNS information</title> <title>IP and DNS information</title>
<link rel="icon" type="image/png" href="/favicon.png"> <link rel="icon" type="image/png" href="/favicon.png">
</head>'; </head>
<body>
';
} }
// PRINT FOOTER // PRINT FOOTER
function print_footer() { function print_footer() {
@@ -171,6 +173,7 @@ function print_footer() {
echo 'Your plain IP address: <a href="//'.$config->ip4domain.'">IPv4</a> | <a href="//'.$config->ip6domain.'">IPv6</a>'; echo 'Your plain IP address: <a href="//'.$config->ip4domain.'">IPv4</a> | <a href="//'.$config->ip6domain.'">IPv6</a>';
echo "<br />\n"; echo "<br />\n";
echo 'Your detailed IP info: <a href="//'.$config->ip4domain.'/'.$config->detailed_uri.'">IPv4</a> | <a href="//'.$config->ip6domain.'/'.$config->detailed_uri.'">IPv6</a>'; echo 'Your detailed IP info: <a href="//'.$config->ip4domain.'/'.$config->detailed_uri.'">IPv4</a> | <a href="//'.$config->ip6domain.'/'.$config->detailed_uri.'">IPv6</a>';
echo '</body></html>';
} }
// HELPER FUNCTIONS // HELPER FUNCTIONS