add html header and favicon
This commit is contained in:
BIN
favicon.png
Normal file
BIN
favicon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.5 KiB |
13
index.php
13
index.php
@@ -24,6 +24,7 @@ if($method === "simple") { // simple
|
|||||||
exit;
|
exit;
|
||||||
} elseif($method === "myself" ) { // detailed info about own IP
|
} elseif($method === "myself" ) { // detailed info about own IP
|
||||||
$ip = $_SERVER['REMOTE_ADDR'];
|
$ip = $_SERVER['REMOTE_ADDR'];
|
||||||
|
header();
|
||||||
show_http_headers();
|
show_http_headers();
|
||||||
show_hostname($ip);
|
show_hostname($ip);
|
||||||
show_reverse($hostname);
|
show_reverse($hostname);
|
||||||
@@ -31,12 +32,14 @@ if($method === "simple") { // simple
|
|||||||
show_whois($ip);
|
show_whois($ip);
|
||||||
} elseif($method === "ip" ) { // detailed info an IP
|
} elseif($method === "ip" ) { // detailed info an IP
|
||||||
$ip = $t;
|
$ip = $t;
|
||||||
|
header();
|
||||||
show_hostname($ip);
|
show_hostname($ip);
|
||||||
show_reverse($hostname);
|
show_reverse($hostname);
|
||||||
show_ipinfo($ip);
|
show_ipinfo($ip);
|
||||||
show_whois($ip);
|
show_whois($ip);
|
||||||
} elseif($method === "dns" ) { // detailed info a host name
|
} elseif($method === "dns" ) { // detailed info a host name
|
||||||
$hostname = $t;
|
$hostname = $t;
|
||||||
|
header();
|
||||||
show_reverse($hostname);
|
show_reverse($hostname);
|
||||||
show_dnsrecords($hostname);
|
show_dnsrecords($hostname);
|
||||||
show_whois($hostname);
|
show_whois($hostname);
|
||||||
@@ -151,6 +154,16 @@ function show_dnsrecords($hostname) {
|
|||||||
echo "<br />\n";
|
echo "<br />\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// PRINT Header
|
||||||
|
function header() {
|
||||||
|
print '<!DOCTYPE html>
|
||||||
|
<html lang="en_US">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>IP and DNS information</title>
|
||||||
|
<link rel="icon" type="image/png" href="/favicon.png">
|
||||||
|
</head>'
|
||||||
|
}
|
||||||
// PRINT FOOTER
|
// PRINT FOOTER
|
||||||
function footer() {
|
function footer() {
|
||||||
global $config;
|
global $config;
|
||||||
|
|||||||
Reference in New Issue
Block a user