41,24 → 41,8 |
$nt = null; |
|
if(isset($uid[0])) { |
$recherche_infos_taxon = new RechercheInfosTaxonBeta($this->config); |
$nt = $recherche_infos_taxon->rechercherNumTaxSurNumNom($uid[0]); |
} |
|
$retour = array(''); |
|
// si le taxon cherché existe |
if ($nt) { |
$file = EF_URL_CARTO."france_BDNFF_4.02_nt".$nt.".png"; |
$file_headers = @get_headers($file); |
|
if ($file_headers[0] == 'HTTP/1.1 404 Not Found') { |
} |
else { |
$service=EF_URL_CHORO.$uid[0].'/chorologie'; |
@get_headers($service); |
} |
|
$file = 'http://localhost/service:eflore:0.1/chorodep/cartes/nn%3A'.$uid[0].'?retour.format=587&retour=image%2Fpng'; |
$retour = array($file); |
} |
|