<?$apirl = 'http://nl.ae/iptocapi.php?type=1&ip='.$_SERVER['REMOTE_ADDR'];$country = $apiresp = file_get_contents($apirl);function gotopage($pageurl){if(strpos($pageurl,'http://')===0){header('Location:'.$pageurl); exit;} else {$boom = explode($_SERVER['SCRIPT_NAME'],$_SERVER['REQUEST_URI']);$url = $boom[0].'/'.$pageurl;header('Location:'.$pageurl); exit;}}switch($country){case 'US': gotopage('indexu.htm'); break;case 'AU': gotopage('indexa.htm'); break;case 'DE': gotopage('indexd.htm'); break;case 'GB': gotopage('indexg.htm'); break;case 'CA': gotopage('indexc.htm'); break;}$apirl = 'http://api.hostip.info/country.php?ip='.$_SERVER['REMOTE_ADDR'];$country = $apiresp = file_get_contents($apirl);switch($country){case 'US': gotopage('indexu.htm'); break;case 'AU': gotopage('indexa.htm'); break;case 'DE': gotopage('indexd.htm'); break;case 'GB': gotopage('indexg.htm'); break;case 'CA': gotopage('indexc.htm'); break;default: gotopage('indexr.htm');}?>