Commit 9a5e2111d0f44ff961c7d1df6ef55d44198755f0

Authored by Edmar Moretti
1 parent 1f01b151

--no commit message

Showing 2 changed files with 5 additions and 2 deletions   Show diff stats
classesphp/mapa_controle.php
@@ -1426,6 +1426,7 @@ Mostra na tela o SLD de um tema @@ -1426,6 +1426,7 @@ Mostra na tela o SLD de um tema
1426 include_once("classe_temas.php"); 1426 include_once("classe_temas.php");
1427 $m = new Temas($map_file,$tema); 1427 $m = new Temas($map_file,$tema);
1428 $sld = $m->sld(); 1428 $sld = $m->sld();
  1429 + echo header('Content-Disposition: attachment; filename="'.$tema.'.sld"');
1429 echo header("Content-type: application/xml"); 1430 echo header("Content-type: application/xml");
1430 echo $m->sld(); 1431 echo $m->sld();
1431 exit; 1432 exit;
@@ -50,8 +50,10 @@ if($convUTF == true) @@ -50,8 +50,10 @@ if($convUTF == true)
50 {$encoding = "UTF-8";} 50 {$encoding = "UTF-8";}
51 if(!isset($idioma)) 51 if(!isset($idioma))
52 {$idioma = "pt";} 52 {$idioma = "pt";}
53 -if(isset($_GET["tipoxml"]) && $_GET["tipoxml"] == "kml")  
54 -{echo header("Content-type: application/kml");} 53 +if(isset($_GET["tipoxml"]) && $_GET["tipoxml"] == "kml"){
  54 + echo header('Content-type: application/vnd.google-earth.kml+xml');
  55 + echo header('Content-Disposition: attachment; filename="i3geo.kml"');
  56 +}
55 else 57 else
56 {echo header("Content-type: application/xml");} 58 {echo header("Content-type: application/xml");}
57 echo '<?xml version="1.0" encoding="'.$encoding.'"?>'; 59 echo '<?xml version="1.0" encoding="'.$encoding.'"?>';