load(); } //file_get_contents(getenv('Geo_Lite_Country_File_URL')); // file_get_contents(getenv('Geo_Lite_Country_IPV6_File_URL')); $fileName = "GeoIP.dat.gz"; $url = getenv('Geo_Lite_Country_File_URL'); $destination = $envDir."/".$fileName; $fp = fopen ($destination, 'w+'); $ch = curl_init(); curl_setopt( $ch, CURLOPT_URL, $url ); curl_setopt( $ch, CURLOPT_BINARYTRANSFER, true ); curl_setopt( $ch, CURLOPT_RETURNTRANSFER, false ); curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, false ); curl_setopt( $ch, CURLOPT_CONNECTTIMEOUT, 10 ); curl_setopt( $ch, CURLOPT_FILE, $fp ); curl_exec( $ch ); curl_close( $ch ); fclose( $fp ); exec('gunzip '.$destination); $fileName = "GeoIPv6.dat.gz"; $url = getenv('Geo_Lite_Country_IPV6_File_URL'); $destination = $envDir."/".$fileName; $fp = fopen ($destination, 'w+'); $ch = curl_init(); curl_setopt( $ch, CURLOPT_URL, $url ); curl_setopt( $ch, CURLOPT_BINARYTRANSFER, true ); curl_setopt( $ch, CURLOPT_RETURNTRANSFER, false ); curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, false ); curl_setopt( $ch, CURLOPT_CONNECTTIMEOUT, 10 ); curl_setopt( $ch, CURLOPT_FILE, $fp ); curl_exec( $ch ); curl_close( $ch ); fclose( $fp ); exec('gunzip '.$destination); } $messages = array(); $error = FALSE; $translation = \DynCom\mysyde\common\classes\Registry::get("translation"); $formname = "form_geoip"; ?>

">