Subversion Repositories eFlore/Applications.cel

Rev

Rev 1425 | Rev 1468 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1425 Rev 1426
Line 39... Line 39...
39
	function getElement($uid){
39
	function getElement($uid){
Line 40... Line 40...
40
 
40
 
Line 41... Line 41...
41
		$nt = null;
41
		$nt = null;
42
 
-
 
43
		if(isset($uid[0])) {
-
 
44
			$recherche_infos_taxon = new RechercheInfosTaxonBeta($this->config);
-
 
45
			$nt = $recherche_infos_taxon->rechercherNumTaxSurNumNom($uid[0]);
-
 
46
		}
42
 
47
        
-
 
48
        $retour = array('');
-
 
49
        
-
 
50
        // si le taxon cherché existe 
43
		if(isset($uid[0])) {
51
        if ($nt) {           
-
 
52
			$file = EF_URL_CARTO."france_BDNFF_4.02_nt".$nt.".png";
-
 
53
			$file_headers = @get_headers($file);
-
 
54
			
-
 
55
			if ($file_headers[0] == 'HTTP/1.1 404 Not Found') {
-
 
56
			}
-
 
57
			else {
-
 
58
				$service=EF_URL_CHORO.$uid[0].'/chorologie';
-
 
59
				@get_headers($service);
-
 
60
			}
44
        $retour = array('');
61
			
45
        	$file = 'http://localhost/service:eflore:0.1/chorodep/cartes/nn%3A'.$uid[0].'?retour.format=587&retour=image%2Fpng';
Line 62... Line 46...
62
			$retour = array($file);
46
			$retour = array($file);
63
        }    	    
47
        }