Commit a587dfae1e5f9debbd10c071e98326fb79e32bab

Authored by Edmar Moretti
1 parent bbfa1a1d
Exists in master

Atualização do código

ferramentas/identifica/twitter.php
@@ -13,6 +13,7 @@ p { @@ -13,6 +13,7 @@ p {
13 </head> 13 </head>
14 <body style="background-color: white; margin: 10px"> 14 <body style="background-color: white; margin: 10px">
15 <?php 15 <?php
  16 + include_once (dirname(__FILE__)."/../../classesphp/sani_request.php");
16 if(empty($_GET["km"])) 17 if(empty($_GET["km"]))
17 { 18 {
18 $km = 5; 19 $km = 5;
ferramentas/identifica/twitterplaces.php
@@ -13,6 +13,7 @@ text-align:left; @@ -13,6 +13,7 @@ text-align:left;
13 </head> 13 </head>
14 <body style="background-color:white;margin:10px"> 14 <body style="background-color:white;margin:10px">
15 <?php 15 <?php
  16 +include_once (dirname(__FILE__)."/../../classesphp/sani_request.php");
16 include(dirname(__FILE__)."/../../classesphp/carrega_ext.php"); 17 include(dirname(__FILE__)."/../../classesphp/carrega_ext.php");
17 $s = PHP_SHLIB_SUFFIX; 18 $s = PHP_SHLIB_SUFFIX;
18 if(!function_exists('curl_init')) 19 if(!function_exists('curl_init'))
ferramentas/importarwmc/upload.php
@@ -17,6 +17,7 @@ $map_file = $_SESSION[&quot;map_file&quot;]; @@ -17,6 +17,7 @@ $map_file = $_SESSION[&quot;map_file&quot;];
17 <body bgcolor="white" style="background-color:white;text-align:left;"> 17 <body bgcolor="white" style="background-color:white;text-align:left;">
18 <p> 18 <p>
19 <?php 19 <?php
  20 +include_once (dirname(__FILE__)."/../../classesphp/sani_request.php");
20 error_reporting(0); 21 error_reporting(0);
21 require_once (dirname(__FILE__)."/../../ms_configura.php"); 22 require_once (dirname(__FILE__)."/../../ms_configura.php");
22 $dirmap = dirname($map_file); 23 $dirmap = dirname($map_file);
ferramentas/inserexy2/exec.php
1 <?php 1 <?php
2 -include_once(dirname(__FILE__)."/../inicia.php"); 2 +include_once(dirname(__FILE__)."/../safe.php");
3 // 3 //
4 //faz a busca da fun&ccedil;&atilde;o que deve ser executada 4 //faz a busca da fun&ccedil;&atilde;o que deve ser executada
5 // 5 //
@@ -17,18 +17,14 @@ Insere um ponto em um shape file existente. @@ -17,18 +17,14 @@ Insere um ponto em um shape file existente.
17 include_once(dirname(__FILE__)."/../../classesphp/classe_shp.php"); 17 include_once(dirname(__FILE__)."/../../classesphp/classe_shp.php");
18 copiaSeguranca($map_file); 18 copiaSeguranca($map_file);
19 $m = new SHP($map_file,$tema); 19 $m = new SHP($map_file,$tema);
20 - if (!isset($projecao)){$projecao = "";}  
21 - $m->insereSHP($xy,$projecao,$item,$valor); 20 + if (!isset($_GET["projecao"])){$_GET["projecao"] = "";}
  21 + $m->insereSHP($_GET["xy"],$_GET["projecao"],$_GET["item"],$_GET["valor"]);
22 $_SESSION["contadorsalva"]++; 22 $_SESSION["contadorsalva"]++;
23 redesenhaMapa(); 23 redesenhaMapa();
24 break; 24 break;
25 } 25 }
26 -if (!connection_aborted()){  
27 - if(isset($map_file) && isset($postgis_mapa) && $map_file != "") 26 +if(isset($map_file) && isset($postgis_mapa) && $map_file != ""){
28 restauraCon($map_file,$postgis_mapa); 27 restauraCon($map_file,$postgis_mapa);
29 - cpjson($retorno);  
30 } 28 }
31 -else  
32 -{exit();}  
33 - 29 +cpjson($retorno);
34 ?> 30 ?>
35 \ No newline at end of file 31 \ No newline at end of file
ferramentas/markercluster/.project
@@ -1,17 +0,0 @@ @@ -1,17 +0,0 @@
1 -<?xml version="1.0" encoding="UTF-8"?>  
2 -<projectDescription>  
3 - <name>ferramentas heatmap</name>  
4 - <comment></comment>  
5 - <projects>  
6 - </projects>  
7 - <buildSpec>  
8 - <buildCommand>  
9 - <name>org.eclipse.wst.jsdt.core.javascriptValidator</name>  
10 - <arguments>  
11 - </arguments>  
12 - </buildCommand>  
13 - </buildSpec>  
14 - <natures>  
15 - <nature>org.eclipse.wst.jsdt.core.jsNature</nature>  
16 - </natures>  
17 -</projectDescription>  
ferramentas/markercluster/.settings/.jsdtscope
@@ -1,4 +0,0 @@ @@ -1,4 +0,0 @@
1 -<?xml version="1.0" encoding="UTF-8"?>  
2 -<classpath>  
3 - <classpathentry kind="output" path=""/>  
4 -</classpath>  
ferramentas/markercluster/.settings/org.eclipse.wst.jsdt.ui.superType.container
@@ -1 +0,0 @@ @@ -1 +0,0 @@
1 -org.eclipse.wst.jsdt.launching.JRE_CONTAINER  
2 \ No newline at end of file 0 \ No newline at end of file
ferramentas/markercluster/.settings/org.eclipse.wst.jsdt.ui.superType.name
@@ -1 +0,0 @@ @@ -1 +0,0 @@
1 -Global  
2 \ No newline at end of file 0 \ No newline at end of file
ferramentas/markercluster/exec.php
1 <?php 1 <?php
2 -include_once(dirname(__FILE__)."/../inicia.php"); 2 +include_once(dirname(__FILE__)."/../safe.php");
3 // 3 //
4 //faz a busca da fun&ccedil;&atilde;o que deve ser executada 4 //faz a busca da fun&ccedil;&atilde;o que deve ser executada
5 // 5 //
@@ -17,7 +17,7 @@ Adiciona ao mapa uma nova camada para calculo do mapa de calor @@ -17,7 +17,7 @@ Adiciona ao mapa uma nova camada para calculo do mapa de calor
17 $layer = $map->getlayerbyname($tema); 17 $layer = $map->getlayerbyname($tema);
18 $novolayer = ms_newLayerObj($map, $layer); 18 $novolayer = ms_newLayerObj($map, $layer);
19 $novolayer->setmetadata("tema",$titulo); 19 $novolayer->setmetadata("tema",$titulo);
20 - $parametros = '{"plugin":"markercluster","parametros":{"tipoEstilos": "default","opacity":"'.$opacidade.'","gridSize":"'.$gridSize.'"}}'; 20 + $parametros = '{"plugin":"markercluster","parametros":{"tipoEstilos": "default","opacity":"'.$_GET["opacidade"].'","gridSize":"'.$_GET["gridSize"].'"}}';
21 $novolayer->setmetadata("PLUGINI3GEO",$parametros); 21 $novolayer->setmetadata("PLUGINI3GEO",$parametros);
22 $novolayer->set("name",$nameLayer); 22 $novolayer->set("name",$nameLayer);
23 $novolayer->set("group",""); 23 $novolayer->set("group","");
@@ -25,10 +25,8 @@ Adiciona ao mapa uma nova camada para calculo do mapa de calor @@ -25,10 +25,8 @@ Adiciona ao mapa uma nova camada para calculo do mapa de calor
25 $retorno = $nameLayer; 25 $retorno = $nameLayer;
26 break; 26 break;
27 } 27 }
28 -if (!connection_aborted()){  
29 - cpjson($retorno);  
30 -}  
31 -else{  
32 - exit(); 28 +if(isset($map_file) && isset($postgis_mapa) && $map_file != ""){
  29 + restauraCon($map_file,$postgis_mapa);
33 } 30 }
  31 +cpjson($retorno);
