Browse Source

add whois output

master
mxmehl 5 years ago
parent
commit
97b44a0935
  1. 6
      index.php

6
index.php

@ -26,8 +26,12 @@ if($method === "simple") { // simple
echo "<strong>HOSTNAME</strong>: " . $hostname;
echo "<br />";
echo "<strong>IPv4 REVERSE LOOKUP</strong>: " . implode(', ', gethostbynamel($hostname));
echo "<br /><br /><strong>WHOIS:</strong>";
$whois = shell_exec("whois " . $_SERVER['REMOTE_ADDR']);
echo "<pre>"; print_r($whois); echo "</pre>";
echo "<br />";
echo "<br /><br />";
echo "<br /><hr /><br />";
echo 'Plain IP address: <a href="//'.$config->ip4domain.'">IPv4</a> | <a href="//'.$config->ip6domain.'">IPv6</a>';
echo "<br />";
echo 'Detailed header info: <a href="//'.$config->ip4domain.'/'.$config->detailed_uri.'">IPv4</a> | <a href="//'.$config->ip6domain.'/'.$config->detailed_uri.'">IPv6</a>';

Loading…
Cancel
Save