diff --git a/favicon.png b/favicon.png new file mode 100644 index 0000000..413d4b0 Binary files /dev/null and b/favicon.png differ diff --git a/index.php b/index.php index 5e986e9..0f25b87 100644 --- a/index.php +++ b/index.php @@ -24,6 +24,7 @@ if($method === "simple") { // simple exit; } elseif($method === "myself" ) { // detailed info about own IP $ip = $_SERVER['REMOTE_ADDR']; + header(); show_http_headers(); show_hostname($ip); show_reverse($hostname); @@ -31,12 +32,14 @@ if($method === "simple") { // simple show_whois($ip); } elseif($method === "ip" ) { // detailed info an IP $ip = $t; + header(); show_hostname($ip); show_reverse($hostname); show_ipinfo($ip); show_whois($ip); } elseif($method === "dns" ) { // detailed info a host name $hostname = $t; + header(); show_reverse($hostname); show_dnsrecords($hostname); show_whois($hostname); @@ -151,6 +154,16 @@ function show_dnsrecords($hostname) { echo "
\n"; } } +// PRINT Header +function header() { + print ' + + + +IP and DNS information + +' +} // PRINT FOOTER function footer() { global $config;