Automatic installer.php lang files by installer_builder (20081123)
[moodle.git] / iplookup / hostip / lib.php
blob39e4ec7a2540d9fcfe983bc97d4e6efc4fb627af
1 <?php // $Id$
2 // Lookup a user using HostIP
4 function iplookup_display($ip, $user=0) {
6 print_header();
7 if ($user) {
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" hspace="0" vspace="0"></object>';
18 close_window_button();
19 print_footer('none');