34 ?> 32 ?>
35 \ No newline at end of file 33 \ No newline at end of file
ferramentas/markercluster/funcoes.php
@@ -20,9 +20,8 @@ function markerclusterDados($map_file){ @@ -20,9 +20,8 @@ function markerclusterDados($map_file){
20 $resultado[] = '{"lat":"'.$r["y"].'","lng":"'.$r["x"].'","count":"'.$r["valores"][0]["valor"].'"}'; 20 $resultado[] = '{"lat":"'.$r["y"].'","lng":"'.$r["x"].'","count":"'.$r["valores"][0]["valor"].'"}';
21 } 21 }
22 } 22 }
23 - if (!connection_aborted()){  
24 - if(isset($map_file) && isset($postgis_mapa) && $map_file != "")  
25 - restauraCon($map_file,$postgis_mapa); 23 + if(isset($map_file) && isset($postgis_mapa) && $map_file != ""){
  24 + restauraCon($map_file,$postgis_mapa);
26 } 25 }
27 return $resultado; 26 return $resultado;
28 } 27 }
@@ -60,11 +59,9 @@ function markerclusterMapfile(){ @@ -60,11 +59,9 @@ function markerclusterMapfile(){
60 59
61 $tempMapa = ms_newMapObj($dir."/../../temas/{$layer}.map"); 60 $tempMapa = ms_newMapObj($dir."/../../temas/{$layer}.map");
62 $layern = $tempMapa->getlayer(0); 61 $layern = $tempMapa->getlayer(0);
  62 + restauraConObj($mapa,$postgis_mapa);
63 ms_newLayerObj($mapa, $layern); 63 ms_newLayerObj($mapa, $layern);
64 $mapa->save($map_file); 64 $mapa->save($map_file);
65 - if(!empty($postgis_mapa)){  
66 - //substituiCon($map_file,$postgis_mapa);  
67 - }  
68 } 65 }
69 return $map_file; 66 return $map_file;
70 } 67 }
ferramentas/markercluster/googlemaps_js.php
@@ -17,10 +17,14 @@ nomevariavel nome da variavel javascript que sera retornada com os valores @@ -17,10 +17,14 @@ nomevariavel nome da variavel javascript que sera retornada com os valores
17 */ 17 */
18 $dir = dirname(__FILE__); 18 $dir = dirname(__FILE__);
19 //inicializa o programa verificando seguranca e pegando os parametros enviados pela URL e pela secao 19 //inicializa o programa verificando seguranca e pegando os parametros enviados pela URL e pela secao
20 -include_once($dir."/../inicia.php"); 20 +include_once($dir."/../safe.php");
21 21
22 include_once($dir."/funcoes.php"); 22 include_once($dir."/funcoes.php");
23 23
  24 +$layer = $_GET["layer"];
  25 +$tipoEstilos = $_GET["tipoEstilos"];
  26 +$coluna = $_GET["coluna"];
  27 +
