Commit 9a5e2111d0f44ff961c7d1df6ef55d44198755f0
1 parent
1f01b151
Exists in
master
and in
7 other branches
--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 | 1426 | include_once("classe_temas.php"); |
| 1427 | 1427 | $m = new Temas($map_file,$tema); |
| 1428 | 1428 | $sld = $m->sld(); |
| 1429 | + echo header('Content-Disposition: attachment; filename="'.$tema.'.sld"'); | |
| 1429 | 1430 | echo header("Content-type: application/xml"); |
| 1430 | 1431 | echo $m->sld(); |
| 1431 | 1432 | exit; | ... | ... |
kml.php
| ... | ... | @@ -50,8 +50,10 @@ if($convUTF == true) |
| 50 | 50 | {$encoding = "UTF-8";} |
| 51 | 51 | if(!isset($idioma)) |
| 52 | 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 | 57 | else |
| 56 | 58 | {echo header("Content-type: application/xml");} |
| 57 | 59 | echo '<?xml version="1.0" encoding="'.$encoding.'"?>'; | ... | ... |