moodler f4fb66d7d9 Added new structure for iplookups (ie called from logs).
ipatlas is now just a plugin, and we can add other plugins
to the same job better.
2005-07-18 08:06:16 +00:00

23 lines
654 B
PHP

<?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');
}
?>