23 lines
654 B
PHP
Raw Normal View History

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