24 $map_file = markerclusterMapfile(); 28 $map_file = markerclusterMapfile();
25 $resultado = markerclusterDados($map_file); 29 $resultado = markerclusterDados($map_file);
26 $tipoEstilos = markerclusterEstilos($map_file,$layer,$tipoEstilos); 30 $tipoEstilos = markerclusterEstilos($map_file,$layer,$tipoEstilos);
ferramentas/markercluster/openlayers_js.php
@@ -18,34 +18,29 @@ nomevariavel nome da variavel javascript que sera retornada com os valores @@ -18,34 +18,29 @@ nomevariavel nome da variavel javascript que sera retornada com os valores
18 $dir = dirname(__FILE__); 18 $dir = dirname(__FILE__);
19 19
20 //inicializa o programa verificando seguranca e pegando os parametros enviados pela URL e pela secao 20 //inicializa o programa verificando seguranca e pegando os parametros enviados pela URL e pela secao
21 -include_once($dir."/../inicia.php"); 21 +include_once($dir."/../safe.php");
22 include_once($dir."/funcoes.php"); 22 include_once($dir."/funcoes.php");
23 23
  24 +$layer = $_GET["layer"];
  25 +$tipoEstilos = $_GET["tipoEstilos"];
  26 +$coluna = $_GET["coluna"];
  27 +
