Necesito ayuda para verificar si funciona mi GeoIp , yo no puedo comprobar si realmente esta funcionando ya que solo me muestra la publicidad de mi pais , quiero ver si esta funcionando bien para todos los paises ,
Lo unico que tienen que hacer es entrar al link no hagan caso del mensaje es solo de prueba, y ver si les aparece la publicidad de acuerdo al pais
esta es la pagina
http://verificacion.co.cc/verificacion1.php
este es el codigo
Código:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv=\"Refresh\" content=\"3 ; URL=redir.php\">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>verificacion</title>
<script language="Javascript">
<!-- Begin
document.oncontextmenu = function(){return false}
// End -->
</script>
<script>
alert('solamente verifica que la publicidad es acorde a tu pais . Muchas Gracias.');
</script>
<?php
include("geoiploc.php"); // Must include this
// ip must be of the form "192.168.1.100"
// you may load this from a database
$ip = $_SERVER["REMOTE_ADDR"];
// returns country code by default
// optionally, you can specify the return type
// type can be "code" (default), "abbr", "name"
// print country abbreviation - case insensitive
// full name of country - spaces are trimmed
$nom=getCountryFromIP($ip, " NamE ");
if ($nom== "Ecuador"){
?>
<meta http-equiv="REFRESH" content="0;url=http://track.adjal.com/aff_c?offer_id=562&aff_id=xxx&url_id=742">
<?php
if ($nom== "Spain"){
?>
<meta http-equiv="REFRESH" content="0;url=http://track.adjal.com/aff_c?offer_id=980&aff_id=xxx&url_id=2224">
<?php
if ($nom== "Mexico"){
?>
<meta http-equiv="REFRESH" content="0;url=http://track.adjal.com/aff_c?offer_id=563&aff_id=xxx&url_id=756">
<?php
if ($nom== "Peru"){
?>
<meta http-equiv="REFRESH" content="0;url=http://track.adjal.com/aff_c?offer_id=566&aff_id=xxx&url_id=766">
<?php
if ($nom== "Chile"){
?>
<meta http-equiv="REFRESH" content="0;url=http://track.adjal.com/aff_c?offer_id=832&aff_id=xxx">
<?php
if ($nom== "Argentina"){
?>
<meta http-equiv="REFRESH" content="0;url=http://track.adjal.com/aff_c?offer_id=561&aff_id=xxx&url_id=717">
<?php
if ($nom== "Uruguay"){
?>
<meta http-equiv="REFRESH" content="0;url=http://track.adjal.com/aff_c?offer_id=569&aff_id=xxxx&url_id=771">
<?php
if ($nom== "Paraguay"){
?>
<meta http-equiv="REFRESH" content="0;url=http://track.adjal.com/aff_c?offer_id=647&aff_id=xxx&url_id=963">
<?php
if ($nom== "Costa rica"){
?>
<meta http-equiv="REFRESH" content="0;url=http://track.adjal.com/aff_c?offer_id=559&aff_id=xxx&url_id=737">
<?php
if ($nom== "Colombia"){
?>
<meta http-equiv="REFRESH" content="0;url=http://track.adjal.com/aff_c?offer_id=567&aff_id=xxx&url_id=732">
<?php
if ($nom== "Bolivia"){
?>
<meta http-equiv="REFRESH" content="0;url=http://track.adjal.com/aff_c?offer_id=564&aff_id=xxx&url_id=722">
<?php
if ($nom== "Guatemala"){
?>
<meta http-equiv="REFRESH" content="0;url=http://track.adjal.com/aff_c?offer_id=558&aff_id=xxx&url_id=752">
<?php
if ($nom== "Nicaragua"){
?>
<meta http-equiv="REFRESH" content="0;url=http://track.adjal.com/aff_c?offer_id=646&aff_id=xxx&url_id=961">
<?php
if ($nom== "Panama"){
?>
<meta http-equiv="REFRESH" content="0;url=http://track.adjal.com/aff_c?offer_id=560&aff_id=xxx&url_id=761">
<?php
if ($nom== "El salvador"){
?>
<meta http-equiv="REFRESH" content="0;url=http://track.adjal.com/aff_c?offer_id=568&aff_id=xxx&url_id=747">
<?php
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
?>
</head>
<body >
</body>
</html>