2 // Lookup a user using HostIP
4 function iplookup_display($ip, $user=0) {
8 if ($user = get_record('user', 'id', $user)) {
9 print_heading(fullname($user).", $user->city, $user->country", 'center', '4');
13 echo 'Search results: <iframe src="http://www.hostip.info/api/get.html?ip='.$ip.'" height="60" width="300"></iframe>';
15 echo '<object data="http://www.hostip.info/map/frame.html?ip='.$ip.'" '.
16 'type="text/html" border="0" width="610" height="330"></object>';
18 close_window_button();