PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /home/trave494/snapwave.ca/.well-known/system/helper/ |
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 IP: 209.182.202.254 |
Dir : /home/trave494/snapwave.ca/.well-known/system/helper/vat.php |
<?php function vat_validation($prefix, $number) { $iso_code_2_data = array( 'AT' => 'AT', //Austria 'BE' => 'BE', //Belgium 'BG' => 'BG', //Bulgaria 'DK' => 'DK', //Denmark 'FI' => 'FI', //Finland 'FR' => 'FR', //France 'FX' => 'FR', //France métropolitaine 'DE' => 'DE', //Germany 'GR' => 'EL', //Greece 'IE' => 'IE', //Irland 'IT' => 'IT', //Italy 'LU' => 'LU', //Luxembourg 'NL' => 'NL', //Netherlands 'PT' => 'PT', //Portugal 'ES' => 'ES', //Spain 'SE' => 'SE', //Sweden 'GB' => 'GB', //United Kingdom 'CY' => 'CY', //Cyprus 'EE' => 'EE', //Estonia 'HU' => 'HU', //Hungary 'LV' => 'LV', //Latvia 'LT' => 'LT', //Lithuania 'MT' => 'MT', //Malta 'PL' => 'PL', //Poland 'RO' => 'RO', //Romania 'SK' => 'SK', //Slovakia 'CZ' => 'CZ', //Czech Republic 'SI' => 'SI' //Slovania ); if (array_search(substr($number, 0, 2), $iso_code_2_data)) { $number = str_replace(' ','', substr($number, 2)); } if (array_key_exists($prefix, $iso_code_2_data)) { $response = file_get_contents('http://ec.europa.eu/taxation_customs/vies/viesquer.do?ms=' . $iso_code_2_data[$prefix] . '&iso=' . $iso_code_2_data[$prefix] . '&vat=' . $number); if (preg_match('/\bvalid VAT number\b/i', $response)) { return 'valid'; } if (preg_match('/\binvalid VAT number\b/i', $response)) { return 'invalid'; } } else { return 'unknown'; } } ?>