Commit 5778185084fa1bcc0f9b79070bbc83b7c9555225

Authored by Edmar Moretti
1 parent c6879009

--no commit message

admin/php/webservices.php
... ... @@ -172,7 +172,7 @@ function alterarWS()
172 172 $dbhw->query("INSERT INTO i3geoadmin_ws (nome_ws,desc_ws,autor_ws,tipo_ws,link_ws,nacessos,nacessosok) VALUES ('$idtemp','','','','',0,0)");
173 173 $id = $dbh->query("SELECT id_ws FROM i3geoadmin_ws WHERE nome_ws = '$idtemp'");
174 174 $id = $id->fetchAll();
175   - $id = $id[0]['id_ws']);
  175 + $id = $id[0]['id_ws'];
176 176 $dbhw->query("UPDATE i3geoadmin_ws SET nome_ws = '' WHERE id_ws = $id AND nome_ws = '$idtemp'");
177 177 $retorna = $id;
178 178 }
... ...
classesjs/geradordelinks.js
... ... @@ -224,7 +224,7 @@ function i3geo_gl_configura(loc_i3geo,nomeseltema,temasa,link,grupo,subgrupo,tem
224 224 ins += "&pontos="+$i("pontos").value
225 225 ins += "&nometemapontos="+$i("nometemapontos").value
226 226 }
227   - if($i("perfili").value != "")
  227 + if($i("perfili") && $i("perfili").value != "")
228 228 {
229 229 ins += "&perfil="+$i("perfili").value
230 230 }
... ...
classesphp/wmswfs.php
... ... @@ -326,15 +326,15 @@ Retorno:
326 326 function temaswms()
327 327 {
328 328 global $servico,$id_ws;
329   -
330 329 $wms_service_request = gravaCacheWMS($servico);
331 330 # -------------------------------------------------------------
332 331 # Test that the capabilites file has successfully downloaded.
333 332 #
334 333 //$wms_service_request = "c://temp//teste.xml";
335 334 include_once("../admin/php/admin.php");
336   - include_once("../admin/php/webservices.php");
337 335  
  336 + include_once("../admin/php/webservices.php");
  337 +
338 338 //error_reporting(E_ALL);
339 339 if($wms_service_request == "erro") {
340 340 # Cannot download the capabilities file.
... ...