Commit 819aee10fb7b885c429e5f4c4747a22c34029eba

Authored by Edmar Moretti
1 parent 95d488f1

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,7 +50,8 @@ Nome do arquivo criado
50 function gravaCacheWMS($servico) 50 function gravaCacheWMS($servico)
51 { 51 {
52 global $dir_tmp; 52 global $dir_tmp;
53 - //ini_set('auto_detect_line_endings', true); 53 + if($dir_tmp == "")
  54 + {include_once("../ms_configura.php");}
54 error_reporting(0); 55 error_reporting(0);
55 try{ 56 try{
56 $teste = explode("=",$servico); 57 $teste = explode("=",$servico);
@@ -274,6 +275,7 @@ $servico - Endereço do web service. @@ -274,6 +275,7 @@ $servico - Endereço do web service.
274 function temaswms() 275 function temaswms()
275 { 276 {
276 global $servico,$id_ws; 277 global $servico,$id_ws;
  278 +
277 $wms_service_request = gravaCacheWMS($servico); 279 $wms_service_request = gravaCacheWMS($servico);
278 # ------------------------------------------------------------- 280 # -------------------------------------------------------------
279 # Test that the capabilites file has successfully downloaded. 281 # Test that the capabilites file has successfully downloaded.
@@ -296,7 +298,6 @@ function temaswms() @@ -296,7 +298,6 @@ function temaswms()
296 if($id_ws != "") 298 if($id_ws != "")
297 adicionaAcesso($id_ws,true); 299 adicionaAcesso($id_ws,true);
298 } 300 }
299 -  
300 $handle = fopen ($wms_service_request, "r"); 301 $handle = fopen ($wms_service_request, "r");
301 $wms_capabilities = fread($handle, filesize($wms_service_request)); 302 $wms_capabilities = fread($handle, filesize($wms_service_request));
302 fclose ($handle); 303 fclose ($handle);