Cicklow
Admin
Épsilon
Verificado
Verificación en dos pasos activada
Verificado por Whatsapp
¡Ha verificado su Paypal!
¡Usuario popular!
Suscripción a IA
function IPv4To6($ip) {
if (filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6) === true) {
if (strpos($ip, '.') > 0) {
$ip = substr($ip, strrpos($ip, ':')+1);
} else { //native ipv6
return $ip;
}
}
$is_v4 = filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4);
if (!$is_v4) { return false; }
$iparr = array_pad(explode('.', $ip), 4, 0);
$Part7 = base_convert(($iparr[0] * 256) + $iparr[1], 10, 16);
$Part8 = base_convert(($iparr[2] * 256) + $iparr[3], 10, 16);
return '::ffff:'.$Part7.':'.$Part8;
}
$gi = geoip_open("geoip/GeoIPv6.dat",GEOIP_STANDARD);
$IP = geoip_country_code_by_addr_v6($gi, IPv4To6($_SERVER['REMOTE_ADDR']));
<?phpn=array( 'AR' => array(
'0' => array(
'id' => '210',
'name' => 'ARGENTINA - Binbit - Continuar 2 ',
'tracking_url' => 'http://track.users2cash.com/aff_c?offer_id=xxx&aff_id=xxxx',
'countries' => 'Argentina',
'countries_short' => 'AR'
),
'1' => array(
'id' => '209',
'name' => 'ARGENTINA - Binbit - Megaupload',
'tracking_url' => 'http://track.users2cash.com/aff_c?offer_id=xxx&aff_id=xxxx',
'countries' => 'Argentina',
'countries_short' => 'AR'
),
'2' => array(
'id' => '123',
'name' => 'ARGENTINA - Binbit - Movil para continuar',
'tracking_url' => 'http://track.users2cash.com/aff_c?offer_id=xxx&aff_id=xxxx',
'countries' => 'Argentina',
'countries_short' => 'AR'
),
'3' => array(
'id' => '50',
'name' => 'ARGENTINA - Binbit - Rayos X',
'tracking_url' => 'http://track.users2cash.com/aff_c?offer_id=xxx&aff_id=xxxx',
'countries' => 'Argentina',
'countries_short' => 'AR'
)
),
'BO' => array(
'0' => array(
'id' => '222',
'name' => 'BOLIVIA - BINBIT- CONTINUAR 2',
'tracking_url' => 'http://track.users2cash.com/aff_c?offer_id=xxx&aff_id=xxxx',
'countries' => 'Bolivia',
'countries_short' => 'BO'
),
<?php
n= array( 'AR' => array(
track.users2cash.com
is not loading.
<?phpn$IA=array(".array2php($data).");n?>
<?php @set_time_limit(0); include("geoip/geoip.inc"); $gi = geoip_open("geoip/GeoIP.dat",GEOIP_STANDARD); $IP = geoip_country_code_by_addr($gi, $_SERVER['REMOTE_ADDR']); if($IP==""){ $IP = "ES"; //Valor por defecto españa } geoip_close($gi); if(isset($_GET['cache']) && $_GET['cache']=='1') { $API = 'AFFHWm2bWFthU5iqrfnFynk2CyIEk9'; //AQUI VA TU API, REEMPLAZAR POR LA TUYA $URL = 'http://network.users2cash.com/offers/offers.json?api_key='.$API; $json=json_decode(file_get_contents($URL)); $ArrPais = Array(); foreach($json->data->offers AS $key=>$value){ $ArrPais[$value->countries_short][]= Array( 'id'=>$value->id, 'pais'=>$value->countries, 'anuncio'=>$value->name, 'tracking_url'=>$value->tracking_url, 'pago'=>$value->payout ); } $fp = fopen('cache.json', 'w'); fwrite($fp,json_encode($ArrPais)); fclose($fp); }else { $jsonCache =json_decode(file_get_contents('cache.json')); $paisActual = $jsonCache->$IP; $url_redirect = $paisActual[rand(0,count($paisActual)-1)]->tracking_url; if($_GET['go']=='1') { header('location: '.$url_redirect); } }?>
Por que no suben una versión modificada con el ultimo IPv6 y cpa para los que no sabemos tanto, dan el codigo, pero no donde hay que insertarlo v.v
Me sale este error: Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/todoandr/public_html/cpa.php on line 20
Lo solucione el de arriba, ahora me sale este:
Warning: include(ia.CPA.php) [function.include]: failed to open stream: No such file or directory in /home/todoandr/public_html/cpa.php on line 82
Warning: include(ia.CPA.php) [function.include]: failed to open stream: No such file or directory in /home/todoandr/public_html/cpa.php on line 82
Warning: include() [function.include]: Failed opening 'ia.CPA.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/todoandr/public_html/cpa.php on line 82
Warning: Cannot modify header information - headers already sent by (output started at /home/todoandr/public_html/cpa.php:82) in /home/todoandr/public_html/cpa.php on line 87
Hola amigo.Gracias ziney.He seguido tus pasos pero al escribir la url de la caché veo este error (he sustituido el nombre de la carpeta al escribir este comentario)Warning: fopen(cache.json) [function.fopen]: failed to open stream: Permission denied in /home/xxxxxxxx/public_html/descargar.php on line 27Warning: fwrite() expects parameter 1 to be resource, boolean given in /home/xxxxxxx/public_html/descargar.php on line 28Warning: fclose() expects parameter 1 to be resource, boolean given in /home/xxxxxxx/public_html/descargar.php on line 29
Hola ziney.
Gracias por responder y rápido. Muy agradecida.
Verás tengo asignado a la carpeta geoip con el Filezilla el permiso 777 pero se sigue mostrando el error. O hay que subirl la carpeta publi con los archivos dentro y es a esa carpeta a la que hay que darle permiso 777?
1 Modifiqué el api
2 subi los archivos y le di 777 a la carpeta geoip
3 creé la cache.
4 soy novata y no me funciona... lo siento, trato de aprender.
Utilizamos cookies y tecnologías similares para los siguientes fines:
¿Aceptas las cookies y estas tecnologías?
Utilizamos cookies y tecnologías similares para los siguientes fines:
¿Aceptas las cookies y estas tecnologías?