24 //o plugin pode ser chamado sem um mapfile criado 28 //o plugin pode ser chamado sem um mapfile criado
25 //usando apenas o mapfile existente em i3geo/temas 29 //usando apenas o mapfile existente em i3geo/temas
26 //nesse caso e necessario cirar um mapfile temporario 30 //nesse caso e necessario cirar um mapfile temporario
27 -if($g_sid != ""){  
28 - session_name("i3GeoPHP");  
29 - session_id($g_sid);  
30 - session_start();  
31 - if(!empty($_SESSION["map_file"])){  
32 - $mapateste = ms_newMapObj($_SESSION["map_file"]);  
33 - if($mapateste->getlayerbyname($layer) != ""){  
34 - $map_file = $_SESSION["map_file"];  
35 - } 31 +if(!empty($_SESSION["map_file"])){
  32 + $mapateste = ms_newMapObj($_SESSION["map_file"]);
  33 + if($mapateste->getlayerbyname($layer) != ""){
  34 + $map_file = $_SESSION["map_file"];
  35 + }
  36 + else{
  37 + $map_file = "";
36 } 38 }
37 } 39 }
38 $map_file = markerclusterMapfile(); 40 $map_file = markerclusterMapfile();
39 //no caso do SAIKU, o nome do mapfile pode estar na sessao 41 //no caso do SAIKU, o nome do mapfile pode estar na sessao
40 if($map_file == ""){ 42 if($map_file == ""){
41 - session_name("i3GeoPHP");  
42 - session_start();  
43 - if(!empty($_SESSION["map_file"])){  
44 - $mapateste = ms_newMapObj($_SESSION["map_file"]);  
45 - if($mapateste->getlayerbyname($layer) != ""){  
46 - $map_file = $_SESSION["map_file"];  
47 - }  
48 - } 43 + $map_file = $_SESSION["map_file"];
49 } 44 }
50 $resultado = markerclusterDados($map_file); 45 $resultado = markerclusterDados($map_file);
51 $tipoEstilos = markerclusterEstilos($map_file,$layer,$tipoEstilos); 46 $tipoEstilos = markerclusterEstilos($map_file,$layer,$tipoEstilos);
ferramentas/mascara/exec.php
1 <?php 1 <?php
2 -include_once(dirname(__FILE__)."/../inicia.php"); 2 +include_once(dirname(__FILE__)."/../safe.php");
3 // 3 //
4 //faz a busca da fun&ccedil;&atilde;o que deve ser executada 4 //faz a busca da fun&ccedil;&atilde;o que deve ser executada
5 // 5 //
@@ -21,7 +21,7 @@ switch (strtoupper($funcao)) @@ -21,7 +21,7 @@ switch (strtoupper($funcao))
21 case "APLICAR": 21 case "APLICAR":
22 $map = ms_newMapObj($map_file); 22 $map = ms_newMapObj($map_file);
23 $c = $map->numlayers; 23 $c = $map->numlayers;
24 - $mascarar = explode(",",$mascarar); 24 + $mascarar = explode(",",$_GET["mascarar"]);
25 for ($i=0;$i < $c;++$i) { 25 for ($i=0;$i < $c;++$i) {
26 $l = $map->getlayer($i); 26 $l = $map->getlayer($i);
27 if($l->mask == $tema){ 27 if($l->mask == $tema){
@@ -35,9 +35,8 @@ switch (strtoupper($funcao)) @@ -35,9 +35,8 @@ switch (strtoupper($funcao))
35 $map->save($map_file); 35 $map->save($map_file);
36 break; 36 break;
37 } 37 }
38 -if (!connection_aborted()){  
39 - cpjson($retorno); 38 +if(isset($map_file) && isset($postgis_mapa) && $map_file != ""){
  39 + restauraCon($map_file,$postgis_mapa);
40 } 40 }
41 -else  
42 -{exit();} 41 +cpjson($retorno);
43 ?> 42 ?>
44 \ No newline at end of file 43 \ No newline at end of file
ferramentas/melhorcaminho/exec.php
1 <?php 1 <?php
2 -include_once(dirname(__FILE__)."/../inicia.php"); 2 +include_once(dirname(__FILE__)."/../safe.php");
3 // 3 //
4 //faz a busca da fun&ccedil;&atilde;o que deve ser executada 4 //faz a busca da fun&ccedil;&atilde;o que deve ser executada
5 // 5 //
@@ -43,7 +43,7 @@ switch (strtoupper($funcao)) @@ -43,7 +43,7 @@ switch (strtoupper($funcao))
43 case "MELHORCAMINHO": 43 case "MELHORCAMINHO":
44 //converte os parametros em um arquivo YAML 44 //converte os parametros em um arquivo YAML
45 $mapa = ms_newMapObj($map_file); 45 $mapa = ms_newMapObj($map_file);
46 - $layer = $mapa->getlayerbyname($raster); 46 + $layer = $mapa->getlayerbyname($_GET["raster"]);
47 $cost_surface_path = $layer->data; 47 $cost_surface_path = $layer->data;
48 $prefixo = nomeRandomico(3); 48 $prefixo = nomeRandomico(3);
49 //verifica se o mapa de custo existe 49 //verifica se o mapa de custo existe
@@ -51,6 +51,8 @@ switch (strtoupper($funcao)) @@ -51,6 +51,8 @@ switch (strtoupper($funcao))
51 $pathresult = $dir_tmp."/melhorcaminho_".nomeRandomico(); 51 $pathresult = $dir_tmp."/melhorcaminho_".nomeRandomico();
52 //cria a pasta onde os resultados serao armazenados 52 //cria a pasta onde os resultados serao armazenados
53 mkdir ($pathresult,0744); 53 mkdir ($pathresult,0744);
  54 + $pta = $_GET["pta"];
  55 + $ptb = $_GET["ptb"];
54 56
55 //parametros para o calculo de melhor caminho e linha reta 57 //parametros para o calculo de melhor caminho e linha reta
56 $best = array( 58 $best = array(
@@ -76,7 +78,7 @@ switch (strtoupper($funcao)) @@ -76,7 +78,7 @@ switch (strtoupper($funcao))
76 $buf = array( 78 $buf = array(
77 "p3"=> array( 79 "p3"=> array(
78 "calculation_type" =>"best_path_within_buffer", 80 "calculation_type" =>"best_path_within_buffer",
79 - "buffer_km" => $buffer, 81 + "buffer_km" => $_GET["buffer"],
80 "file_prefix" => $prefixo, 82 "file_prefix" => $prefixo,
81 "start_coord" => "[$pta]", 83 "start_coord" => "[$pta]",
82 "stop_coord" => "[$ptb]" 84 "stop_coord" => "[$ptb]"
@@ -85,6 +87,7 @@ switch (strtoupper($funcao)) @@ -85,6 +87,7 @@ switch (strtoupper($funcao))
85 $processos[] = $buf; 87 $processos[] = $buf;
86 } 88 }
87 //parametros para calculo com reclassificacao 89 //parametros para calculo com reclassificacao
  90 + $lut = $_GET["lut"];
88 if($lut != ""){ 91 if($lut != ""){
89 //pega os valores da lut 92 //pega os valores da lut
90 $lista = explode("|",$lut); 93 $lista = explode("|",$lut);
@@ -111,6 +114,7 @@ switch (strtoupper($funcao)) @@ -111,6 +114,7 @@ switch (strtoupper($funcao))
111 $processos[] = $lut; 114 $processos[] = $lut;
112 } 115 }
113 //parametros para o calculo quando o usuario escolhe um layer que contem um shapefile 116 //parametros para o calculo quando o usuario escolhe um layer que contem um shapefile
  117 + $temausuario = $_GET["temausuario"];
114 if($temausuario != ""){ 118 if($temausuario != ""){
115 //exporta o layer como um shapefile pois pode ser postgis 119 //exporta o layer como um shapefile pois pode ser postgis
116 $shparq = downloadTema2($map_file,$temausuario,$locaplic,$dir_tmp,$postgis_mapa); 120 $shparq = downloadTema2($map_file,$temausuario,$locaplic,$dir_tmp,$postgis_mapa);
@@ -222,7 +226,7 @@ switch (strtoupper($funcao)) @@ -222,7 +226,7 @@ switch (strtoupper($funcao))
222 $retorno = $pathresult; 226 $retorno = $pathresult;
223 break; 227 break;
224 case "RELATORIO": 228 case "RELATORIO":
225 - $yaml = yaml_parse_file($caminho."/result.yaml"); 229 + $yaml = yaml_parse_file($_GET["caminho"]."/result.yaml");
226 $resultados = $yaml["results"]; 230 $resultados = $yaml["results"];
227 $retorno = array(); 231 $retorno = array();
228 foreach($resultados as $r){ 232 foreach($resultados as $r){
@@ -230,12 +234,8 @@ switch (strtoupper($funcao)) @@ -230,12 +234,8 @@ switch (strtoupper($funcao))
230 } 234 }
231 break; 235 break;
232 } 236 }
233 -if (!connection_aborted()){  
234 - if(isset($map_file) && isset($postgis_mapa) && $map_file != "") 237 +if(isset($map_file) && isset($postgis_mapa) && $map_file != ""){
235 restauraCon($map_file,$postgis_mapa); 238 restauraCon($map_file,$postgis_mapa);
236 - cpjson($retorno);  
237 -}  
238 -else{  
239 - exit();  
240 } 239 }
  240 +cpjson($retorno);
241 ?> 241 ?>
242 \ No newline at end of file 242 \ No newline at end of file
ferramentas/mmscale/exec.php
1 <?php 1 <?php
2 -include_once(dirname(__FILE__)."/../inicia.php"); 2 +include_once(dirname(__FILE__)."/../safe.php");
3 // 3 //
4 //faz a busca da fun&ccedil;&atilde;o que deve ser executada 4 //faz a busca da fun&ccedil;&atilde;o que deve ser executada
5 // 5 //
@@ -13,14 +13,14 @@ Valor: MINMAX @@ -13,14 +13,14 @@ Valor: MINMAX
13 case "MINMAX": 13 case "MINMAX":
14 $mapa = ms_newMapObj($map_file); 14 $mapa = ms_newMapObj($map_file);
15 $layer = $mapa->getlayerbyname($tema); 15 $layer = $mapa->getlayerbyname($tema);
16 - if(empty($maxscaledenom)){  
17 - $maxscaledenom = -1; 16 + if(empty($_GET["maxscaledenom"])){
  17 + $_GET["maxscaledenom"] = -1;
18 } 18 }
19 - if(empty($minscaledenom)){  
20 - $minscaledenom = -1; 19 + if(empty($_GET["minscaledenom"])){
  20 + $_GET["minscaledenom"] = -1;
21 } 21 }
22 - $layer->set("maxscaledenom",$maxscaledenom);  
23 - $layer->set("minscaledenom",$minscaledenom); 22 + $layer->set("maxscaledenom",$_GET["maxscaledenom"]);
  23 + $layer->set("minscaledenom",$_GET["minscaledenom"]);
24 $layer->setmetadata("cache",""); 24 $layer->setmetadata("cache","");
25 $mapa->save($map_file); 25 $mapa->save($map_file);
26 $retorno = "ok"; 26 $retorno = "ok";
@@ -34,12 +34,8 @@ Valor: MINMAX @@ -34,12 +34,8 @@ Valor: MINMAX
34 ); 34 );
35 break; 35 break;
36 } 36 }
37 -if (!connection_aborted()){  
38 - if(isset($map_file) && isset($postgis_mapa) && $map_file != "") 37 +if(isset($map_file) && isset($postgis_mapa) && $map_file != ""){
39 restauraCon($map_file,$postgis_mapa); 38 restauraCon($map_file,$postgis_mapa);
40 - cpjson($retorno);  
41 -}  
42 -else{  
43 - exit();  
44 } 39 }
  40 +cpjson($retorno);
45 ?> 41 ?>
ferramentas/nptpol/exec.php
1 <?php 1 <?php
2 -include_once(dirname(__FILE__)."/../inicia.php"); 2 +include_once(dirname(__FILE__)."/../safe.php");
3 // 3 //
4 //faz a busca da fun&ccedil;&atilde;o que deve ser executada 4 //faz a busca da fun&ccedil;&atilde;o que deve ser executada
5 // 5 //
@@ -19,16 +19,13 @@ Salva o mapa acrescentando um novo layer com o resultado. @@ -19,16 +19,13 @@ Salva o mapa acrescentando um novo layer com o resultado.
19 include_once(dirname(__FILE__)."/../../classesphp/classe_analise.php"); 19 include_once(dirname(__FILE__)."/../../classesphp/classe_analise.php");
20 copiaSeguranca($map_file); 20 copiaSeguranca($map_file);
21 $m = new Analise($map_file,$tema,$locaplic,$ext); 21 $m = new Analise($map_file,$tema,$locaplic,$ext);
22 - $retorno = $m->nptPol($temaPt,$temaPo,$locaplic,$somaritem); 22 + $retorno = $m->nptPol($_GET["temaPt"],$_GET["temaPo"],$locaplic,$_GET["somaritem"]);
23 $m->salva(); 23 $m->salva();
24 $_SESSION["contadorsalva"]++; 24 $_SESSION["contadorsalva"]++;
25 break; 25 break;
26 } 26 }
27 -if (!connection_aborted()){  
28 - if(isset($map_file) && isset($postgis_mapa) && $map_file != "") 27 +if(isset($map_file) && isset($postgis_mapa) && $map_file != ""){
29 restauraCon($map_file,$postgis_mapa); 28 restauraCon($map_file,$postgis_mapa);
30 - cpjson($retorno);  
31 } 29 }
32 -else  
33 -{exit();} 30 +cpjson($retorno);
34 ?> 31 ?>
35 \ No newline at end of file 32 \ No newline at end of file
ferramentas/nuvemtags/exec.php
1 <?php 1 <?php
2 -include_once(dirname(__FILE__)."/../inicia.php"); 2 +include_once(dirname(__FILE__)."/../safe.php");
3 // 3 //
4 //faz a busca da fun&ccedil;&atilde;o que deve ser executada 4 //faz a busca da fun&ccedil;&atilde;o que deve ser executada
5 // 5 //
@@ -15,16 +15,13 @@ Pega a lista de tags registrados nos menus de temas. @@ -15,16 +15,13 @@ Pega a lista de tags registrados nos menus de temas.
15 */ 15 */
16 case "LISTATAGS": 16 case "LISTATAGS":
17 include_once(dirname(__FILE__)."/../../classesphp/classe_menutemas.php"); 17 include_once(dirname(__FILE__)."/../../classesphp/classe_menutemas.php");
18 - $m = new Menutemas($map_file,$perfil,$locaplic,$urli3geo);  
19 - $retorno = $m->listatags($rss,$nrss); 18 + $m = new Menutemas($map_file,$perfil,$locaplic,$_GET["urli3geo"]);
  19 + $retorno = $m->listatags($_GET["rss"],$_GET["nrss"]);
20 break; 20 break;
21 21
22 } 22 }
23 -if (!connection_aborted()){  
24 - if(isset($map_file) && isset($postgis_mapa) && $map_file != "") 23 +if(isset($map_file) && isset($postgis_mapa) && $map_file != ""){
25 restauraCon($map_file,$postgis_mapa); 24 restauraCon($map_file,$postgis_mapa);
26 - cpjson($retorno);  
27 } 25 }
28 -else  
29 -{exit();} 26 +cpjson($retorno);
30 ?> 27 ?>
31 \ No newline at end of file 28 \ No newline at end of file