Automatic installer.php lang files by installer_builder (20070726)
[moodle-linuxchix.git] / iplookup / hostip / lib.php
blob7460beadd5c90ae11d25ba9ce3802b04b930e31f
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"></object>';
18 close_window_button();
19 print_footer('none');