Commit 16a2afe9e30013ece5c5cca02f8c44f4d681b1ed
1 parent
6ddfa4c4
Exists in
master
Correção na ferramenta filtro e colorramp. Inclusão de variável de configuração …
…em ms_configura.php que permite bloquear ferramentas
Showing
184 changed files
with
736 additions
and
179 deletions
Show diff stats
classesphp/classe_mapa.php
... | ... | @@ -459,7 +459,8 @@ class Mapa |
459 | 459 | if (!mb_detect_encoding($f,"UTF-8",true)){ |
460 | 460 | $f = mb_convert_encoding($f,"UTF-8","ISO-8859-1"); |
461 | 461 | } |
462 | - $ferramentas["animagif"] = json_decode($f); | |
462 | + $ferramentas["animagif"] = json_decode(str_replace("'",'"',$f)); | |
463 | + //var_dump($ferramentas["animagif"]);exit; | |
463 | 464 | } |
464 | 465 | $temas[] = array( |
465 | 466 | $oLayer->name, | ... | ... |
classesphp/mapa_controle.php
ferramentas/3d/3d.php
ferramentas/3d/dependencias.php
ferramentas/agrupaelementos/dependencias.php
ferramentas/agrupaelementos/exec.php
ferramentas/analisageometrias/dependencias.php
ferramentas/animacao/dependencias.php
ferramentas/animagif/dependencias.php
ferramentas/animagif/exec.php
... | ... | @@ -26,6 +26,8 @@ if(empty($_GET)){ |
26 | 26 | //http://localhost:8014/i3geo/ferramentas/animagif/exec.php?transparente=nao&legenda=sim&tema=dengue_casos_provaveis&colunat=semana_ano_epidemiologico&w=500&h=500&mapext=-74%20-32%20-34%204 |
27 | 27 | //http://localhost/i3geo/ferramentas/animagif/exec.php?nulos=-,0&transparente=sim&legenda=nao&tema=_llocalianimagif&colunat=ANOCRIA&w=500&h=500&mapext=-74%20-32%20-34%204&tipocolunat=string |
28 | 28 | include("../../ms_configura.php"); |
29 | +include("../blacklist.php"); | |
30 | +verificaBlFerramentas(basename(dirname(__FILE__)),$i3geoBlFerramentas,false); | |
29 | 31 | include("../../classesphp/funcoes_gerais.php"); |
30 | 32 | include("../../classesphp/carrega_ext.php"); |
31 | 33 | include_once (dirname(__FILE__)."/../../classesphp/sani_request.php"); |
... | ... | @@ -35,11 +37,9 @@ $_GET = array_merge($_GET,$_POST); |
35 | 37 | // |
36 | 38 | if(empty($_GET["colunat"])){ |
37 | 39 | $nmapa = ms_newMapObj($locaplic."/temas/".$_GET["tema"].".map"); |
38 | - | |
39 | 40 | $layer = $nmapa->getlayerbyname($_GET["tema"]); |
40 | - | |
41 | 41 | $animagif = $layer->getmetadata("animagif"); |
42 | - $animagif = json_decode($animagif,true); | |
42 | + $animagif = json_decode(str_replace("'",'"',$animagif),true); | |
43 | 43 | $_GET["colunat"] = $animagif["colunat"]; |
44 | 44 | $_GET["tempo"] = $animagif["tempo"]; |
45 | 45 | $_GET["w"] = $animagif["w"]; |
... | ... | @@ -108,6 +108,10 @@ if(!in_array($operador,array("=","<",">"))){ |
108 | 108 | $nulos = explode(",",$nulos); |
109 | 109 | $arqtemp = $dir_tmp."/".$nometemp; |
110 | 110 | if(file_exists($arqtemp.".gif")){ |
111 | + if(getimagesize($arqtemp.".gif") == false){ | |
112 | + echo ""; | |
113 | + exit; | |
114 | + } | |
111 | 115 | $gifBinary = file_get_contents($arqtemp.".gif"); |
112 | 116 | //retorna o gif para o navegador |
113 | 117 | header('Content-type: image/gif'); |
... | ... | @@ -189,9 +193,6 @@ if($copyright != ""){ |
189 | 193 | $label->updatefromstring("LABEL POSITION lr END"); |
190 | 194 | $label->updatefromstring('LABEL STYLE GEOMTRANSFORM "labelpoly" COLOR 255 255 255 END END'); |
191 | 195 | } |
192 | - | |
193 | -// | |
194 | -$mapa->save($arqtemp.".map"); | |
195 | 196 | //adiciona ao mapa base as camadas do mapfile indicado em $tema |
196 | 197 | $nmapa = ms_newMapObj($locaplic."/temas/".$tema.".map"); |
197 | 198 | $numlayers = $nmapa->numlayers; |
... | ... | @@ -217,8 +218,6 @@ for ($i=0;$i < $numlayers;$i++){ |
217 | 218 | cloneInlineSymbol($layern,$nmapa,$mapa); |
218 | 219 | ms_newLayerObj($mapa, $layern); |
219 | 220 | } |
220 | - | |
221 | -$mapa->save($arqtemp.".map"); | |
222 | 221 | //aplica a extensao geografica |
223 | 222 | $layer = $mapa->getlayerbyname($tema); |
224 | 223 | |
... | ... | @@ -270,10 +269,8 @@ $o->set("imagemode",MS_IMAGEMODE_RGBA); |
270 | 269 | if($transparente == "sim"){ |
271 | 270 | $o->set("transparent",MS_TRUE); |
272 | 271 | } |
273 | - | |
272 | +restauraConObj($mapa,$postgis_mapa); | |
274 | 273 | $mapa->save($arqtemp.".map"); |
275 | -$mapa = ms_newMapObj($arqtemp.".map"); | |
276 | -restauraCon($arqtemp.".map",$postgis_mapa); | |
277 | 274 | |
278 | 275 | /* |
279 | 276 | if(validaAcessoTemas($arqtemp.".map",false) == true){ |
... | ... | @@ -293,8 +290,7 @@ foreach($lista as $l){ |
293 | 290 | } |
294 | 291 | } |
295 | 292 | |
296 | -//$listaunica = array("201537"); | |
297 | - | |
293 | +$mapa = ms_newMapObj($arqtemp.".map"); | |
298 | 294 | //cria as imagens para cada periodo |
299 | 295 | $layer = $mapa->getlayerbyname($tema); |
300 | 296 | |
... | ... | @@ -306,6 +302,11 @@ if($copyright != ""){ |
306 | 302 | } |
307 | 303 | $mapa->moveLayerdown(0); |
308 | 304 | |
305 | +$mapa->save($arqtemp.".map"); | |
306 | +substituiCon($mapa,$postgis_mapa); | |
307 | +$mapa = ms_newMapObj($arqtemp.".map"); | |
308 | +$copyright = $mapa->getlayerbyname("copyright"); | |
309 | + | |
309 | 310 | if($copyright != ""){ |
310 | 311 | $c = $copyright->getclass(0); |
311 | 312 | if($vi >= 60200){ |
... | ... | @@ -321,19 +322,23 @@ if($copyright != ""){ |
321 | 322 | $imagens = array(); |
322 | 323 | $duracao = array(); |
323 | 324 | $objImagem = ""; |
325 | + | |
324 | 326 | foreach($listaunica as $d){ |
327 | + | |
328 | + $layer = $mapa->getlayerbyname($tema); | |
325 | 329 | if(strtoupper($colunat) == $colunat){ |
326 | 330 | $filtro = "(('[$colunat]' $operador '$d'))"; |
327 | - if($tipocolunat == "numerico"){ | |
331 | + if($tipocolunat == "numerico" || $tipocolunat == "numero"){ | |
328 | 332 | $filtro = "(([$colunat] $operador $d))"; |
329 | 333 | } |
330 | 334 | } |
331 | 335 | else{ |
332 | 336 | $filtro = "$colunat $operador '$d'"; |
333 | - if($tipocolunat == "numerico"){ | |
337 | + if($tipocolunat == "numerico" || $tipocolunat == "numero"){ | |
334 | 338 | $filtro = "$colunat $operador $d"; |
335 | 339 | } |
336 | 340 | } |
341 | + | |
337 | 342 | $layer->setfilter($filtro); |
338 | 343 | |
339 | 344 | $nomec = $arqtemp.$d.".png"; |
... | ... | @@ -346,16 +351,13 @@ foreach($listaunica as $d){ |
346 | 351 | $classe->title = $d; |
347 | 352 | } |
348 | 353 | //$mapa->save($arqtemp."teste.map"); |
354 | + $mapa->save($arqtemp.".map"); | |
349 | 355 | if(!file_exists($nomec)){ |
350 | 356 | if($objImagem == ""){ |
351 | - //$mapa->save($arqtemp.".map"); | |
352 | - //echo $arqtemp.".map"; | |
353 | 357 | $objImagem = $mapa->draw(); |
354 | 358 | $objImagem->saveImage($nomec); |
355 | 359 | } |
356 | 360 | else{ |
357 | - //$mapa->save($arqtemp.".map"); | |
358 | - //echo $arqtemp.".map"; | |
359 | 361 | $i = $mapa->draw(); |
360 | 362 | $objImagem->pasteImage($i,-1); |
361 | 363 | $objImagem->saveImage($nomec); |
... | ... | @@ -365,7 +367,10 @@ foreach($listaunica as $d){ |
365 | 367 | $duracao[] = $tempo; |
366 | 368 | //$mapa->save($arqtemp.".map");exit; |
367 | 369 | } |
368 | - | |
370 | +restauraConObj($mapa,$postgis_mapa); | |
371 | +$mapa->save($arqtemp.".map"); | |
372 | +unlink($arqtemp.".map"); | |
373 | +$mapa = null; | |
369 | 374 | //junta as imagens no gif |
370 | 375 | |
371 | 376 | include("../../pacotes/gifcreator/GifCreator.php"); | ... | ... |
ferramentas/animagif/index.js
... | ... | @@ -313,7 +313,7 @@ i3GEOF.animagif = |
313 | 313 | p = i3GEO.configura.locaplic + "/ferramentas/animagif/manutencao.php"; |
314 | 314 | par = "&g_sid=" + i3GEO.configura.sid |
315 | 315 | + "&tema=" + i3GEOF.animagif.tema |
316 | - + "&animagif=" + i3GEO.util.base64encode(j) | |
316 | + + "&animagif=" + j | |
317 | 317 | + "&funcao=inclui"; |
318 | 318 | |
319 | 319 | retorno = | ... | ... |
ferramentas/animagif/index.php
1 | 1 | <?php |
2 | 2 | include (dirname(__FILE__)."/../../classesphp/sani_request.php"); |
3 | +include("../blacklist.php"); | |
4 | +verificaBlFerramentas(basename(dirname(__FILE__)),"",false); | |
3 | 5 | $url = strip_tags("./exec.php?".$_SERVER["QUERY_STRING"]); |
4 | 6 | ?> |
5 | 7 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ... | ... |
ferramentas/animagif/manutencao.php
1 | 1 | <?php |
2 | -include_once(dirname(__FILE__)."/../inicia.php"); | |
3 | -include_once(dirname(__FILE__)."/../../admin/php/login.php"); | |
2 | +include_once(dirname(__FILE__)."/../../admin/php/login.php"); | |
3 | +include("../blacklist.php"); | |
4 | +verificaBlFerramentas(basename(dirname(__FILE__)),$i3geoBlFerramentas,false); | |
4 | 5 | $funcoesEdicao = array( |
5 | 6 | "REMOVE", |
6 | 7 | "INCLUI" |
... | ... | @@ -9,7 +10,8 @@ if(in_array(strtoupper($funcao),$funcoesEdicao)){ |
9 | 10 | if(verificaOperacaoSessao("admin/html/editormapfile") == false){ |
10 | 11 | retornaJSON("Vc nao pode realizar essa operacao. Tente fazer login novamente.");exit; |
11 | 12 | } |
12 | -} | |
13 | +} | |
14 | +$tema = $_POST["tema"]; | |
13 | 15 | error_reporting(0); |
14 | 16 | // |
15 | 17 | //faz a busca da função que deve ser executada |
... | ... | @@ -18,6 +20,7 @@ $retorno = ""; //string que ser&aacute; retornada ao browser via JSON |
18 | 20 | switch (strtoupper($funcao)) |
19 | 21 | { |
20 | 22 | case "REMOVE": |
23 | + restauraCon($map_file,$postgis_mapa); | |
21 | 24 | $mapa = ms_newMapObj($map_file); |
22 | 25 | $l = $mapa->getlayerbyname($tema); |
23 | 26 | if($l != ""){ |
... | ... | @@ -37,10 +40,11 @@ switch (strtoupper($funcao)) |
37 | 40 | $retorno = "ok"; |
38 | 41 | break; |
39 | 42 | case "INCLUI": |
43 | + restauraCon($map_file,$postgis_mapa); | |
40 | 44 | $mapa = ms_newMapObj($map_file); |
41 | 45 | $l = $mapa->getlayerbyname($tema); |
42 | 46 | if($l != ""){ |
43 | - //$l->setmetadata("animagif",base64_decode($animagif)); | |
47 | + $l->setmetadata("animagif",$animagif); | |
44 | 48 | $mapa->save($map_file); |
45 | 49 | } |
46 | 50 | $arq = $locaplic."/temas/".$tema.".map"; |
... | ... | @@ -48,7 +52,7 @@ switch (strtoupper($funcao)) |
48 | 52 | $mapa = ms_newMapObj($arq); |
49 | 53 | $l = $mapa->getlayerbyname($tema); |
50 | 54 | if($l != ""){ |
51 | - //$l->setmetadata("animagif",base64_decode($animagif)); | |
55 | + $l->setmetadata("animagif",str_replace("\\","'",$_POST["animagif"])); | |
52 | 56 | $mapa->save($arq); |
53 | 57 | removeCabecalho($arq); |
54 | 58 | } | ... | ... |
ferramentas/aplicarsld/dependencias.php
ferramentas/aplicarsld/upload.php
... | ... | @@ -9,8 +9,11 @@ if (isset($_GET["g_sid"])) |
9 | 9 | {session_id($_GET["g_sid"]);} |
10 | 10 | session_start(); |
11 | 11 | $map_file = $_SESSION["map_file"]; |
12 | -$postgis_mapa = $_SESSION["postgis_mapa"]; | |
13 | -require_once (dirname(__FILE__)."/../../ms_configura.php"); | |
12 | + | |
13 | +include (dirname(__FILE__)."/../../ms_configura.php"); | |
14 | +include("../blacklist.php"); | |
15 | +verificaBlFerramentas(basename(dirname(__FILE__)),$i3geoBlFerramentas,false); | |
16 | + | |
14 | 17 | $tema = $_GET["tema"]; |
15 | 18 | |
16 | 19 | if(isset($logExec) && $logExec["upload"] == true){ |
... | ... | @@ -29,7 +32,6 @@ if(isset($logExec) && $logExec["upload"] == true){ |
29 | 32 | if (isset($_FILES['i3GEOaplicarsld']['name']) && strlen(basename($_FILES['i3GEOaplicarsld']['name'])) < 200 ) |
30 | 33 | { |
31 | 34 | //$ndir = dirname($filen); |
32 | - require_once (dirname(__FILE__)."/../../ms_configura.php"); | |
33 | 35 | $mapa = ms_newMapObj($map_file); |
34 | 36 | echo "<p class='paragrafo' >Carregando o arquivo...</p>"; |
35 | 37 | $dirmap = dirname($map_file); | ... | ... |
ferramentas/atalhoscamada/dependencias.php
ferramentas/atalhosedicao/dependencias.php
ferramentas/atalhosedicao/exec.php
1 | 1 | <?php |
2 | -include_once(dirname(__FILE__)."/../inicia.php"); | |
2 | +include_once(dirname(__FILE__)."/../safe.php"); | |
3 | +verificaBlFerramentas(basename(dirname(__FILE__)),$i3geoBlFerramentas,false); | |
3 | 4 | // |
4 | 5 | //faz a busca da função que deve ser executada |
5 | 6 | // |
... | ... | @@ -10,17 +11,14 @@ switch (strtoupper($funcao)) |
10 | 11 | $mapa = ms_newMapObj($map_file); |
11 | 12 | $l = $mapa->getlayerbyname($tema); |
12 | 13 | if($l != ""){ |
13 | - $l->setmetadata($meta,$valor); | |
14 | + $l->setmetadata($_GET["meta"],$_GET["valor"]); | |
14 | 15 | $mapa->save($map_file); |
15 | 16 | } |
16 | 17 | $retorno = "ok"; |
17 | 18 | break; |
18 | 19 | } |
19 | -if (!connection_aborted()){ | |
20 | - if(isset($map_file) && isset($postgis_mapa) && $map_file != "") | |
20 | +if(isset($map_file) && isset($postgis_mapa) && $map_file != ""){ | |
21 | 21 | restauraCon($map_file,$postgis_mapa); |
22 | - cpjson($retorno); | |
23 | 22 | } |
24 | -else | |
25 | -{exit();} | |
23 | +cpjson($retorno); | |
26 | 24 | ?> |
27 | 25 | \ No newline at end of file | ... | ... |
ferramentas/atalhosmapa/dependencias.php
... | ... | @@ -0,0 +1,21 @@ |
1 | +<?php | |
2 | +// | |
3 | +//bloqueia o funcionamento de uma ferramenta com base | |
4 | +//no conteudo da variavel $i3geoBlFerramentas | |
5 | +// | |
6 | +function verificaBlFerramentas($dir,$i3geoBlFerramentas="",$js=true){ | |
7 | + if($i3geoBlFerramentas == ""){ | |
8 | + include_once(dirname(__FILE__)."/../ms_configura.php"); | |
9 | + } | |
10 | + if(!empty($i3geoBlFerramentas)){ | |
11 | + if(in_array($dir,$i3geoBlFerramentas) == true){ | |
12 | + if($js != true){ | |
13 | + header ( "HTTP/1.1 403 operacao nao permitida" ); | |
14 | + } else { | |
15 | + echo "alert('operacao nao permitida');"; | |
16 | + } | |
17 | + exit; | |
18 | + } | |
19 | + } | |
20 | +} | |
21 | +?> | |
0 | 22 | \ No newline at end of file | ... | ... |
ferramentas/buffer/dependencias.php
ferramentas/buffer/exec.php
ferramentas/bufferpt/dependencias.php
ferramentas/busca/dependencias.php
ferramentas/buscafotos/funcoes.php
... | ... | @@ -4,6 +4,8 @@ include_once (dirname(__FILE__)."/../../classesphp/sani_request.php"); |
4 | 4 | $_GET = array_merge($_GET,$_POST); |
5 | 5 | require_once(dirname(__FILE__)."/../../pacotes/cpaint/cpaint2.inc.php"); |
6 | 6 | require_once(dirname(__FILE__)."/../../ms_configura.php"); |
7 | +include("../blacklist.php"); | |
8 | +verificaBlFerramentas(basename(dirname(__FILE__)),$i3geoBlFerramentas,false); | |
7 | 9 | require_once(dirname(__FILE__)."/../../pacotes/phpflickr/phpFlickr.php"); |
8 | 10 | error_reporting(0); |
9 | 11 | ... | ... |
ferramentas/buscainde/dependencias.php
ferramentas/buscarapida/index.js
... | ... | @@ -43,103 +43,103 @@ i3GEObuscaRapida = |
43 | 43 | BOX : false, |
44 | 44 | /* |
45 | 45 | * Property: servico |
46 | - * | |
46 | + * | |
47 | 47 | * Endereço do serviço de busca que será utilizado. Esse serviço deve ser um Web Service no |
48 | 48 | * padrão reconhecido pelo i3Geo. |
49 | - * | |
49 | + * | |
50 | 50 | * Type: {String} |
51 | - * | |
51 | + * | |
52 | 52 | * Default: {http://mapas.mma.gov.br/webservices/geonames.php} |
53 | 53 | */ |
54 | 54 | servico : "http://mapas.mma.gov.br/webservices/geonames.php", |
55 | 55 | /* |
56 | 56 | * Property: servicowms |
57 | - * | |
57 | + * | |
58 | 58 | * Endereço do serviço de busca que será utilizado para retornar a representação |
59 | 59 | * cartográfica do elemento encontrado. |
60 | - * | |
60 | + * | |
61 | 61 | * Esse serviço deve ser um Web Service no padrão OGC com o parametro adicional "gid" indicando o id do elemento que |
62 | 62 | * será mostrado na tela. |
63 | - * | |
63 | + * | |
64 | 64 | * Type: {String} |
65 | - * | |
65 | + * | |
66 | 66 | * Default: {http://mapas.mma.gov.br/webservices/geonameswms.php} |
67 | 67 | */ |
68 | 68 | servicowms : "http://mapas.mma.gov.br/webservices/geonameswms.php", |
69 | 69 | /* |
70 | 70 | * Property: funcaoZoom |
71 | - * | |
71 | + * | |
72 | 72 | * Nome da função que será executada ao ser clicado o botão de zoom para o elemento encontrado. |
73 | - * | |
73 | + * | |
74 | 74 | * O botão de zoom é mostrado logo após cada elemento encontrado na busca. |
75 | - * | |
75 | + * | |
76 | 76 | * Alterando-se essa opção, pode-se executar o busca rápida como um gadget. |
77 | - * | |
77 | + * | |
78 | 78 | * Veja i3GEObuscaRapida.zoom para conhecer os parametros que essa função irá receber |
79 | - * | |
79 | + * | |
80 | 80 | * Type: {String} |
81 | - * | |
81 | + * | |
82 | 82 | * Default: {i3GEObuscaRapida.zoom} |
83 | 83 | */ |
84 | 84 | funcaozoom : "i3GEObuscaRapida.zoom", |
85 | 85 | /* |
86 | 86 | * Property: idresultado |
87 | - * | |
87 | + * | |
88 | 88 | * Id do elemento HTML que receberá o resultado da busca |
89 | - * | |
89 | + * | |
90 | 90 | * Type: {String} |
91 | - * | |
91 | + * | |
92 | 92 | * Default: {resultado} |
93 | 93 | */ |
94 | 94 | idresultado : "resultado", |
95 | 95 | /* |
96 | 96 | * Property: buscatemas |
97 | - * | |
97 | + * | |
98 | 98 | * Indica se deve ser feita a busca na árvore de temas |
99 | - * | |
99 | + * | |
100 | 100 | * Type: {boolean} |
101 | - * | |
101 | + * | |
102 | 102 | * Default: {true} |
103 | 103 | */ |
104 | 104 | buscaemtemas : true, |
105 | 105 | /* |
106 | 106 | * Variable: palavra |
107 | - * | |
107 | + * | |
108 | 108 | * Palavra que será buscada |
109 | - * | |
109 | + * | |
110 | 110 | * Type: {String} |
111 | 111 | */ |
112 | 112 | palavra : "", |
113 | 113 | /* |
114 | 114 | * Variable: locaplic |
115 | - * | |
115 | + * | |
116 | 116 | * Endereço do i3geo (url) |
117 | - * | |
117 | + * | |
118 | 118 | * Type:{String} |
119 | 119 | */ |
120 | 120 | locaplic : "", |
121 | 121 | /* |
122 | 122 | * Function: inicia |
123 | - * | |
123 | + * | |
124 | 124 | * Inicia a busca de uma palavra e mostra o resultado na tela |
125 | - * | |
125 | + * | |
126 | 126 | * Veja: |
127 | - * | |
127 | + * | |
128 | 128 | * <i3GEO.php.buscaRapida> |
129 | - * | |
129 | + * | |
130 | 130 | * Parametros: |
131 | - * | |
131 | + * | |
132 | 132 | * palavra {String} - palavra que será procurada |
133 | - * | |
133 | + * | |
134 | 134 | * locaplic {String} - url onde o i3geo está instalado, pe, http://localhost/i3geo |
135 | - * | |
135 | + * | |
136 | 136 | * resultado {Function} - função que será executada para processar o resultado da busca no servico definido em |
137 | 137 | * i3GEObuscaRapida.servicowms. O default é i3GEObuscaRapida.montaResultado |
138 | - * | |
138 | + * | |
139 | 139 | * servicosexternos {boolean} - indica se a busca será feita nos serviços de busca externos |
140 | - * | |
140 | + * | |
141 | 141 | * temasmapa {boolean} - indica se a busca será feita nos temas existentes no mapa |
142 | - * | |
142 | + * | |
143 | 143 | * google {boolean} - busca ou nao no google (so para interface com google maps) |
144 | 144 | */ |
145 | 145 | inicia : function(palavra, locaplic, resultado, servicosexternos, temasmapa, google) { |
... | ... | @@ -221,11 +221,11 @@ i3GEObuscaRapida = |
221 | 221 | }, |
222 | 222 | /* |
223 | 223 | * Function: montaResultadoTemas |
224 | - * | |
224 | + * | |
225 | 225 | * Mostra o resultado da busca nos atributos dos temas existentes no mapa |
226 | - * | |
226 | + * | |
227 | 227 | * Parametro: |
228 | - * | |
228 | + * | |
229 | 229 | * retorno {JSON} - resultado da função i3GEO.php.buscaRapida |
230 | 230 | */ |
231 | 231 | montaResultadoTemas : function(retorno) { |
... | ... | @@ -258,13 +258,13 @@ i3GEObuscaRapida = |
258 | 258 | }, |
259 | 259 | /* |
260 | 260 | * Function: montaResultado |
261 | - * | |
261 | + * | |
262 | 262 | * Mostra o resultado da busca. Esta é a função default utilizada pelo método inicia |
263 | - * | |
263 | + * | |
264 | 264 | * Após o resultado ser mostrado, é feita a busca na base de temas, executando-se o método buscaemtemas |
265 | - * | |
265 | + * | |
266 | 266 | * Parametro: |
267 | - * | |
267 | + * | |
268 | 268 | * retorno {JSON} - resultado da função i3GEO.php.buscaRapida |
269 | 269 | */ |
270 | 270 | montaResultado : function(retorno) { |
... | ... | @@ -329,13 +329,13 @@ i3GEObuscaRapida = |
329 | 329 | }, |
330 | 330 | /* |
331 | 331 | * Function: resultadoTemas |
332 | - * | |
332 | + * | |
333 | 333 | * Acrescenta nos resultados encontrados os dados localizados na base de temas do i3geo |
334 | - * | |
334 | + * | |
335 | 335 | * Essa função é cahamda pelo método montaResultado |
336 | - * | |
336 | + * | |
337 | 337 | * Parameters: |
338 | - * | |
338 | + * | |
339 | 339 | * retorno {Json} - resultado de |
340 | 340 | */ |
341 | 341 | resultadoTemas : function(retorno) { |
... | ... | @@ -368,28 +368,28 @@ i3GEObuscaRapida = |
368 | 368 | }, |
369 | 369 | /* |
370 | 370 | * Function: zoom |
371 | - * | |
371 | + * | |
372 | 372 | * Aplica a operação de zoom quando o usuário clica no botão de adição de um resultado ao |
373 | 373 | * mapa. |
374 | - * | |
374 | + * | |
375 | 375 | * Essa é a função default utilizada pela ferramenta, podendo ser substituída por outra se desejado. |
376 | - * | |
376 | + * | |
377 | 377 | * Além de enquadrar o mapa a uma extensão geográfica específica, uma nova camada é adicionada, |
378 | 378 | * mostrando o limite da ocorrência desejada. |
379 | - * | |
379 | + * | |
380 | 380 | * Veja: |
381 | - * | |
381 | + * | |
382 | 382 | * <i3GEO.php.mudaext> |
383 | - * | |
383 | + * | |
384 | 384 | * Parameters: |
385 | - * | |
385 | + * | |
386 | 386 | * wkt {String} - string no formato wkt que será usado para definir a abrangência do zoom |
387 | - * | |
387 | + * | |
388 | 388 | * layer {String} - nome do layer existente no serviço definido em i3GEObuscaRapida.servicowms e que será adicionado |
389 | 389 | * ao mapa como uma camada WMS |
390 | - * | |
390 | + * | |
391 | 391 | * gid {String} - identificador que será utilizado no WMS para selecionar o elemento desejado |
392 | - * | |
392 | + * | |
393 | 393 | * nm {String} - nome que será dado a camada que será adicionada ao mapa |
394 | 394 | */ |
395 | 395 | zoom : function(wkt, layer, gid, nm) { |
... | ... | @@ -428,17 +428,17 @@ i3GEObuscaRapida = |
428 | 428 | }, |
429 | 429 | /* |
430 | 430 | * Function: adicionatema |
431 | - * | |
431 | + * | |
432 | 432 | * Adiciona um tema ao mapa quando a busca localiza uma ocorrência nos menus de camadas |
433 | - * | |
433 | + * | |
434 | 434 | * Nesse caso, o tema é adicionado ao mapa |
435 | - * | |
435 | + * | |
436 | 436 | * Veja: |
437 | - * | |
437 | + * | |
438 | 438 | * <i3GEO.php.adtema> |
439 | - * | |
439 | + * | |
440 | 440 | * Parameters: |
441 | - * | |
441 | + * | |
442 | 442 | * obj {Object dom} - objeto DOM do tipo INPUT tendo como valor o código do tema |
443 | 443 | */ |
444 | 444 | adicionatema : function(obj) { |
... | ... | @@ -456,13 +456,13 @@ i3GEObuscaRapida = |
456 | 456 | }, |
457 | 457 | /* |
458 | 458 | * Function: mostraxy |
459 | - * | |
459 | + * | |
460 | 460 | * Mostra no mapa um retangulo representando a extensão geográfica de uma ocorrência encontrada na busca |
461 | - * | |
461 | + * | |
462 | 462 | * Parameters: |
463 | - * | |
463 | + * | |
464 | 464 | * texto {String} - coordenadas representando a extensão geográfica do elemento |
465 | - * | |
465 | + * | |
466 | 466 | * tipo {string} - wkt|extent |
467 | 467 | */ |
468 | 468 | mostraxy : function mostraxy(texto, tipo) { |
... | ... | @@ -493,6 +493,11 @@ i3GEObuscaRapida = |
493 | 493 | return; |
494 | 494 | } |
495 | 495 | b = ext.split(" "); |
496 | + //OL 3 | |
497 | + if (window.parent.i3GEO.Interface["ATUAL"] === "openlayers" && typeof window.parent.OpenLayers.Control == "undefined") { | |
498 | + i3GEObuscaRapida.BOX = false; | |
499 | + } | |
500 | + | |
496 | 501 | if(i3GEObuscaRapida.BOX === false){ |
497 | 502 | i3GEObuscaRapida.BOX = window.parent.i3GEO.desenho.addBox(b[0], b[1], b[2], b[3], "boxOndeBusca"); |
498 | 503 | } |
... | ... | @@ -502,7 +507,7 @@ i3GEObuscaRapida = |
502 | 507 | }, |
503 | 508 | /* |
504 | 509 | * Function: escondexy |
505 | - * | |
510 | + * | |
506 | 511 | * Esconde o box criado com mostraxy |
507 | 512 | */ |
508 | 513 | escondexy : function() { | ... | ... |
ferramentas/carregakml/dependencias.php
ferramentas/carregakml/exec.php
1 | 1 | <?php |
2 | -include_once(dirname(__FILE__)."/../safe.php"); | |
2 | +include_once(dirname(__FILE__)."/../safe.php"); | |
3 | +verificaBlFerramentas(basename(dirname(__FILE__)),$i3geoBlFerramentas,false); | |
3 | 4 | $retorno = ""; //string que será retornada ao browser via JSON |
4 | 5 | $url = $_GET["url"]; |
5 | 6 | switch (strtoupper($funcao)) | ... | ... |
ferramentas/carregamapa/dependencias.php
ferramentas/carregamapa/upload.php
1 | 1 | <?php |
2 | -exit; | |
3 | 2 | require_once(dirname(__FILE__)."/../../classesphp/pega_variaveis.php"); |
4 | 3 | require_once(dirname(__FILE__)."/../../classesphp/funcoes_gerais.php"); |
5 | 4 | include_once (dirname(__FILE__)."/../../classesphp/carrega_ext.php"); |
... | ... | @@ -11,6 +10,8 @@ session_start(); |
11 | 10 | $map_file = $_SESSION["map_file"]; |
12 | 11 | $postgis_mapa = $_SESSION["postgis_mapa"]; |
13 | 12 | require_once (dirname(__FILE__)."/../../ms_configura.php"); |
13 | +include("../blacklist.php"); | |
14 | +verificaBlFerramentas(basename(dirname(__FILE__)),$i3geoBlFerramentas,false); | |
14 | 15 | |
15 | 16 | if(isset($logExec) && $logExec["upload"] == true){ |
16 | 17 | i3GeoLog("prog: carregamapa filename:" . $_FILES['i3GEOcarregamapafilemap']['name'],$dir_tmp); | ... | ... |
ferramentas/centroide/dependencias.php
ferramentas/centroide/exec.php
ferramentas/centromassa/dependencias.php
ferramentas/centromassa/exec.php
1 | 1 | <?php |
2 | -include_once(dirname(__FILE__)."/../inicia.php"); | |
2 | +include_once(dirname(__FILE__)."/../safe.php"); | |
3 | +verificaBlFerramentas(basename(dirname(__FILE__)),$i3geoBlFerramentas,false); | |
3 | 4 | // |
4 | 5 | //faz a busca da função que deve ser executada |
5 | 6 | // |
... | ... | @@ -19,16 +20,13 @@ Salva o mapa acrescentando um novo layer com o ponto. |
19 | 20 | include_once(dirname(__FILE__)."/../../classesphp/classe_analise.php"); |
20 | 21 | copiaSeguranca($map_file); |
21 | 22 | $m = new Analise($map_file,$tema,$locaplic,$ext); |
22 | - $retorno = $m->centroMassa($item); | |
23 | + $retorno = $m->centroMassa($_GET["item"]); | |
23 | 24 | $m->salva(); |
24 | 25 | $_SESSION["contadorsalva"]++; |
25 | 26 | break; |
26 | 27 | } |
27 | -if (!connection_aborted()){ | |
28 | - if(isset($map_file) && isset($postgis_mapa) && $map_file != "") | |
28 | +if(isset($map_file) && isset($postgis_mapa) && $map_file != ""){ | |
29 | 29 | restauraCon($map_file,$postgis_mapa); |
30 | - cpjson($retorno); | |
31 | 30 | } |
32 | -else | |
33 | -{exit();} | |
31 | +cpjson($retorno); | |
34 | 32 | ?> |
35 | 33 | \ No newline at end of file | ... | ... |
ferramentas/cesium/kml3d.php
1 | 1 | <?php |
2 | 2 | include("../../ms_configura.php"); |
3 | +include("../blacklist.php"); | |
4 | +verificaBlFerramentas(basename(dirname(__FILE__)),$i3geoBlFerramentas,false); | |
3 | 5 | include_once (dirname(__FILE__)."/../../classesphp/sani_request.php"); |
4 | 6 | $_GET = array_merge($_GET,$_POST); |
5 | 7 | include("../../classesphp/funcoes_gerais.php"); | ... | ... |
ferramentas/colourramp/index.php
... | ... | @@ -4,11 +4,14 @@ |
4 | 4 | include_once(dirname(__FILE__)."/../../classesphp/class.palette.php"); |
5 | 5 | $m = new palette(); |
6 | 6 | $lista = implode(",",($m->listaColourRamps(dirname(__FILE__)."/../.."))); |
7 | - if(!isset($ncores)) | |
8 | - {$ncores = 10;} | |
7 | + if(!isset($_GET["ncores"])){ | |
8 | + $_GET["ncores"] = 10; | |
9 | + } | |
9 | 10 | if(empty($_GET["locaplic"])){ |
10 | - $locaplic = "../.."; | |
11 | + $_GET["locaplic"] = "../.."; | |
11 | 12 | } |
13 | + | |
14 | + $locaplic = $_GET["locaplic"]; | |
12 | 15 | ?> |
13 | 16 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
14 | 17 | <html> |
... | ... | @@ -130,7 +133,7 @@ new YAHOO.widget.Button( |
130 | 133 | {onclick:{fn: function(){aplicarCores();}}} |
131 | 134 | ); |
132 | 135 | $i("voltar-button").style.width = "250px" |
133 | -var lista = "<?php echo $_GET["lista"];?>"; | |
136 | +var lista = "<?php echo $lista;?>"; | |
134 | 137 | lista = lista.split(","); |
135 | 138 | var n = lista.length; |
136 | 139 | var ins = ""; | ... | ... |
ferramentas/comentarios/index.php
... | ... | @@ -14,6 +14,10 @@ g_sid |
14 | 14 | |
15 | 15 | tema - tema que será comentado |
16 | 16 | */ |
17 | +include("../../ms_configura.php"); | |
18 | +include("../blacklist.php"); | |
19 | +verificaBlFerramentas(basename(dirname(__FILE__)),$i3geoBlFerramentas,false); | |
20 | + | |
17 | 21 | include (dirname(__FILE__)."/../../classesphp/sani_request.php"); |
18 | 22 | $parametrosURL = array_merge($_GET,$_POST); |
19 | 23 | ... | ... |
ferramentas/conectargeojson/dependencias.php
ferramentas/conectargeojson/exec.php
ferramentas/conectargeorss/dependencias.php
ferramentas/conectargeorss/exec.php
ferramentas/conectarservicos/dependencias.php
ferramentas/conectarwms/listalayers.php
... | ... | @@ -5,6 +5,9 @@ |
5 | 5 | * Isso pq o endereco do servico e um parametro obtido em $_GET["servico"] |
6 | 6 | */ |
7 | 7 | include (dirname(__FILE__)."/../../classesphp/sani_request.php"); |
8 | +include(dirname(__FILE__)."../../ms_configura.php"); | |
9 | +include(dirname(__FILE__)."../blacklist.php"); | |
10 | +verificaBlFerramentas(basename(dirname(__FILE__)),$i3geoBlFerramentas,true); | |
8 | 11 | ?> |
9 | 12 | <html> |
10 | 13 | ... | ... |
ferramentas/confluence/dependencias.php
ferramentas/congelamapa/openlayers.php
1 | 1 | <?php |
2 | 2 | include (dirname(__FILE__)."/../../classesphp/sani_request.php"); |
3 | +include("../../ms_configura.php"); | |
4 | +include("../blacklist.php"); | |
5 | +verificaBlFerramentas(basename(dirname(__FILE__)),$i3geoBlFerramentas,false); | |
6 | + | |
3 | 7 | $g_sid = $_GET["g_sid"]; |
4 | 8 | session_name("i3GeoPHP"); |
5 | 9 | session_id($g_sid); | ... | ... |
ferramentas/congelamapa/openlayers3.php
1 | 1 | <?php |
2 | 2 | include (dirname(__FILE__)."/../../classesphp/sani_request.php"); |
3 | +include("../../ms_configura.php"); | |
4 | +include("../blacklist.php"); | |
5 | +verificaBlFerramentas(basename(dirname(__FILE__)),$i3geoBlFerramentas,false); | |
6 | + | |
3 | 7 | $g_sid = strip_tags($_GET["g_sid"]); |
4 | 8 | session_name("i3GeoPHP"); |
5 | 9 | session_id($g_sid); | ... | ... |
ferramentas/convertemapakml/dependencias.php
ferramentas/convertews/dependencias.php
ferramentas/convertews/exec.php
ferramentas/cortina/dependencias.php
ferramentas/dissolve/dependencias.php
ferramentas/dissolve/exec.php
ferramentas/distanciaptpt/dependencias.php
ferramentas/distanciaptpt/exec.php
ferramentas/editorsql/dependencias.php
ferramentas/editortema/exec.php
... | ... | @@ -25,8 +25,11 @@ Free Software Foundation, Inc., no endere&ccedil;o |
25 | 25 | 59 Temple Street, Suite 330, Boston, MA 02111-1307 USA. |
26 | 26 | |
27 | 27 | */ |
28 | -include_once(dirname(__FILE__)."/../inicia.php"); | |
29 | 28 | include_once(dirname(__FILE__)."/../../admin/php/login.php"); |
29 | + | |
30 | +include(dirname(__FILE__)."/../blacklist.php"); | |
31 | +verificaBlFerramentas(basename(dirname(__FILE__)),$i3geoBlFerramentas,false); | |
32 | + | |
30 | 33 | $funcoesEdicao = array( |
31 | 34 | "ADICIONAGEOMETRIA", |
32 | 35 | "ATUALIZAGEOMETRIA", |
... | ... | @@ -73,7 +76,7 @@ switch (strtoupper($funcao)) |
73 | 76 | $srid = -1; |
74 | 77 | } |
75 | 78 | } |
76 | - | |
79 | + | |
77 | 80 | $dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); |
78 | 81 | $dbh->beginTransaction(); |
79 | 82 | ... | ... |
ferramentas/etiqueta/dependencias.php
ferramentas/etiqueta/exec.php
ferramentas/filtro/dependencias.php
ferramentas/filtro/exec.php
1 | 1 | <?php |
2 | 2 | include(dirname(__FILE__)."/../safe.php"); |
3 | +verificaBlFerramentas(basename(dirname(__FILE__)),$i3geoBlFerramentas,false); | |
3 | 4 | // |
4 | 5 | //faz a busca da função que deve ser executada |
5 | 6 | // |
... | ... | @@ -29,8 +30,11 @@ Inclui um filtro no tema. |
29 | 30 | include_once(dirname(__FILE__)."/../../classesphp/classe_temas.php"); |
30 | 31 | //copiaSeguranca($map_file); |
31 | 32 | $m = new Temas($map_file,$tema); |
32 | - if(!isset($_GET["testa"])){$_GET["testa"]="";} | |
33 | - {$retorno = $m->insereFiltro($_GET["filtro"],$_GET["testa"],"sim");} | |
33 | + if(!isset($_GET["testa"])){ | |
34 | + $_GET["testa"]=""; | |
35 | + } | |
36 | + $m->insereFiltro(""); | |
37 | + $retorno = $m->insereFiltro($_GET["filtro"],$_GET["testa"],"sim"); | |
34 | 38 | if(strtolower($testa) != "sim"){ |
35 | 39 | $m->salva(); |
36 | 40 | $_SESSION["contadorsalva"]++; | ... | ... |
ferramentas/filtro/index.js
... | ... | @@ -397,7 +397,7 @@ i3GEOF.filtro = { |
397 | 397 | $i(idRetorno).value = i3GEOF.filtro.formataMapserver(); |
398 | 398 | } |
399 | 399 | else{ |
400 | - p = i3GEO.configura.locaplic+"/ferramentas/filtro/exec.php?base64=sim&g_sid="+i3GEO.configura.sid+"&funcao=inserefiltro&filtro="+i3GEO.util.base64encode(filtro); | |
400 | + p = i3GEO.configura.locaplic+"/ferramentas/filtro/exec.php?base64=nao&g_sid="+i3GEO.configura.sid+"&funcao=inserefiltro&filtro="+filtro; | |
401 | 401 | cp = new cpaint(); |
402 | 402 | cp.set_response_type("JSON"); |
403 | 403 | cp.set_transfer_mode('POST'); |
... | ... | @@ -415,7 +415,7 @@ i3GEOF.filtro = { |
415 | 415 | i3GEOF.filtro.aguarde.visibility = "hidden"; |
416 | 416 | }; |
417 | 417 | } |
418 | - cp.call(p,"insereFiltro",temp,"tema="+i3GEOF.filtro.tema,"testa="+testa); | |
418 | + cp.call(p,"insereFiltro",temp,"tema="+i3GEOF.filtro.tema+"&testa="+testa); | |
419 | 419 | } |
420 | 420 | } |
421 | 421 | catch(e){ | ... | ... |
ferramentas/filtroarvore/dependencias.php
ferramentas/geolocal/dependencias.php
ferramentas/geonames/opentouchmaps.php
... | ... | @@ -15,6 +15,9 @@ text-align:left; |
15 | 15 | <body style="background-color:white;margin:10px;text-align:left"> |
16 | 16 | <?php |
17 | 17 | include_once (dirname(__FILE__)."/../../classesphp/sani_request.php"); |
18 | +include(dirname(__FILE__)."/../../ms_configura.php"); | |
19 | +include(dirname(__FILE__)."/../blacklist.php"); | |
20 | +verificaBlFerramentas(basename(dirname(__FILE__)),$i3geoBlFerramentas,false); | |
18 | 21 | $d = "http://www.opentouchmap.org/?lat=".$_GET["y"]."&lon=".$_GET["x"]."&zoom=12%20lat:".$_GET["y"]."%20lon:".$_GET["x"]; |
19 | 22 | echo "<p>O código de barras abaixo pode ser lido por dispositivos móveis, como os celulares ou pdas."; |
20 | 23 | echo "<p>Se o seu dispositivo possuir o software adequado, fotografe o código para abrir o navegador de internet ou clique no link."; | ... | ... |
ferramentas/googlemaps1/endereco.php
1 | 1 | <?php |
2 | 2 | include_once (dirname(__FILE__)."/../../classesphp/sani_request.php"); |
3 | 3 | include(dirname(__FILE__)."/../../ms_configura.php"); |
4 | +include(dirname(__FILE__)."/../blacklist.php"); | |
5 | +verificaBlFerramentas(basename(dirname(__FILE__)),$i3geoBlFerramentas,false); | |
4 | 6 | $_GET = array_merge($_GET,$_POST); |
5 | 7 | $x = $_GET["x"]; |
6 | 8 | $y = $_GET["y"]; | ... | ... |
ferramentas/googlemaps1/index.php
1 | +<?php | |
2 | +include("../../ms_configura.php"); | |
3 | +include("../blacklist.php"); | |
4 | +verificaBlFerramentas(basename(dirname(__FILE__)),$i3geoBlFerramentas,false); | |
5 | +?> | |
1 | 6 | <html> |
2 | 7 | <head> |
3 | -<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script> | |
8 | +<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false&key="<?php echo $googleApiKey; ?>></script> | |
4 | 9 | <script src="../../pacotes/cpaint/cpaint2.inc.compressed.js" type="text/javascript"></script> |
5 | 10 | <script src="index.js" type="text/javascript"></script> |
6 | 11 | ... | ... |
ferramentas/gradecoord/dependencias.php
ferramentas/gradecoord/exec.php
ferramentas/gradehex/dependencias.php
ferramentas/gradehex/exec.php
ferramentas/gradepol/dependencias.php
ferramentas/gradepol/exec.php
ferramentas/gradepontos/dependencias.php
ferramentas/gradepontos/exec.php
ferramentas/graficointerativo1/dependencias.php
ferramentas/graficointerativo1/exec.php
ferramentas/graficointerativo1/index.js
... | ... | @@ -1874,7 +1874,7 @@ i3GEOF.graficointerativo1 = |
1874 | 1874 | temp = function(retorno){ |
1875 | 1875 | i3GEO.Interface.atualizaTema(retorno,tema); |
1876 | 1876 | }; |
1877 | - cp.call(p,"insereFiltro",temp,"tema="+tema,"filtro="); | |
1877 | + cp.call(p,"insereFiltro",temp,"tema="+tema+"&filtro="); | |
1878 | 1878 | } |
1879 | 1879 | } |
1880 | 1880 | }; | ... | ... |
ferramentas/graficotema/dependencias.php
ferramentas/graficotema/exec.php
ferramentas/heatmap/dependencias.php
ferramentas/heatmap/exec.php
ferramentas/html2canvas/dependencias.php
ferramentas/identifica/dependencias.php
ferramentas/identifica/index.js
... | ... | @@ -1168,11 +1168,11 @@ i3GEOF.identifica = |
1168 | 1168 | i3GEOF.identifica.propJanelas[idjanela].aguarde.visibility = "hidden"; |
1169 | 1169 | i3GEO.Interface.atualizaTema(retorno, tema); |
1170 | 1170 | }, p = |
1171 | - i3GEO.configura.locaplic + "/ferramentas/filtro/exec.php?base64=sim&g_sid=" + i3GEO.configura.sid + "&funcao=inserefiltro", cp = | |
1171 | + i3GEO.configura.locaplic + "/ferramentas/filtro/exec.php?base64=nao&g_sid=" + i3GEO.configura.sid + "&funcao=inserefiltro", cp = | |
1172 | 1172 | new cpaint(); |
1173 | 1173 | cp.set_response_type("JSON"); |
1174 | 1174 | cp.set_transfer_mode('POST'); |
1175 | - cp.call(p, "insereFiltro", temp, "tema=" + tema, "filtro=" + i3GEO.util.base64encode(filtro)); | |
1175 | + cp.call(p, "insereFiltro", temp, "tema=" + tema + "&filtro=" + filtro); | |
1176 | 1176 | }, |
1177 | 1177 | removeFiltro : function(tema, idjanela) { |
1178 | 1178 | if (i3GEOF.identifica.propJanelas[idjanela].visibility === "visible") { |
... | ... | @@ -1187,7 +1187,7 @@ i3GEOF.identifica = |
1187 | 1187 | new cpaint(); |
1188 | 1188 | cp.set_response_type("JSON"); |
1189 | 1189 | cp.set_transfer_mode('POST'); |
1190 | - cp.call(p, "insereFiltro", temp, "tema=" + tema, "filtro="); | |
1190 | + cp.call(p, "insereFiltro", temp, "tema=" + tema + "&filtro="); | |
1191 | 1191 | }, |
1192 | 1192 | adicionaPontoRegiao : function(idjanela) { |
1193 | 1193 | var p = i3GEO.configura.locaplic + "/ferramentas/editortema/exec.php?funcao=adicionaGeometria&g_sid=" + i3GEO.configura.sid, tema = | ... | ... |
ferramentas/identifica/twitter.php
... | ... | @@ -25,6 +25,8 @@ p { |
25 | 25 | echo "<p class=paragrafo >Raio de <input type=text size=4 value='$km' id=km onchange='recarrega($par,this.value)'> km</p>"; |
26 | 26 | include(dirname(__FILE__)."/../../classesphp/carrega_ext.php"); |
27 | 27 | include(dirname(__FILE__)."/../../ms_configura.php"); |
28 | + include(dirname(__FILE__)."/../blacklist.php"); | |
29 | + verificaBlFerramentas(basename(dirname(__FILE__)),$i3geoBlFerramentas,false); | |
28 | 30 | $s = PHP_SHLIB_SUFFIX; |
29 | 31 | if(!function_exists('curl_init')) |
30 | 32 | { | ... | ... |
ferramentas/identifica/twitterplaces.php
... | ... | @@ -21,7 +21,7 @@ if(!function_exists('curl_init')) |
21 | 21 | if(!function_exists('curl_init')) |
22 | 22 | {echo "curl não instalado";} |
23 | 23 | include(dirname(__FILE__)."/../../ms_configura.php"); |
24 | - | |
24 | +include(dirname(__FILE__)."/../blacklist.php"); | |
25 | 25 | |
26 | 26 | $ch = curl_init(); |
27 | 27 | curl_setopt($ch,CURLOPT_URL, 'https://api.twitter.com/oauth2/token'); | ... | ... |
ferramentas/importarwmc/dependencias.php
ferramentas/importarwmc/upload.php
... | ... | @@ -20,6 +20,9 @@ $map_file = $_SESSION["map_file"]; |
20 | 20 | include_once (dirname(__FILE__)."/../../classesphp/sani_request.php"); |
21 | 21 | error_reporting(0); |
22 | 22 | require_once (dirname(__FILE__)."/../../ms_configura.php"); |
23 | +include(dirname(__FILE__)."/../blacklist.php"); | |
24 | +verificaBlFerramentas(basename(dirname(__FILE__)),$i3geoBlFerramentas,false); | |
25 | + | |
23 | 26 | $dirmap = dirname($map_file); |
24 | 27 | $arquivo = ""; |
25 | 28 | ... | ... |
ferramentas/imprimir/a4lpaisagempdf.php
... | ... | @@ -13,6 +13,8 @@ session_start(); |
13 | 13 | $map_file = $_SESSION["map_file"]; |
14 | 14 | $postgis_mapa = $_SESSION["postgis_mapa"]; |
15 | 15 | require_once (dirname(__FILE__)."/../../ms_configura.php"); |
16 | +include(dirname(__FILE__)."/../blacklist.php"); | |
17 | +verificaBlFerramentas(basename(dirname(__FILE__)),$i3geoBlFerramentas,false); | |
16 | 18 | // |
17 | 19 | //se as extensões já estiverem carregadas no PHP, vc pode comentar essa linha para que o processamento fique mais rápido |
18 | 20 | // | ... | ... |
ferramentas/imprimir/aggpng.php
... | ... | @@ -40,6 +40,8 @@ session_start(); |
40 | 40 | $map_file = $_SESSION["map_file"]; |
41 | 41 | $postgis_mapa = $_SESSION["postgis_mapa"]; |
42 | 42 | require_once (dirname(__FILE__)."/../../ms_configura.php"); |
43 | +include(dirname(__FILE__)."/../blacklist.php"); | |
44 | +verificaBlFerramentas(basename(dirname(__FILE__)),$i3geoBlFerramentas,false); | |
43 | 45 | // |
44 | 46 | //se as extensões já estiverem carregadas no PHP, vc pode comentar essa linha para que o processamento fique mais rápido |
45 | 47 | // | ... | ... |
ferramentas/imprimir/dependencias.php
ferramentas/imprimir/geotif.php
... | ... | @@ -41,6 +41,8 @@ session_start(); |
41 | 41 | $map_file = $_SESSION["map_file"]; |
42 | 42 | $postgis_mapa = $_SESSION["postgis_mapa"]; |
43 | 43 | require_once (dirname(__FILE__)."/../../ms_configura.php"); |
44 | +include(dirname(__FILE__)."/../blacklist.php"); | |
45 | +verificaBlFerramentas(basename(dirname(__FILE__)),$i3geoBlFerramentas,false); | |
44 | 46 | // |
45 | 47 | //se as extensões já estiverem carregadas no PHP, vc pode comentar essa linha para que o processamento fique mais rápido |
46 | 48 | // | ... | ... |
ferramentas/imprimir/geraimagens.php
... | ... | @@ -11,6 +11,8 @@ session_start(); |
11 | 11 | $map_file = $_SESSION["map_file"]; |
12 | 12 | $postgis_mapa = $_SESSION["postgis_mapa"]; |
13 | 13 | require_once (dirname(__FILE__)."/../../ms_configura.php"); |
14 | +include(dirname(__FILE__)."/../blacklist.php"); | |
15 | +verificaBlFerramentas(basename(dirname(__FILE__)),$i3geoBlFerramentas,false); | |
14 | 16 | // |
15 | 17 | //se as extensões já estiverem carregadas no PHP, vc pode comentar essa linha para que o processamento fique mais rápido |
16 | 18 | // | ... | ... |
ferramentas/imprimir/jpeg.php
... | ... | @@ -40,6 +40,8 @@ session_start(); |
40 | 40 | $map_file = $_SESSION["map_file"]; |
41 | 41 | $postgis_mapa = $_SESSION["postgis_mapa"]; |
42 | 42 | require_once (dirname(__FILE__)."/../../ms_configura.php"); |
43 | +include(dirname(__FILE__)."/../blacklist.php"); | |
44 | +verificaBlFerramentas(basename(dirname(__FILE__)),$i3geoBlFerramentas,false); | |
43 | 45 | // |
44 | 46 | //se as extensões já estiverem carregadas no PHP, vc pode comentar essa linha para que o processamento fique mais rápido |
45 | 47 | // | ... | ... |
ferramentas/imprimir/svg.php
... | ... | @@ -40,6 +40,8 @@ session_start(); |
40 | 40 | $map_file = $_SESSION["map_file"]; |
41 | 41 | $postgis_mapa = $_SESSION["postgis_mapa"]; |
42 | 42 | require_once (dirname(__FILE__)."/../../ms_configura.php"); |
43 | +include(dirname(__FILE__)."/../blacklist.php"); | |
44 | +verificaBlFerramentas(basename(dirname(__FILE__)),$i3geoBlFerramentas,false); | |
43 | 45 | // |
44 | 46 | //se as extensões já estiverem carregadas no PHP, vc pode comentar essa linha para que o processamento fique mais rápido |
45 | 47 | // | ... | ... |
ferramentas/imprimir/swf.php
ferramentas/inseregrafico/dependencias.php
ferramentas/inseretxt/dependencias.php
ferramentas/inserexy2/dependencias.php
ferramentas/inserexy2/exec.php
ferramentas/legenda/dependencias.php
1 | 1 | <?php |
2 | +include(dirname(__FILE__)."/../blacklist.php"); | |
3 | +verificaBlFerramentas(basename(dirname(__FILE__))); | |
4 | + | |
2 | 5 | /** |
3 | 6 | * Carrega os programas javascript necessarios para a ferramenta |
4 | 7 | * Esse programa e usado na tag <script> ou com a funcao scripttag do i3Geo |
... | ... | @@ -6,6 +9,7 @@ |
6 | 9 | * javascript i3GEOF.legenda.MUSTACHE |
7 | 10 | * O template e substituido pelos valores definidos em index.js no momento da inicializacao da ferramenta |
8 | 11 | */ |
12 | + | |
9 | 13 | if(extension_loaded('zlib')){ |
10 | 14 | ob_start('ob_gzhandler'); |
11 | 15 | } | ... | ... |
ferramentas/legenda/exec.php
ferramentas/linhadotempo/index.php
ferramentas/loginusuario/dependencias.php
ferramentas/markercluster/dependencias.php
ferramentas/markercluster/exec.php
ferramentas/markercluster/googlemaps_js.php
... | ... | @@ -18,6 +18,7 @@ nomevariavel nome da variavel javascript que sera retornada com os valores |
18 | 18 | $dir = dirname(__FILE__); |
19 | 19 | //inicializa o programa verificando seguranca e pegando os parametros enviados pela URL e pela secao |
20 | 20 | include_once($dir."/../safe.php"); |
21 | +verificaBlFerramentas(basename(dirname(__FILE__)),$i3geoBlFerramentas,false); | |
21 | 22 | |
22 | 23 | include_once($dir."/funcoes.php"); |
23 | 24 | ... | ... |
ferramentas/markercluster/openlayers_js.php
... | ... | @@ -19,6 +19,7 @@ $dir = dirname(__FILE__); |
19 | 19 | |
20 | 20 | //inicializa o programa verificando seguranca e pegando os parametros enviados pela URL e pela secao |
21 | 21 | include_once($dir."/../safe.php"); |
22 | +verificaBlFerramentas(basename(dirname(__FILE__)),$i3geoBlFerramentas,false); | |
22 | 23 | include_once($dir."/funcoes.php"); |
23 | 24 | |
24 | 25 | $layer = $_GET["layer"]; | ... | ... |
ferramentas/mascara/dependencias.php
ferramentas/mascara/exec.php
ferramentas/melhorcaminho/dependencias.php
ferramentas/melhorcaminho/exec.php
ferramentas/metaestat/editorlimites.php
... | ... | @@ -32,6 +32,8 @@ Free Software Foundation, Inc., no endere&ccedil;o |
32 | 32 | */ |
33 | 33 | error_reporting(0); |
34 | 34 | include_once(dirname(__FILE__)."/../../ms_configura.php"); |
35 | +include(dirname(__FILE__)."/../blacklist.php"); | |
36 | +verificaBlFerramentas(basename(dirname(__FILE__)),$i3geoBlFerramentas,false); | |
35 | 37 | ?> |
36 | 38 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
37 | 39 | <html> | ... | ... |
ferramentas/metaestat/editorlimites_dependencias.php
ferramentas/metar/dependencias.php
ferramentas/mmscale/dependencias.php
ferramentas/mmscale/exec.php
ferramentas/mostraexten/dependencias.php
ferramentas/navegapostgis/exec.php
1 | 1 | <?php |
2 | 2 | include_once(dirname(__FILE__)."/../../admin/php/login.php"); |
3 | +include("../../ms_configura.php"); | |
4 | +include("../blacklist.php"); | |
5 | +verificaBlFerramentas(basename(dirname(__FILE__)),$i3geoBlFerramentas,false); | |
6 | + | |
3 | 7 | $funcoesEdicao = array( |
4 | 8 | "LISTARQUIVOS" |
5 | 9 | ); |
... | ... | @@ -19,7 +23,6 @@ Pega a lista de drives registrados para o usu&aacute;rio atual. |
19 | 23 | A lista de drives é definida no ms_configura e permite que o usuário navegue pelos arquivos do servidor. |
20 | 24 | */ |
21 | 25 | case "LISTADRIVES": |
22 | - include(dirname(__FILE__)."/../ms_configura.php"); | |
23 | 26 | $retorno = $navegadoresLocais[0]; |
24 | 27 | break; |
25 | 28 | /* |
... | ... | @@ -28,7 +31,7 @@ Valor: LISTAARQUIVOS* |
28 | 31 | Lista os arquivos de um diretório. |
29 | 32 | */ |
30 | 33 | case "LISTAARQUIVOS": |
31 | - $retorno = listaArquivos($diretorio,true); | |
34 | + $retorno = listaArquivos($_GET["diretorio"],true); | |
32 | 35 | break; |
33 | 36 | } |
34 | 37 | cpjson($retorno); | ... | ... |
ferramentas/navegarquivos/exec.php
1 | 1 | <?php |
2 | 2 | include_once(dirname(__FILE__)."/../../admin/php/login.php"); |
3 | +include("../../ms_configura.php"); | |
4 | +include("../blacklist.php"); | |
5 | +verificaBlFerramentas(basename(dirname(__FILE__)),$i3geoBlFerramentas,false); | |
3 | 6 | $funcoesEdicao = array( |
4 | 7 | "LISTARQUIVOS", |
5 | 8 | "LISTADRIVES" | ... | ... |
ferramentas/nptpol/dependencias.php
ferramentas/nptpol/exec.php
ferramentas/nuvemtags/dependencias.php
ferramentas/nuvemtags/exec.php
ferramentas/opcoes_autoredesenha/dependencias.php
ferramentas/opcoes_escala/dependencias.php
ferramentas/opcoes_escala/exec.php
ferramentas/opcoes_fundo/dependencias.php
ferramentas/opcoes_fundo/exec.php
ferramentas/opcoes_legenda/dependencias.php
ferramentas/opcoes_legenda/exec.php
ferramentas/opcoes_querymap/dependencias.php
ferramentas/opcoes_querymap/exec.php
ferramentas/opcoes_tamanho/dependencias.php
ferramentas/opcoes_tamanho/exec.php
ferramentas/outputformat/dependencias.php
ferramentas/parametrossql/dependencias.php
ferramentas/perfil/dependencias.php
ferramentas/pontoempoligono/dependencias.php
ferramentas/pontoempoligono/exec.php
ferramentas/pontosdistri/dependencias.php
ferramentas/pontosdistri/exec.php
ferramentas/preferencias/exec.php
ferramentas/recline/default.php
... | ... | @@ -3,6 +3,8 @@ |
3 | 3 | include_once (dirname(__FILE__)."/../../classesphp/sani_request.php"); |
4 | 4 | $_GET = array_merge($_GET,$_POST); |
5 | 5 | include("../../ms_configura.php"); |
6 | +include("../blacklist.php"); | |
7 | +verificaBlFerramentas(basename(dirname(__FILE__)),$i3geoBlFerramentas,false); | |
6 | 8 | include("../../classesphp/funcoes_gerais.php"); |
7 | 9 | $versao = versao(); |
8 | 10 | $versao = $versao["principal"]; | ... | ... |
ferramentas/recline/tabela.php
... | ... | @@ -8,6 +8,8 @@ |
8 | 8 | include_once (dirname(__FILE__)."/../../classesphp/sani_request.php"); |
9 | 9 | $_GET = array_merge($_GET,$_POST); |
10 | 10 | include("../../ms_configura.php"); |
11 | +include("../blacklist.php"); | |
12 | +verificaBlFerramentas(basename(dirname(__FILE__)),$i3geoBlFerramentas,false); | |
11 | 13 | ?> |
12 | 14 | <!DOCTYPE html> |
13 | 15 | <html lang="en"> | ... | ... |
ferramentas/safe.php
... | ... | @@ -31,6 +31,7 @@ $ext = $_GET["ext"]; |
31 | 31 | $funcao = $_GET["funcao"]; |
32 | 32 | |
33 | 33 | include_once(dirname(__FILE__)."/../classesphp/funcoes_gerais.php"); |
34 | + | |
34 | 35 | if(isset($fingerprint) && !empty($g_sid)) { |
35 | 36 | $f = explode(",",$fingerprint); |
36 | 37 | if($f[0] != md5('I3GEOSEC' . $_SERVER['HTTP_USER_AGENT'] . session_id())){ |
... | ... | @@ -39,8 +40,14 @@ if(isset($fingerprint) && !empty($g_sid)) { |
39 | 40 | } |
40 | 41 | } |
41 | 42 | include_once(dirname(__FILE__)."/../ms_configura.php"); |
43 | +include_once(dirname(__FILE__)."/blacklist.php"); | |
42 | 44 | include_once(dirname(__FILE__)."/../classesphp/classe_vermultilayer.php"); |
43 | 45 | include_once(dirname(__FILE__)."/../classesphp/classe_estatistica.php"); |
46 | + | |
47 | +if(isset($logExec) && $logExec["ferramentas"] == true){ | |
48 | + i3GeoLog("prog: ferramentas url: ".implode("&",array_merge($_GET,$_POST)),$_SESSION["dir_tmp"]); | |
49 | +} | |
50 | + | |
44 | 51 | // |
45 | 52 | //substitui a string de conexão |
46 | 53 | // | ... | ... |
ferramentas/saiku/cartograma.php
... | ... | @@ -13,6 +13,8 @@ if(!isset($dir_tmp)){ |
13 | 13 | if(isset($statusFerramentas) && $statusFerramentas["saiku"] != true){ |
14 | 14 | exit; |
15 | 15 | } |
16 | +include(dirname(__FILE__)."/../blacklist.php"); | |
17 | +verificaBlFerramentas(basename(dirname(__FILE__)),$i3geoBlFerramentas,false); | |
16 | 18 | //pega o filtro da sessao PHP aberta pelo i3Geo |
17 | 19 | session_name("i3GeoPHP"); |
18 | 20 | session_id($_POST["g_sid"]); | ... | ... |
ferramentas/salvamapa/dependencias.php
ferramentas/salvamapa/geraminiatura.php
... | ... | @@ -7,7 +7,9 @@ |
7 | 7 | * @param w |
8 | 8 | * @param h |
9 | 9 | */ |
10 | -include_once (dirname(__FILE__)."/../../ms_configura.php"); | |
10 | +include_once (dirname(__FILE__)."/../../ms_configura.php"); | |
11 | +include(dirname(__FILE__)."/../blacklist.php"); | |
12 | +verificaBlFerramentas(basename(dirname(__FILE__)),$i3geoBlFerramentas,false); | |
11 | 13 | include_once (dirname(__FILE__)."/../../classesphp/funcoes_gerais.php"); |
12 | 14 | |
13 | 15 | if (filter_var($_GET["restauramapa"], FILTER_VALIDATE_INT) === false){ | ... | ... |
ferramentas/salvamapa/index.js
... | ... | @@ -98,7 +98,6 @@ i3GEOF.salvaMapa = { |
98 | 98 | local = i3GEO.configura.locaplic+"/../ms_tmp"+local[1]; |
99 | 99 | onde.innerHTML = "" + |
100 | 100 | "<a style='line-height:20px;font-size:12px;' href='"+down+"' target='_blank' >"+$trad('baixaArquivo',i3GEOF.salvaMapa.dicionario)+"</a><br>" + |
101 | - "<a style='line-height:20px;font-size:12px;' href='"+local+"' target='_blank' >"+$trad('veArquivo',i3GEOF.salvaMapa.dicionario)+"</a><br>" + | |
102 | 101 | "<a style='line-height:20px;font-size:12px;' href='"+teste+"' target='_blank' >"+$trad('testaArquivo',i3GEOF.salvaMapa.dicionario)+"</a>"; |
103 | 102 | } |
104 | 103 | catch(erro){i3GEO.janela.tempoMsg(erro);} | ... | ... |
ferramentas/scielo/funcoes.php
1 | 1 | <?php |
2 | 2 | error_reporting(0); |
3 | 3 | include_once (dirname(__FILE__)."/../../classesphp/sani_request.php"); |
4 | +include(dirname(__FILE__)."/../../ms_configura.php"); | |
5 | +include(dirname(__FILE__)."/../blacklist.php"); | |
6 | +verificaBlFerramentas(basename(dirname(__FILE__)),$i3geoBlFerramentas,false); | |
4 | 7 | $_GET = array_merge($_GET,$_POST); |
5 | 8 | $ret = $_GET["ret"]; |
6 | 9 | $servico = $_GET["servico"]; | ... | ... |
ferramentas/selecao/exec.php
ferramentas/selecao/index.js
... | ... | @@ -1198,11 +1198,11 @@ i3GEOF.selecao = |
1198 | 1198 | p, |
1199 | 1199 | "selecaoPoli", |
1200 | 1200 | retorna, |
1201 | - "xs=" + xs, | |
1202 | - "ys=" + ys, | |
1203 | - "tema=" + tema, | |
1204 | - "tipo=" + $i("i3GEOselecaotipoOperacao").value, | |
1205 | - "buffer=" + $i("i3GEOselecaotoleranciapt").value); | |
1201 | + "xs=" + xs | |
1202 | + + "&ys=" + ys | |
1203 | + + "&tema=" + tema | |
1204 | + + "&tipo=" + $i("i3GEOselecaotipoOperacao").value | |
1205 | + + "&buffer=" + $i("i3GEOselecaotoleranciapt").value); | |
1206 | 1206 | } |
1207 | 1207 | }, |
1208 | 1208 | /* | ... | ... |
ferramentas/storymap/dependencias.php
ferramentas/storymap/manutencao.php
ferramentas/tabela/dependencias.php
ferramentas/tabela/exec.php
ferramentas/tabela/relatorio.php
... | ... | @@ -24,6 +24,8 @@ $map_file = $_SESSION["map_file"]; |
24 | 24 | $postgis_mapa = $_SESSION["postgis_mapa"]; |
25 | 25 | |
26 | 26 | include (dirname(__FILE__)."/../../ms_configura.php"); |
27 | +include(dirname(__FILE__)."/../blacklist.php"); | |
28 | +verificaBlFerramentas(basename(dirname(__FILE__)),$i3geoBlFerramentas,false); | |
27 | 29 | include(dirname(__FILE__)."/../../classesphp/carrega_ext.php"); |
28 | 30 | include(dirname(__FILE__)."/../../classesphp/funcoes_gerais.php"); |
29 | 31 | $versao = versao(); | ... | ... |
ferramentas/telaremota/exec.php
ferramentas/telaremota/googleearth1.php
1 | 1 | <?php |
2 | 2 | include (dirname(__FILE__)."/../../classesphp/sani_request.php"); |
3 | 3 | include(dirname(__FILE__)."/../../ms_configura.php"); |
4 | +include(dirname(__FILE__)."/../blacklist.php"); | |
5 | +verificaBlFerramentas(basename(dirname(__FILE__)),$i3geoBlFerramentas,false); | |
4 | 6 | ?> |
5 | 7 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
6 | 8 | <html> | ... | ... |
ferramentas/telaremota/googlemaps1.php
1 | 1 | <?php |
2 | 2 | include (dirname(__FILE__)."/../../classesphp/sani_request.php"); |
3 | +include(dirname(__FILE__)."/../blacklist.php"); | |
4 | +verificaBlFerramentas(basename(dirname(__FILE__)),"",false); | |
3 | 5 | ?> |
4 | 6 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
5 | 7 | <html> |
... | ... | @@ -113,10 +115,10 @@ function inicia(){ |
113 | 115 | navm = false; |
114 | 116 | var app = navigator.appName.substring(0,1); |
115 | 117 | if (app==='N'){navn=true;}else{navm=true;} |
116 | - | |
118 | + | |
117 | 119 | mapaRemoto = new google.maps.Map($i("googlemapsdiv"),{scaleControl:true}); |
118 | 120 | mapaRemoto.setMapTypeId("terrain"); |
119 | - | |
121 | + | |
120 | 122 | i3GeoMapOverlay = new google.maps.OverlayView(); |
121 | 123 | i3GeoMapOverlay.draw = function() {}; |
122 | 124 | criaLayer(); |
... | ... | @@ -133,14 +135,14 @@ function criaLayer(){ |
133 | 135 | tileSize: new google.maps.Size(256, 256), |
134 | 136 | isPng: true, |
135 | 137 | name: "Remoto" |
136 | - }); | |
138 | + }); | |
137 | 139 | mapaRemoto.overlayMapTypes.insertAt(0, i3GEOTileO); |
138 | 140 | } |
139 | 141 | function zoom2ext(ext){ |
140 | 142 | var ret = ext.split(" "); |
141 | 143 | sw = new google.maps.LatLng(ret[1],ret[0]); |
142 | 144 | ne = new google.maps.LatLng(ret[3],ret[2]); |
143 | - mapaRemoto.fitBounds(new google.maps.LatLngBounds(sw,ne)); | |
145 | + mapaRemoto.fitBounds(new google.maps.LatLngBounds(sw,ne)); | |
144 | 146 | } |
145 | 147 | function atualizaMapa(){ |
146 | 148 | mapaRemoto.overlayMapTypes.removeAt(0); | ... | ... |
ferramentas/telaremota/openlayers1.php
ferramentas/tipoimagem/dependencias.php
ferramentas/tme/cesium.php
... | ... | @@ -7,6 +7,9 @@ |
7 | 7 | include (dirname(__FILE__)."/../../classesphp/sani_request.php"); |
8 | 8 | include("../../classesphp/funcoes_gerais.php"); |
9 | 9 | include("../../ms_configura.php"); |
10 | +include("../blacklist.php"); | |
11 | +verificaBlFerramentas(basename(dirname(__FILE__)),$i3geoBlFerramentas,false); | |
12 | + | |
10 | 13 | $nomeDoMapfileTema = dirname(__FILE__)."/../../temas/".$_GET["tema"].".map"; |
11 | 14 | if(!file_exists($nomeDoMapfileTema)){ |
12 | 15 | $nomeDoMapfileTema = $dir_tmp."/".$_GET["tema"].".map"; | ... | ... |
ferramentas/tme/dependencias.php
ferramentas/tme/manutencao.php
1 | 1 | <?php |
2 | -include_once(dirname(__FILE__)."/../inicia.php"); | |
3 | -include_once(dirname(__FILE__)."/../../admin/php/login.php"); | |
2 | +include_once(dirname(__FILE__)."/../../admin/php/login.php"); | |
3 | + | |
4 | +include(dirname(__FILE__)."/../blacklist.php"); | |
5 | +verificaBlFerramentas(basename(dirname(__FILE__)),$i3geoBlFerramentas,false); | |
6 | + | |
4 | 7 | $funcoesEdicao = array( |
5 | 8 | "REMOVETME", |
6 | 9 | "INCLUITME" | ... | ... |
ferramentas/toponimia/dependencias.php
ferramentas/toponimia/exec.php
ferramentas/upload/upload.php
... | ... | @@ -39,6 +39,8 @@ if (ob_get_level() == 0) ob_start(); |
39 | 39 | if (isset($_FILES['i3GEOuploadshp']['name'])) |
40 | 40 | { |
41 | 41 | require_once (dirname(__FILE__)."/../../ms_configura.php"); |
42 | + include(dirname(__FILE__)."/../blacklist.php"); | |
43 | + verificaBlFerramentas(basename(dirname(__FILE__)),$i3geoBlFerramentas,false); | |
42 | 44 | |
43 | 45 | if(isset($logExec) && $logExec["upload"] == true){ |
44 | 46 | i3GeoLog("prog: upload filename:" . $_FILES['i3GEOuploadshp']['name'],$dir_tmp); | ... | ... |
ferramentas/uploadarquivos/dependencias.php
ferramentas/uploaddbf/dependencias.php
ferramentas/uploaddbf/upload.php
... | ... | @@ -33,6 +33,8 @@ if (isset($_FILES['i3GEOuploaddbffile']['name']) && strlen(basename($_FILES['i3G |
33 | 33 | |
34 | 34 | //$ndir = dirname($filen); |
35 | 35 | require_once (dirname(__FILE__)."/../../ms_configura.php"); |
36 | + include(dirname(__FILE__)."/../blacklist.php"); | |
37 | + verificaBlFerramentas(basename(dirname(__FILE__)),$i3geoBlFerramentas,false); | |
36 | 38 | |
37 | 39 | if(isset($logExec) && $logExec["upload"] == true){ |
38 | 40 | i3GeoLog("prog: uploaddbf filename:" . $_FILES['i3GEOuploaddbffile']['name'],$dir_tmp); | ... | ... |
ferramentas/uploadgpx/dependencias.php
ferramentas/uploadgpx/upload.php
... | ... | @@ -30,6 +30,8 @@ if (isset($_FILES['i3GEOuploadgpx']['name']) && strlen(basename($_FILES['i3GEOup |
30 | 30 | } |
31 | 31 | //$ndir = dirname($filen); |
32 | 32 | require_once (dirname(__FILE__)."/../../ms_configura.php"); |
33 | + include(dirname(__FILE__)."/../blacklist.php"); | |
34 | + verificaBlFerramentas(basename(dirname(__FILE__)),$i3geoBlFerramentas,false); | |
33 | 35 | |
34 | 36 | if(isset($logExec) && $logExec["upload"] == true){ |
35 | 37 | i3GeoLog("prog: uploadgpx filename:" . $_FILES['i3GEOuploadgpx']['name'],$dir_tmp); | ... | ... |
ferramentas/uploadkml/dependencias.php
ferramentas/uploadkml/upload.php
... | ... | @@ -31,6 +31,8 @@ if (isset($_FILES['i3GEOuploadkml']['name']) && strlen(basename($_FILES['i3GEOup |
31 | 31 | } |
32 | 32 | //$ndir = dirname($filen); |
33 | 33 | require_once (dirname(__FILE__)."/../../ms_configura.php"); |
34 | + include(dirname(__FILE__)."/../blacklist.php"); | |
35 | + verificaBlFerramentas(basename(dirname(__FILE__)),$i3geoBlFerramentas,false); | |
34 | 36 | |
35 | 37 | if(isset($logExec) && $logExec["upload"] == true){ |
36 | 38 | i3GeoLog("prog: uploadkml filename:" . $_FILES['i3GEOuploadkml']['name'],$dir_tmp); | ... | ... |
ferramentas/vinde/dependencias.php
ferramentas/vinde/wmsindejson.php
1 | 1 | <?php |
2 | 2 | include(dirname(__FILE__)."/../../ms_configura.php"); |
3 | +include(dirname(__FILE__)."/../blacklist.php"); | |
4 | +verificaBlFerramentas(basename(dirname(__FILE__)),$i3geoBlFerramentas,false); | |
5 | + | |
3 | 6 | include($locaplic."/classesphp/funcoes_gerais.php"); |
4 | 7 | $agora = intval(time() / 10000); |
5 | 8 | $arq = $dir_tmp."/inde$agora.html"; | ... | ... |
ferramentas/wiki/dependencias.php
ferramentas/wiki/funcoes.php
1 | 1 | <?php |
2 | +include(dirname(__FILE__)."/../../ms_configura.php"); | |
3 | +include(dirname(__FILE__)."/../blacklist.php"); | |
4 | +verificaBlFerramentas(basename(dirname(__FILE__)),$i3geoBlFerramentas,false); | |
2 | 5 | $usuarioGeonames = "i3geo"; |
3 | 6 | //set_time_limit(600); |
4 | 7 | require_once(dirname(__FILE__)."/../../pacotes/cpaint/cpaint2.inc.php"); | ... | ... |
ferramentas/wkt2layer/dependencias.php
ferramentas/wkt2layer/exec.php
ms_configura.php
... | ... | @@ -171,6 +171,50 @@ $statusFerramentas = array( |
171 | 171 | "melhorcaminho"=>true |
172 | 172 | ); |
173 | 173 | /* |
174 | +Variable: $i3geoBlFerramentas | |
175 | + | |
176 | +Lista de ferramentas que sao bloqueadas, impedindo sua execucao. | |
177 | + | |
178 | +O bloqueio e feito da seguinte forma: | |
179 | + | |
180 | +- diretamente no programa PHP que executa as operacoes relativas a ferramenta | |
181 | + | |
182 | +- diretamente no programa que faz a carga dos javascripts necessarios ao funcionamento da ferramenta | |
183 | + | |
184 | +Essa lista nao impede que a ferramenta seja mostrada na interface do i3Geo. Para remover da interface | |
185 | +e necessario usar as opcoes de configuracao das inetrfaces. Mesmo a opcao sendo mostrada, ela sera | |
186 | +bloqueada quando o usuario tentar executa-la. | |
187 | + | |
188 | +As palavras incluidas na lista correspondem ao nome da pasta onde reside o codigo da ferramenta e | |
189 | +armazenada em i3geo/ferramentas. | |
190 | + | |
191 | +Exemplo: para bloquear a funcao de edicao da legenda e a funcao que mostra a tabela de | |
192 | +atributos, basta incluir na lista "legenda","tabela" | |
193 | + | |
194 | +$i3geoBlFerramentas = array("legenda","tabela"); | |
195 | + | |
196 | +Para nao bloquear nenhuma ferramenta, deixe em branco | |
197 | + | |
198 | +Excecoes: | |
199 | + | |
200 | +As seguintes ferramentas nao podem ser bloqueadas: | |
201 | +(algumas dessas ferramentas sao bloqueadas dependendo da configuracao de cada tema. Algumas | |
202 | +sao agregadores de outras ferramentas ou nao utilizam PHP) | |
203 | + | |
204 | +colorpicker,colourramp,convertekml,download,editorgm,editorol,excluirarvore,opacidademapa, | |
205 | +opcoes_autoredesenha,opcoes_label,salvamapfile,wmstime | |
206 | + | |
207 | +As seguintes ferramentas podem ser bloqueadas apenas impedindo-se a carga do javascript | |
208 | +(as operacoes via PHP sao realizadas por outras classes que nao residem na pasta ferramentas ou não utiliza PHP) | |
209 | + | |
210 | +analisageometrias,animacao,atalhoscamada,atalhosedicao,atalhosmapa,bufferpt,busca,buscainde | |
211 | +buscarapida,conectarservicos,convertemapakml,cortina,editorsql,filtroarvore,geolocal,html2canvas,inseregrafico | |
212 | +inseretxt,mostraexten,outputformat,perfil,tipoimagem | |
213 | + | |
214 | +*/ | |
215 | +$i3geoBlFerramentas = array("carregamapa"); | |
216 | + | |
217 | +/* | |
174 | 218 | Variable: $ogrOutput |
175 | 219 | |
176 | 220 | Indica se o OGR esta corretamente instalado, permitindo o seu uso nos servicos OGC de exportacao de dados | ... | ... |