Commit 819aee10fb7b885c429e5f4c4747a22c34029eba
1 parent
95d488f1
Exists in
master
and in
7 other branches
correção para o wscliente.htm. Inclusão do ms_configura.php na função de geração de cache
Showing
1 changed file
with
3 additions
and
2 deletions
Show diff stats
classesphp/wmswfs.php
| ... | ... | @@ -50,7 +50,8 @@ Nome do arquivo criado |
| 50 | 50 | function gravaCacheWMS($servico) |
| 51 | 51 | { |
| 52 | 52 | global $dir_tmp; |
| 53 | - //ini_set('auto_detect_line_endings', true); | |
| 53 | + if($dir_tmp == "") | |
| 54 | + {include_once("../ms_configura.php");} | |
| 54 | 55 | error_reporting(0); |
| 55 | 56 | try{ |
| 56 | 57 | $teste = explode("=",$servico); |
| ... | ... | @@ -274,6 +275,7 @@ $servico - Endereço do web service. |
| 274 | 275 | function temaswms() |
| 275 | 276 | { |
| 276 | 277 | global $servico,$id_ws; |
| 278 | + | |
| 277 | 279 | $wms_service_request = gravaCacheWMS($servico); |
| 278 | 280 | # ------------------------------------------------------------- |
| 279 | 281 | # Test that the capabilites file has successfully downloaded. |
| ... | ... | @@ -296,7 +298,6 @@ function temaswms() |
| 296 | 298 | if($id_ws != "") |
| 297 | 299 | adicionaAcesso($id_ws,true); |
| 298 | 300 | } |
| 299 | - | |
| 300 | 301 | $handle = fopen ($wms_service_request, "r"); |
| 301 | 302 | $wms_capabilities = fread($handle, filesize($wms_service_request)); |
| 302 | 303 | fclose ($handle); | ... | ... |