// This code demonstrates how to lookup the country by IP Address
include("geoip.inc");
// Uncomment if querying against GeoIP/Lite City.
// include("geoipcity.inc");
$gi = geoip_open("/usr/local/share/GeoIP/GeoIP.dat",GEOIP_STANDARD);
$ccx = geoip_country_code_by_addr($gi, $_SERVER["REMOTE_ADDR"]);
$doUS = 0;
if (empty($ccx))
echo "";
else
if ($ccx=='US')
$doUS = 1;
geoip_close($gi);
if ($doUS==0) {
?>
IT'S EASY modify text in a variety of image templates
to create professional quality images with your own
personal touch. LEARN MORE...
} ?>
NEW-For Your Valentine You Message, Heart Shaped TRY IT NOW...
if ($doUS) { ?>
Impress your Valentine with a printed card, personalized by you! TRY IT NOW...
} else {
?>
See our full collection of friendship images... TRY IT NOW...
}
?>