Results on '.$_POST['lookup'].'

'; } elseif ( !empty($_GET['l']) ) { echo '

Results on '.$_GET['l'].'

'; } else { echo '

Results on '.$lookup.'

'; } } else { echo '

Results on '.$lookup.'

'; } $types = array( 'continent_code' => 'Continent', 'country_name' => 'Country', 'region' => 'Region', 'city' => 'City', 'postal_code' => 'Postal Code', 'area_code' => 'Area Code', 'longitude' => 'Longitude', 'latitude' => 'Latitude' ); $conts = array( 'NA' => 'North America', 'EU' => 'Europe', 'SA' => 'South America', 'AS' => 'Asia', 'AF' => 'Africa', 'OC' => 'Australia', 'AN' => 'Antarctica' ); $rec = geoip_record_by_name("$lookup"); if ( empty($rec['continent_code']) ) echo "
No data found
"; else { echo "

\n"; foreach ( $types as $testme => $title ) { if ( !empty($rec[$testme]) ) { if ( ($testme == 'continent_code') && ( !empty($conts[$rec[$testme]]) ) ) { echo "\t\n"; } else { echo "\t\n"; } } } $a = geoip_time_zone_by_country_and_region($rec['country_code'], $rec['region']); if ($a) { echo "\t\n"; } $ourtime = date_default_timezone_get(); $theirtime = date_default_timezone_set( $a ); if ( $theirtime ) { echo "\t\n"; date_default_timezone_set( $ourtime ); } echo "
$title".$conts[$rec[$testme]]."
$title$rec[$testme]
Time Zone$a
Current Time".date('H:i')."

"; } ?>
  Lookup another:
"This product includes GeoLite data created by MaxMind, available from http://www.maxmind.com/."