
ad
By: a guest on
Jun 22nd, 2012 | syntax:
PHP | size: 0.55 KB | hits: 17 | expires: Never
<?php
$IP = $_SERVER["REMOTE_ADDR"];
include("geo/geoip.inc");
$gi = geoip_open("geo/GeoIP.dat", GEOIP_MEMORY_CACHE);
$CountryCode = geoip_country_code_by_addr($gi, $IP);
geoip_close($gi);
// ****NO TOCAR POR ENCIMA DE ESTA LINEA****
if ($CountryCode=="ES"){
?>
//<?php header('Location: http://track.adjal.com/aff_c?offer_id=1748&aff_id=6500'); ?>
<?php
}
?>
<?
else if($CountryCode=="MX"){
?>
//<?php header('Location: http://track.adjal.com/aff_c?offer_id=1243&aff_id=6500'); ?>
<?php
}
?>