Commit 5673a5ccdb46f7b0297b703d1c1a347bfb792d56

Authored by Edmar Moretti
1 parent 1eaf7680

Inclusão da verificação de usuário em várias funções

admin/admin.db
No preview for this file type
admin/php/arvore.php
... ... @@ -42,9 +42,25 @@ Cada operação possuí seus próprios parâmetros, que de
42 42  
43 43 */
44 44 include_once(__DIR__."/login.php");
45   -if(verificaOperacaoSessao("admin/html/arvore") == false){
46   - echo "Vc nao pode realizar essa operacao.";exit;
  45 +$funcoesEdicao = array(
  46 + "ADICIONARTEMARAIZ",
  47 + "ADICIONARTEMARAIZGRUPO",
  48 + "ADICIONARGRUPO",
  49 + "ADICIONARSUBGRUPO",
  50 + "ADICIONARTEMA",
  51 + "ALTERARGRUPO",
  52 + "ALTERARSUBGRUPO",
  53 + "ALTERARTEMA",
  54 + "ALTERARRAIZ",
  55 + "MOVIMENTANO",
  56 + "EXCLUIR"
  57 +);
  58 +if(in_array(strtoupper($funcao),$funcoesEdicao)){
  59 + if(verificaOperacaoSessao("admin/html/arvore") == false){
  60 + retornaJSON("Vc nao pode realizar essa operacao.");exit;
  61 + }
47 62 }
  63 +
48 64 if(!isset($idioma))
49 65 {
50 66 $idioma = "pt";
... ... @@ -205,10 +221,6 @@ switch (strtoupper($funcao))
205 221 {JSON}
206 222 */
207 223 case "ADICIONARTEMARAIZ":
208   - if(verificaEditores($editores) == "nao")
209   - {
210   - echo "Vc nao e um editor cadastrado. Apenas os editores definidos em i3geo/ms_configura.php podem acessar o sistema de administracao.";exit;
211   - }
212 224 $id_nivel = 0;
213 225 $nivel = 0;
214 226 $id_raiz = alterarRaiz();
... ... @@ -237,10 +249,6 @@ switch (strtoupper($funcao))
237 249 {JSON}
238 250 */
239 251 case "ADICIONARTEMARAIZGRUPO":
240   - if(verificaEditores($editores) == "nao")
241   - {
242   - echo "Vc nao e um editor cadastrado. Apenas os editores definidos em i3geo/ms_configura.php podem acessar o sistema de administracao.";exit;
243   - }
244 252 $id_nivel = $id_n1;
245 253 $nivel = 1;
246 254 $id_raiz = alterarRaiz();
... ... @@ -269,10 +277,6 @@ switch (strtoupper($funcao))
269 277 {JSON}
270 278 */
271 279 case "ADICIONARGRUPO":
272   - if(verificaEditores($editores) == "nao")
273   - {
274   - echo "Vc nao e um editor cadastrado. Apenas os editores definidos em i3geo/ms_configura.php podem acessar o sistema de administracao.";exit;
275   - }
276 280 $id_n1 = alteraN1();
277 281 if($idioma == "pt")
278 282 {
... ... @@ -300,10 +304,6 @@ switch (strtoupper($funcao))
300 304 {JSON}
301 305 */
302 306 case "ADICIONARSUBGRUPO":
303   - if(verificaEditores($editores) == "nao")
304   - {
305   - echo "Vc nao e um editor cadastrado. Apenas os editores definidos em i3geo/ms_configura.php podem acessar o sistema de administracao.";exit;
306   - }
307 307 $id_n2 = alteraN2();
308 308 if($idioma == "pt")
309 309 {
... ... @@ -331,10 +331,6 @@ switch (strtoupper($funcao))
331 331 {JSON}
332 332 */
333 333 case "ADICIONARTEMA":
334   - if(verificaEditores($editores) == "nao")
335   - {
336   - echo "Vc nao e um editor cadastrado. Apenas os editores definidos em i3geo/ms_configura.php podem acessar o sistema de administracao.";exit;
337   - }
338 334 $id_n3 = alteraN3();
339 335 if($idioma == "pt")
340 336 {
... ... @@ -370,10 +366,6 @@ switch (strtoupper($funcao))
370 366 {JSON}
371 367 */
372 368 case "ALTERARGRUPO":
373   - if(verificaEditores($editores) == "nao")
374   - {
375   - echo "Vc nao e um editor cadastrado. Apenas os editores definidos em i3geo/ms_configura.php podem acessar o sistema de administracao.";exit;
376   - }
377 369 retornaJSON(alteraN1());
378 370 exit;
379 371 break;
... ... @@ -399,10 +391,6 @@ switch (strtoupper($funcao))
399 391 {JSON}
400 392 */
401 393 case "ALTERARSUBGRUPO":
402   - if(verificaEditores($editores) == "nao")
403   - {
404   - echo "Vc nao e um editor cadastrado. Apenas os editores definidos em i3geo/ms_configura.php podem acessar o sistema de administracao.";exit;
405   - }
406 394 retornaJSON(alteraN2());
407 395 exit;
408 396 break;
... ... @@ -428,10 +416,6 @@ switch (strtoupper($funcao))
428 416 {JSON}
429 417 */
430 418 case "ALTERARTEMA":
431   - if(verificaEditores($editores) == "nao")
432   - {
433   - echo "Vc nao e um editor cadastrado. Apenas os editores definidos em i3geo/ms_configura.php podem acessar o sistema de administracao.";exit;
434   - }
435 419 retornaJSON(alteraN3());
436 420 exit;
437 421 break;
... ... @@ -461,10 +445,6 @@ switch (strtoupper($funcao))
461 445 {JSON}
462 446 */
463 447 case "ALTERARRAIZ":
464   - if(verificaEditores($editores) == "nao")
465   - {
466   - echo "Vc nao e um editor cadastrado. Apenas os editores definidos em i3geo/ms_configura.php podem acessar o sistema de administracao.";exit;
467   - }
468 448 retornaJSON(alterarRaiz());
469 449 exit;
470 450 break;
... ... @@ -486,10 +466,6 @@ switch (strtoupper($funcao))
486 466 {JSON}
487 467 */
488 468 case "MOVIMENTANO":
489   - if(verificaEditores($editores) == "nao")
490   - {
491   - echo "Vc nao e um editor cadastrado. Apenas os editores definidos em i3geo/ms_configura.php podem acessar o sistema de administracao.";exit;
492   - }
493 469 movimentaNo();
494 470 retornaJSON("ok");
495 471 exit;
... ... @@ -512,10 +488,6 @@ switch (strtoupper($funcao))
512 488 {JSON}
513 489 */
514 490 case "EXCLUIR";
515   - if(verificaEditores($editores) == "nao")
516   - {
517   - echo "Vc nao e um editor cadastrado. Apenas os editores definidos em i3geo/ms_configura.php podem acessar o sistema de administracao.";exit;
518   - }
519 491 if($tabela == "i3geoadmin_raiz")
520 492 {
521 493 $coluna = "id_raiz";
... ...
admin/php/atlas.php
... ... @@ -39,7 +39,20 @@ O parâmetro principal é "funcao", que define qual operaç&ati
39 39 Cada operação possuí seus próprios parâmetros, que devem ser enviados também na requisição da operação.
40 40  
41 41 */
42   -include_once("admin.php");
  42 +include_once(__DIR__."/login.php");
  43 +$funcoesEdicao = array(
  44 + "ALTERARATLAS",
  45 + "ALTERARPRANCHA",
  46 + "ALTERARTEMA",
  47 + "EXCLUIRATLAS",
  48 + "EXCLUIRPRANCHA",
  49 + "EXCLUIRTEMA"
  50 +);
  51 +if(in_array(strtoupper($funcao),$funcoesEdicao)){
  52 + if(verificaOperacaoSessao("admin/html/atlas") == false){
  53 + retornaJSON("Vc nao pode realizar essa operacao.");exit;
  54 + }
  55 +}
43 56 //faz a busca da função que deve ser executada
44 57 switch (strtoupper($funcao))
45 58 {
... ... @@ -184,10 +197,6 @@ switch (strtoupper($funcao))
184 197 {JSON}
185 198 */
186 199 case "ALTERARATLAS":
187   - if(verificaEditores($editores) == "nao")
188   - {
189   - echo "Vc nao e um editor cadastrado. Apenas os editores definidos em i3geo/ms_configura.php podem acessar o sistema de administracao.";exit;
190   - }
191 200 $novo = alterarAtlas();
192 201 $sql = "SELECT * from ".$esquemaadmin."i3geoadmin_atlas WHERE id_atlas = '".$novo."'";
193 202 retornaJSON(pegaDados($sql));
... ... @@ -225,10 +234,6 @@ switch (strtoupper($funcao))
225 234 {JSON}
226 235 */
227 236 case "ALTERARPRANCHA":
228   - if(verificaEditores($editores) == "nao")
229   - {
230   - echo "Vc nao e um editor cadastrado. Apenas os editores definidos em i3geo/ms_configura.php podem acessar o sistema de administracao.";exit;
231   - }
232 237 $novo = alterarPrancha();
233 238 $sql = "SELECT * from ".$esquemaadmin."i3geoadmin_atlasp WHERE id_prancha = '".$novo."'";
234 239 retornaJSON(pegaDados($sql));
... ... @@ -256,10 +261,6 @@ switch (strtoupper($funcao))
256 261 {JSON}
257 262 */
258 263 case "ALTERARTEMA":
259   - if(verificaEditores($editores) == "nao")
260   - {
261   - echo "Vc nao e um editor cadastrado. Apenas os editores definidos em i3geo/ms_configura.php podem acessar o sistema de administracao.";exit;
262   - }
263 264 $novo = alterarTema();
264 265 $sql = "SELECT * from ".$esquemaadmin."i3geoadmin_atlast WHERE id_tema = '".$novo."'";
265 266 retornaJSON(pegaDados($sql));
... ... @@ -278,10 +279,6 @@ switch (strtoupper($funcao))
278 279 {JSON}
279 280 */
280 281 case "EXCLUIRATLAS":
281   - if(verificaEditores($editores) == "nao")
282   - {
283   - echo "Vc nao e um editor cadastrado. Apenas os editores definidos em i3geo/ms_configura.php podem acessar o sistema de administracao.";exit;
284   - }
285 282 $tabela = "i3geoadmin_atlas";
286 283 $f = verificaFilhos();
287 284 if(!$f)
... ... @@ -304,10 +301,6 @@ switch (strtoupper($funcao))
304 301 {JSON}
305 302 */
306 303 case "EXCLUIRPRANCHA":
307   - if(verificaEditores($editores) == "nao")
308   - {
309   - echo "Vc nao e um editor cadastrado. Apenas os editores definidos em i3geo/ms_configura.php podem acessar o sistema de administracao.";exit;
310   - }
311 304 $tabela = "i3geoadmin_atlasp";
312 305 $f = verificaFilhos();
313 306 if(!$f)
... ... @@ -330,10 +323,6 @@ switch (strtoupper($funcao))
330 323 {JSON}
331 324 */
332 325 case "EXCLUIRTEMA":
333   - if(verificaEditores($editores) == "nao")
334   - {
335   - echo "Vc nao e um editor cadastrado. Apenas os editores definidos em i3geo/ms_configura.php podem acessar o sistema de administracao.";exit;
336   - }
337 326 retornaJSON(excluirTema());
338 327 exit;
339 328 break;
... ... @@ -355,22 +344,10 @@ switch (strtoupper($funcao))
355 344 {JSON}
356 345 */
357 346 case "MOVIMENTANO":
358   - if(verificaEditores($editores) == "nao")
359   - {
360   - echo "Vc nao e um editor cadastrado. Apenas os editores definidos em i3geo/ms_configura.php podem acessar o sistema de administracao.";exit;
361   - }
362 347 movimentaNo();
363 348 retornaJSON("ok");
364 349 exit;
365 350 break;
366   - case "IMPORTARXMLATLAS":
367   - if(verificaEditores($editores) == "nao")
368   - {
369   - echo "Vc nao e um editor cadastrado. Apenas os editores definidos em i3geo/ms_configura.php podem acessar o sistema de administracao.";exit;
370   - }
371   - retornaJSON(importarXmlAtlas());
372   - exit;
373   - break;
374 351 }
375 352 function movimentaNo()
376 353 {
... ...
admin/php/classe_arvore.php
... ... @@ -114,7 +114,7 @@ class Arvore
114 114 //no sistema de administração
115 115 //
116 116 $this->editor = false;
117   - $this->editor = $this->verificaPapelSessao(3);
  117 + $this->editor = $this->verificaOperacaoSessao("admin/php/classe_arvore/editor");
118 118 $this->pubsql = " (publicado != 'NAO' or publicado isnull) and ";
119 119 if($this->editor)
120 120 {
... ... @@ -839,6 +839,10 @@ class Arvore
839 839 }
840 840 return $resultado;
841 841 }
  842 + /**
  843 + *
  844 + * TODO corrigir acentuacao
  845 + */
842 846 function removeAcentos($s)
843 847 {
844 848 $s = ereg_replace("[áàâã]","a",$s);
... ... @@ -877,7 +881,7 @@ class Arvore
877 881 return false;
878 882 }
879 883 foreach($_SESSION["papeis"] as $p){
880   - if($p["id_papel"] == 1 || $p["id_papel"] == $id_papel){
  884 + if($p == 1 || $p == $id_papel){
881 885 return true;
882 886 }
883 887 }
... ... @@ -886,5 +890,22 @@ class Arvore
886 890 return false;
887 891 }
888 892 }
  893 + function verificaOperacaoSessao($operacao){
  894 + session_write_close();
  895 + session_name("i3GeoLogin");
  896 + session_id($_COOKIE["i3geocodigologin"]);
  897 + session_start();
  898 + $resultado = false;
  899 + //verifica se e administrador
  900 + foreach($_SESSION["papeis"] as $p){
  901 + if($p["id_papel"] == 1){
  902 + return true;
  903 + }
  904 + }
  905 + if(!empty($_SESSION["operacoes"][$operacao])){
  906 + $resultado = true;
  907 + }
  908 + return $resultado;
  909 + }
889 910 }
890 911 ?>
891 912 \ No newline at end of file
... ...
admin/php/editormapfile.php
... ... @@ -40,8 +40,39 @@ Cada operação possuí seus próprios parâmetros, que de
40 40  
41 41 */
42 42 include_once(__DIR__."/login.php");
43   -if(verificaOperacaoSessao("admin/html/editormapfile") == false){
44   - echo "Vc nao pode realizar essa operacao.";exit;
  43 +$funcoesEdicao = array(
  44 + "CRIARNOVOMAP",
  45 + "EDITASIMBOLO",
  46 + "LIMPARCACHEMAPFILE",
  47 + "EXCLUIRMAPFILE",
  48 + "REFAZERLAYER",
  49 + "CLONARMAPFILE",
  50 + "CRIARNOVOLAYER",
  51 + "EXCLUIRLAYER",
  52 + "AUTOCLASSESLAYER",
  53 + "CRIARNOVACLASSE",
  54 + "EXCLUIRCLASSE",
  55 + "CRIARNOVOESTILO",
  56 + "EXCLUIRESTILO",
  57 + "ALTERARESTILO",
  58 + "ALTERARCONEXAO",
  59 + "ALTERARTITULO",
  60 + "ALTERARDISPO",
  61 + "ALTERARCOMPORT",
  62 + "ALTERARMETADADOS",
  63 + "ALTERARGERAL",
  64 + "ALTERARCLASSEGERAL",
  65 + "ALTERARCLASSELABEL"
  66 +);
  67 +if(in_array(strtoupper($funcao),$funcoesEdicao)){
  68 + $f = @fopen("$locaplic/temas/teste.txt",w);
  69 + @fclose($f);
  70 + if (!file_exists("$locaplic/temas/teste.txt")){
  71 + retornaJSON("sem direito de escrita na pasta temas");exit;
  72 + }
  73 + if(verificaOperacaoSessao("admin/html/editormapfile") == false){
  74 + retornaJSON("Vc nao pode realizar essa operacao.");exit;
  75 + }
45 76 }
46 77 error_reporting(0);
47 78 //faz a busca da função que deve ser executada
... ... @@ -74,10 +105,6 @@ switch (strtoupper($funcao))
74 105 {JSON}
75 106 */
76 107 case "CRIARNOVOMAP":
77   - if(verificaEditores($editores) == "nao")
78   - {
79   - echo "Vc nao e um editor cadastrado. Apenas os editores definidos em i3geo/ms_configura.php podem acessar o sistema de administracao.";exit;
80   - }
81 108 retornaJSON(criarNovoMap());
82 109 exit;
83 110 break;
... ... @@ -228,10 +255,6 @@ switch (strtoupper($funcao))
228 255 {JSON}
229 256 */
230 257 case "EXCLUIRMAPFILE":
231   - if(verificaEditores($editores) == "nao")
232   - {
233   - echo "Vc nao e um editor cadastrado. Apenas os editores definidos em i3geo/ms_configura.php podem acessar o sistema de administracao.";exit;
234   - }
235 258 //pega oid do tema
236 259 $dados = pegaDados("SELECT id_tema from ".$esquemaadmin."i3geoadmin_temas WHERE codigo_tema = '".$codigoMap."'");
237 260 if(count($dados) > 0)
... ... @@ -279,10 +302,6 @@ switch (strtoupper($funcao))
279 302 {JSON}
280 303 */
281 304 case "REFAZERLAYER":
282   - if(verificaEditores($editores) == "nao")
283   - {
284   - echo "Vc nao e um editor cadastrado. Apenas os editores definidos em i3geo/ms_configura.php podem acessar o sistema de administracao.";exit;
285   - }
286 305 retornaJSON(refazerLayer());
287 306 exit;
288 307 break;
... ... @@ -302,10 +321,6 @@ switch (strtoupper($funcao))
302 321 {JSON}
303 322 */
304 323 case "CLONARMAPFILE":
305   - if(verificaEditores($editores) == "nao")
306   - {
307   - echo "Vc nao e um editor cadastrado. Apenas os editores definidos em i3geo/ms_configura.php podem acessar o sistema de administracao.";exit;
308   - }
309 324 retornaJSON(clonarMapfile());
310 325 exit;
311 326 break;
... ... @@ -325,10 +340,6 @@ switch (strtoupper($funcao))
325 340 {JSON}
326 341 */
327 342 case "CRIARNOVOLAYER":
328   - if(verificaEditores($editores) == "nao")
329   - {
330   - echo "Vc nao e um editor cadastrado. Apenas os editores definidos em i3geo/ms_configura.php podem acessar o sistema de administracao.";exit;
331   - }
332 343 retornaJSON(criarNovoLayer());
333 344 exit;
334 345 break;
... ... @@ -348,10 +359,6 @@ switch (strtoupper($funcao))
348 359 {JSON}
349 360 */
350 361 case "EXCLUIRLAYER":
351   - if(verificaEditores($editores) == "nao")
352   - {
353   - echo "Vc nao e um editor cadastrado. Apenas os editores definidos em i3geo/ms_configura.php podem acessar o sistema de administracao.";exit;
354   - }
355 362 retornaJSON(excluirLayer());
356 363 exit;
357 364 break;
... ... @@ -395,10 +402,6 @@ switch (strtoupper($funcao))
395 402 {JSON}
396 403 */
397 404 case "AUTOCLASSESLAYER":
398   - if(verificaEditores($editores) == "nao")
399   - {
400   - echo "Vc nao e um editor cadastrado. Apenas os editores definidos em i3geo/ms_configura.php podem acessar o sistema de administracao.";exit;
401   - }
402 405 autoClassesLayer();
403 406 retornaJSON(listaClasses());
404 407 exit;
... ... @@ -419,10 +422,6 @@ switch (strtoupper($funcao))
419 422 {JSON}
420 423 */
421 424 case "CRIARNOVACLASSE":
422   - if(verificaEditores($editores) == "nao")
423   - {
424   - echo "Vc nao e um editor cadastrado. Apenas os editores definidos em i3geo/ms_configura.php podem acessar o sistema de administracao.";exit;
425   - }
426 425 retornaJSON(criarNovaClasse());
427 426 exit;
428 427 break;
... ... @@ -444,10 +443,6 @@ switch (strtoupper($funcao))
444 443 {JSON}
445 444 */
446 445 case "EXCLUIRCLASSE":
447   - if(verificaEditores($editores) == "nao")
448   - {
449   - echo "Vc nao e um editor cadastrado. Apenas os editores definidos em i3geo/ms_configura.php podem acessar o sistema de administracao.";exit;
450   - }
451 446 excluirClasse();
452 447 retornaJSON(listaClasses());
453 448 exit;
... ... @@ -491,10 +486,6 @@ switch (strtoupper($funcao))
491 486 {JSON}
492 487 */
493 488 case "CRIARNOVOESTILO":
494   - if(verificaEditores($editores) == "nao")
495   - {
496   - echo "Vc nao e um editor cadastrado. Apenas os editores definidos em i3geo/ms_configura.php podem acessar o sistema de administracao.";exit;
497   - }
498 489 retornaJSON(criarNovoEstilo());
499 490 exit;
500 491 break;
... ... @@ -518,10 +509,6 @@ switch (strtoupper($funcao))
518 509 {JSON}
519 510 */
520 511 case "EXCLUIRESTILO":
521   - if(verificaEditores($editores) == "nao")
522   - {
523   - echo "Vc nao e um editor cadastrado. Apenas os editores definidos em i3geo/ms_configura.php podem acessar o sistema de administracao.";exit;
524   - }
525 512 excluirEstilo();
526 513 retornaJSON(listaEstilos());
527 514 exit;
... ... @@ -597,10 +584,6 @@ switch (strtoupper($funcao))
597 584 {JSON}
598 585 */
599 586 case "ALTERARESTILO":
600   - if(verificaEditores($editores) == "nao")
601   - {
602   - echo "Vc nao e um editor cadastrado. Apenas os editores definidos em i3geo/ms_configura.php podem acessar o sistema de administracao.";exit;
603   - }
604 587 alterarEstilo();
605 588 retornaJSON(pegaEstilo());
606 589 exit;
... ... @@ -621,10 +604,6 @@ switch (strtoupper($funcao))
621 604 {JSON}
622 605 */
623 606 case "PEGACONEXAO":
624   - if(verificaEditores($editores) == "nao")
625   - {
626   - echo "Vc nao e um editor cadastrado. Apenas os editores definidos em i3geo/ms_configura.php podem acessar o sistema de administracao.";exit;
627   - }
628 607 retornaJSON(pegaConexao());
629 608 exit;
630 609 break;
... ... @@ -656,10 +635,6 @@ switch (strtoupper($funcao))
656 635 {JSON}
657 636 */
658 637 case "ALTERARCONEXAO":
659   - if(verificaEditores($editores) == "nao")
660   - {
661   - echo "Vc nao e um editor cadastrado. Apenas os editores definidos em i3geo/ms_configura.php podem acessar o sistema de administracao.";exit;
662   - }
663 638 $retorno = alterarConexao();
664 639 if($testar == "false")
665 640 retornaJSON(pegaConexao());
... ... @@ -706,10 +681,6 @@ switch (strtoupper($funcao))
706 681 exit;
707 682 break;
708 683 case "ALTERARTITULO":
709   - if(verificaEditores($editores) == "nao")
710   - {
711   - echo "Vc nao e um editor cadastrado. Apenas os editores definidos em i3geo/ms_configura.php podem acessar o sistema de administracao.";exit;
712   - }
713 684 alterarTitulo();
714 685 retornaJSON(pegaTitulo());
715 686 exit;
... ... @@ -719,10 +690,6 @@ switch (strtoupper($funcao))
719 690 exit;
720 691 break;
721 692 case "ALTERARDISPO":
722   - if(verificaEditores($editores) == "nao")
723   - {
724   - echo "Vc nao e um editor cadastrado. Apenas os editores definidos em i3geo/ms_configura.php podem acessar o sistema de administracao.";exit;
725   - }
726 693 alterarDispo();
727 694 retornaJSON(pegaDispo());
728 695 exit;
... ... @@ -732,10 +699,6 @@ switch (strtoupper($funcao))
732 699 exit;
733 700 break;
734 701 case "ALTERARCOMPORT":
735   - if(verificaEditores($editores) == "nao")
736   - {
737   - echo "Vc nao e um editor cadastrado. Apenas os editores definidos em i3geo/ms_configura.php podem acessar o sistema de administracao.";exit;
738   - }
739 702 alterarComport();
740 703 retornaJSON(pegaComport());
741 704 exit;
... ... @@ -831,10 +794,6 @@ switch (strtoupper($funcao))
831 794 {JSON}
832 795 */
833 796 case "ALTERARMETADADOS":
834   - if(verificaEditores($editores) == "nao")
835   - {
836   - echo "Vc nao e um editor cadastrado. Apenas os editores definidos em i3geo/ms_configura.php podem acessar o sistema de administracao.";exit;
837   - }
838 797 alterarMetadados();
839 798 retornaJSON(pegaMetadados());
840 799 exit;
... ... @@ -914,13 +873,7 @@ switch (strtoupper($funcao))
914 873 {JSON}
915 874 */
916 875 case "ALTERARGERAL":
917   - if(verificaEditores($editores) == "nao")
918   - {
919   - echo "Vc nao e um editor cadastrado. Apenas os editores definidos em i3geo/ms_configura.php podem acessar o sistema de administracao.";exit;
920   - }
921   -
922 876 $retorno = alterarGeral();
923   -
924 877 if($testar == "false")
925 878 {
926 879 $codigoLayer = $name;
... ... @@ -983,10 +936,6 @@ switch (strtoupper($funcao))
983 936 {JSON}
984 937 */
985 938 case "ALTERARCLASSEGERAL":
986   - if(verificaEditores($editores) == "nao")
987   - {
988   - echo "Vc nao e um editor cadastrado. Apenas os editores definidos em i3geo/ms_configura.php podem acessar o sistema de administracao.";exit;
989   - }
990 939 alterarClasseGeral();
991 940 retornaJSON(pegaClasseGeral());
992 941 exit;
... ... @@ -1084,19 +1033,11 @@ switch (strtoupper($funcao))
1084 1033 {JSON}
1085 1034 */
1086 1035 case "ALTERARCLASSELABEL":
1087   - if(verificaEditores($editores) == "nao")
1088   - {
1089   - echo "Vc nao e um editor cadastrado. Apenas os editores definidos em i3geo/ms_configura.php podem acessar o sistema de administracao.";exit;
1090   - }
1091 1036 alterarClasseLabel();
1092 1037 retornaJSON(pegaClasseLabel());
1093 1038 exit;
1094 1039 break;
1095 1040 case "MOVIMENTANO":
1096   - if(verificaEditores($editores) == "nao")
1097   - {
1098   - echo "Vc nao e um editor cadastrado. Apenas os editores definidos em i3geo/ms_configura.php podem acessar o sistema de administracao.";exit;
1099   - }
1100 1041 $res = sobeDesce();
1101 1042 retornaJSON($res);
1102 1043 exit;
... ...
admin/php/editortexto.php
... ... @@ -33,7 +33,10 @@ body {
33 33 $gravarTexto = $_POST["texto"];
34 34 $_POST["texto"] = "";
35 35 }
36   - include_once("admin.php");
  36 + include_once(__DIR__."/login.php");
  37 + if(verificaOperacaoSessao("admin/php/editortexto") == false){
  38 + echo "Vc nao pode realizar essa operacao.";exit;
  39 + }
37 40 error_reporting(0);
38 41 if(verificaEditores($editores) == "nao")
39 42 {
... ...
admin/php/identifica.php
... ... @@ -39,16 +39,21 @@ O parâmetro principal é "funcao", que define qual operaç&ati
39 39 Cada operação possuí seus pr�prios parâmetros, que devem ser enviados também na requisição da operação.
40 40  
41 41 */
42   -include_once("admin.php");
  42 +include_once(__DIR__."/login.php");
  43 +$funcoesEdicao = array(
  44 + "ALTERARFUNCOES",
  45 + "EXCLUIR"
  46 +
  47 +);
  48 +if(in_array(strtoupper($funcao),$funcoesEdicao)){
  49 + if(verificaOperacaoSessao("admin/html/identifica") == false){
  50 + retornaJSON("Vc nao pode realizar essa operacao.");exit;
  51 + }
  52 +}
43 53 error_reporting(0);
44 54 //faz a busca da função que deve ser executada
45 55 switch (strtoupper($funcao))
46 56 {
47   - //verifica os editores
48   - case "VERIFICAEDITORES":
49   - retornaJSON(verificaEditores($editores));
50   - exit;
51   - break;
52 57 /*
53 58 Note:
54 59  
... ... @@ -96,10 +101,6 @@ switch (strtoupper($funcao))
96 101 {JSON}
97 102 */
98 103 case "ALTERARFUNCOES":
99   - if(verificaEditores($editores) == "nao")
100   - {
101   - echo "Vc nao e um editor cadastrado. Apenas os editores definidos em i3geo/ms_configura.php podem acessar o sistema de administracao.";exit;
102   - }
103 104 $novo = alterarFuncoes();
104 105 $sql = "SELECT * from ".$esquemaadmin."i3geoadmin_identifica WHERE id_i = '".$novo."'";
105 106 retornaJSON(pegaDados($sql));
... ... @@ -119,22 +120,9 @@ switch (strtoupper($funcao))
119 120 {JSON}
120 121 */
121 122 case "EXCLUIR":
122   - if(verificaEditores($editores) == "nao")
123   - {
124   - echo "Vc nao e um editor cadastrado. Apenas os editores definidos em i3geo/ms_configura.php podem acessar o sistema de administracao.";exit;
125   - }
126 123 retornaJSON(excluirFuncoes());
127 124 exit;
128 125 break;
129   -
130   - case "IMPORTARXMLI":
131   - if(verificaEditores($editores) == "nao")
132   - {
133   - echo "Vc nao e um editor cadastrado. Apenas os editores definidos em i3geo/ms_configura.php podem acessar o sistema de administracao.";exit;
134   - }
135   - retornaJSON(importarXmlI());
136   - exit;;
137   - break;
138 126 }
139 127 /*
140 128 Altera o registro de um WS
... ...
admin/php/incluiMAP.php
... ... @@ -33,11 +33,20 @@ Arquivo:
33 33 i3geo/admin/php/incluiMAP.php
34 34 */
35 35  
  36 +$funcao = "";
  37 +$locaplic = __DIR__."/../..";
36 38 include_once("admin.php");
37   -error_reporting(0);
38   -if(verificaEditores($editores) == "nao")
39   -{
40   - echo "Vc nao e um editor cadastrado. Apenas os editores definidos em i3geo/ms_configura.php podem acessar o sistema de administracao.";exit;
  39 +include_once("conexao.php");
  40 +if(empty($_POST["senha"]) || empty($_POST["usuario"])){
  41 + formularioLoginMaster("incluiMAP.php");
  42 + exit;
  43 +}
  44 +else{
  45 + $continua = verificaMaster($_POST["usuario"],$_POST["senha"],$i3geomaster);
  46 + if($continua == false){
  47 + echo "Usuário não registrado em i3geo/ms_configura.php na variável i3geomaster";
  48 + exit;
  49 + }
41 50 }
42 51  
43 52 $arquivos = array();
... ...
admin/php/login.php
... ... @@ -58,7 +58,7 @@ cp.set_response_type("JSON")
58 58 cp.call(p,"lente",ajaxabrelente)
59 59  
60 60 */
61   -error_reporting(E_ALL);
  61 +error_reporting(0);
62 62 //
63 63 //pega as variaveis passadas com get ou post
64 64 //
... ... @@ -66,6 +66,7 @@ error_reporting(E_ALL);
66 66 * TODO documentar o sistema de login
67 67 */
68 68 include_once(__DIR__."/../../classesphp/pega_variaveis.php");
  69 +include_once(__DIR__."/admin.php");
69 70 session_write_close();
70 71 session_name("i3GeoLogin");
71 72 //se o usuario estiver tentando fazer login
... ... @@ -87,6 +88,7 @@ else{//se nao, verifica se o login ja existe realmente
87 88 $retorno = "erro";
88 89 }
89 90 }
  91 +//var_dump($_SESSION);exit;
90 92 $retorno = "logout"; //string que será retornada ao browser via JSON
91 93 switch (strtoupper($funcao))
92 94 {
... ... @@ -97,7 +99,6 @@ switch (strtoupper($funcao))
97 99  
98 100 */
99 101 case "LOGIN":
100   - include_once(__DIR__."/admin.php");
101 102 $teste = autenticaUsuario($usuario,$senha);
102 103 if($teste != false){
103 104 $_SESSION["usuario"] = $usuario;
... ... @@ -162,7 +163,7 @@ function verificaOperacaoSessao($operacao){
162 163 //verifica se e administrador
163 164 if(validaSessao()){
164 165 foreach($_SESSION["papeis"] as $p){
165   - if($p["id_papel"] == 1){
  166 + if($p == 1){
166 167 return true;
167 168 }
168 169 }
... ... @@ -177,7 +178,7 @@ function validaSessao(){
177 178 if($_SESSION['fingerprint'] != md5($fingerprint . session_id())){
178 179 return false;
179 180 }
180   - if($_SESSION["usuario"] != $_COOKIE["usuario"]){
  181 + if($_SESSION["usuario"] != $_COOKIE["i3geousuariologin"]){
181 182 return false;
182 183 }
183 184 return true;
... ... @@ -189,12 +190,16 @@ function autenticaUsuario($usuario,$senha){
189 190 */
190 191 $dados = pegaDados("select * from ".$esquemaadmin."i3GEOadmin_usuarios where login = '$usuario' and senha = '$senha' and ativo = 1",$locaplic);
191 192 if(count($dados) > 0){
192   - $papeis = pegaDados("select * from ".$esquemaadmin."i3geoadmin_papelusuario where id_usuario = ".$dados[0]["id_usuario"],$locaplic);
  193 + $pa = pegaDados("select * from ".$esquemaadmin."i3geoadmin_papelusuario where id_usuario = ".$dados[0]["id_usuario"],$locaplic);
193 194 $op = pegadados("SELECT O.codigo, PU.id_usuario FROM ".$esquemaadmin."i3geoadmin_operacoes AS O JOIN ".$esquemaadmin."i3geoadmin_operacoespapeis AS OP ON O.id_operacao = OP.id_operacao JOIN ".$esquemaadmin."i3geoadmin_papelusuario AS PU ON OP.id_papel = PU.id_papel WHERE id_usuario = ".$dados[0]["id_usuario"],$locaplic);
194 195 $operacoes = array();
195 196 foreach($op as $o){
196 197 $operacoes[$o["codigo"]] = true;
197 198 }
  199 + $papeis = array();
  200 + foreach($pa as $p){
  201 + $papeis[] = $p["id_papel"];
  202 + }
198 203 $r = array("usuario"=>$dados[0],"papeis"=>$papeis,"operacoes"=>$operacoes);
199 204 return $r;
200 205 }
... ...
admin/php/mapas.php
... ... @@ -39,7 +39,16 @@ O parâmetro principal é "funcao", que define qual operaç&ati
39 39 Cada operação possuí seus próprios parâmetros, que devem ser enviados também na requisição da operação.
40 40  
41 41 */
42   -include_once("admin.php");
  42 +include_once(__DIR__."/login.php");
  43 +$funcoesEdicao = array(
  44 + "ALTERARMAPA",
  45 + "EXCLUIRMAPA"
  46 +);
  47 +if(in_array(strtoupper($funcao),$funcoesEdicao)){
  48 + if(verificaOperacaoSessao("admin/html/mapas") == false){
  49 + retornaJSON("Vc nao pode realizar essa operacao.");exit;
  50 + }
  51 +}
43 52 error_reporting(0);
44 53 //faz a busca da função que deve ser executada
45 54 switch (strtoupper($funcao))
... ... @@ -116,10 +125,6 @@ switch (strtoupper($funcao))
116 125 {JSON}
117 126 */
118 127 case "ALTERARMAPA":
119   - if(verificaEditores($editores) == "nao")
120   - {
121   - echo "Vc nao e um editor cadastrado. Apenas os editores definidos em i3geo/ms_configura.php podem acessar o sistema de administracao.";exit;
122   - }
123 128 $novo = alterarMapa();
124 129 $sql = "SELECT * from ".$esquemaadmin."i3geoadmin_mapas WHERE id_mapa = '".$novo."'";
125 130 retornaJSON(pegaDados($sql));
... ... @@ -139,22 +144,9 @@ switch (strtoupper($funcao))
139 144 {JSON}
140 145 */
141 146 case "EXCLUIRMAPA":
142   - if(verificaEditores($editores) == "nao")
143   - {
144   - echo "Vc nao e um editor cadastrado. Apenas os editores definidos em i3geo/ms_configura.php podem acessar o sistema de administracao.";exit;
145   - }
146 147 retornaJSON(excluirMapa());
147 148 exit;
148 149 break;
149   -
150   - case "IMPORTARXMLMAPAS":
151   - if(verificaEditores($editores) == "nao")
152   - {
153   - echo "Vc nao e um editor cadastrado. Apenas os editores definidos em i3geo/ms_configura.php podem acessar o sistema de administracao.";exit;
154   - }
155   - retornaJSON(importarXmlMapas());
156   - exit;
157   - break;
158 150 }
159 151 /*
160 152 Altera o registro de um mapa
... ...
admin/php/ogcws.php
... ... @@ -37,9 +37,10 @@ O parâmetro principal é "funcao", que define qual operaç&ati
37 37 Cada operação possuí seus próprios parâmetros, que devem ser enviados também na requisição da operação.
38 38  
39 39 */
40   -include_once("admin.php");
41   -if(verificaEditores($editores) == "nao")
42   -{echo "Vc nao e um editor cadastrado. Apenas os editores definidos em i3geo/ms_configura.php podem acessar o sistema de administracao.";exit;}
  40 +include_once(__DIR__."/login.php");
  41 +if(verificaOperacaoSessao("admin/html/ogcws") == false){
  42 + retornaJSON("Vc nao pode realizar essa operacao.");exit;
  43 +}
43 44 //error_reporting(E_ALL);
44 45 $versao = versao();
45 46 $map_file = $locaplic."/aplicmap/ogcwsv".$versao["principal"].".map";
... ... @@ -51,16 +52,16 @@ switch (strtoupper($funcao))
51 52 {
52 53 /*
53 54 Note:
54   -
  55 +
55 56 Valores que o parâmetro &funcao pode receber. Os parâmetros devem ser enviados na requisição em AJAX.
56 57 */
57 58 /*
58 59 Valor: PEGAPARAMETROSCONFIGURA
59   -
  60 +
60 61 Lista os valores atuais das variáveis registradas no ms_configura
61   -
  62 +
62 63 Retorno:
63   -
  64 +
64 65 {JSON}
65 66 */
66 67 case "PEGAPARAMETROSCONFIGURA":
... ... @@ -79,7 +80,7 @@ switch (strtoupper($funcao))
79 80 "ows_postcode",
80 81 "ows_country",
81 82 "ows_contactelectronicmailaddress",
82   - "ows_name"
  83 + "ows_name"
83 84 );
84 85 $par = array();
85 86 foreach ($vs as $v)
... ... @@ -92,7 +93,7 @@ switch (strtoupper($funcao))
92 93 break;
93 94 /*
94 95 Valor: SALVACONFIGURA
95   -
  96 +
96 97 Salva um novo valor de uma variável no ms_configura.php
97 98  
98 99 Parameters:
... ... @@ -100,9 +101,9 @@ switch (strtoupper($funcao))
100 101 variavel - nome da variável
101 102  
102 103 valor - novo valor
103   -
  104 +
104 105 Retorno:
105   -
  106 +
106 107 {JSON}
107 108 */
108 109 case "SALVACONFIGURA":
... ...
admin/php/sistemas.php
... ... @@ -38,23 +38,34 @@ O parâmetro principal é "funcao", que define qual operaç&ati
38 38  
39 39 Cada operação possuí seus próprios parâmetros, que devem ser enviados também na requisição da operação.
40 40 */
41   -include_once("admin.php");
  41 +include_once(__DIR__."/login.php");
  42 +$funcoesEdicao = array(
  43 + "ALTERARSISTEMAS",
  44 + "ALTERARFUNCOES",
  45 + "EXCLUIRSISTEMA",
  46 + "EXCLUIRFUNCAO"
  47 +);
  48 +if(in_array(strtoupper($funcao),$funcoesEdicao)){
  49 + if(verificaOperacaoSessao("admin/html/sistemas") == false){
  50 + retornaJSON("Vc nao pode realizar essa operacao.");exit;
  51 + }
  52 +}
42 53 error_reporting(0);
43 54 //faz a busca da função que deve ser executada
44 55 switch (strtoupper($funcao))
45 56 {
46 57 /*
47 58 Note:
48   -
  59 +
49 60 Valores que o parâmetro &funcao pode receber. Os parâmetros devem ser enviados na requisição em AJAX.
50 61 */
51 62 /*
52 63 Valor: PEGASISTEMAS
53   -
  64 +
54 65 Lista de sistemas
55   -
  66 +
56 67 Retorno:
57   -
  68 +
58 69 {JSON}
59 70 */
60 71 case "PEGASISTEMAS":
... ... @@ -63,15 +74,15 @@ switch (strtoupper($funcao))
63 74 break;
64 75 /*
65 76 Valor: PEGASISTEMA
66   -
  77 +
67 78 Dados de um sistemas
68   -
  79 +
69 80 Parametro:
70   -
  81 +
71 82 id_sistema
72   -
  83 +
73 84 Retorno:
74   -
  85 +
75 86 {JSON}
76 87 */
77 88 case "PEGASISTEMA":
... ... @@ -80,57 +91,57 @@ switch (strtoupper($funcao))
80 91 break;
81 92 /*
82 93 Valor: PEGAFUNCOES
83   -
  94 +
84 95 Lista de funções de um sistema
85   -
  96 +
86 97 Parametro:
87   -
  98 +
88 99 id_sistema
89   -
  100 +
90 101 Retorno:
91   -
  102 +
92 103 {JSON}
93 104 */
94   - case "PEGAFUNCOES":
  105 + case "PEGAFUNCOES":
95 106 retornaJSON(pegaDados("SELECT * from ".$esquemaadmin."i3geoadmin_sistemasf where id_sistema ='$id_sistema'"));
96 107 exit;
97 108 break;
98 109 /*
99 110 Valor: PEGAFUNCAO
100   -
  111 +
101 112 Pega os dados de uma função específica
102   -
  113 +
103 114 Parametro:
104   -
  115 +
105 116 id_funcao
106   -
  117 +
107 118 Retorno:
108   -
  119 +
109 120 {JSON}
110 121 */
111   - case "PEGAFUNCAO":
  122 + case "PEGAFUNCAO":
112 123 retornaJSON(pegaDados("SELECT * from ".$esquemaadmin."i3geoadmin_sistemasf where id_funcao ='$id_funcao'"));
113 124 exit;
114 125 break;
115 126 /*
116 127 Valor: ALTERARSISTEMAS
117   -
  128 +
118 129 Altera os dados de um sistema
119   -
  130 +
120 131 Parametros:
121   -
  132 +
122 133 id_sistema
123   -
  134 +
124 135 perfil_sistema
125   -
  136 +
126 137 nome_sistema
127   -
  138 +
128 139 publicado_sistema
129   -
  140 +
130 141 Retorno:
131   -
  142 +
132 143 {JSON}
133   - */
  144 + */
134 145 case "ALTERARSISTEMAS":
135 146 if(verificaEditores($editores) == "nao")
136 147 {echo "Vc nao e um editor cadastrado. Apenas os editores definidos em i3geo/ms_configura.php podem acessar o sistema de administracao.";exit;}
... ... @@ -141,27 +152,27 @@ switch (strtoupper($funcao))
141 152 break;
142 153 /*
143 154 Valor: ALTERARFUNCOES
144   -
  155 +
145 156 Altera os dados de uma função
146   -
  157 +
147 158 Parametros:
148   -
  159 +
149 160 id_sistema
150   -
  161 +
151 162 id_funcao
152   -
  163 +
153 164 perfil_funcao
154   -
  165 +
155 166 nome_funcao
156   -
  167 +
157 168 w_funcao
158   -
  169 +
159 170 h_funcao
160   -
  171 +
161 172 abrir_funcao
162   -
  173 +
163 174 Retorno:
164   -
  175 +
165 176 {JSON}
166 177 */
167 178 case "ALTERARFUNCOES":
... ... @@ -174,17 +185,17 @@ switch (strtoupper($funcao))
174 185 break;
175 186 /*
176 187 Valor: EXCLUIRSISTEMA
177   -
  188 +
178 189 Exclui um sistema
179   -
  190 +
180 191 Parametros:
181   -
  192 +
182 193 id
183   -
  194 +
184 195 Retorno:
185   -
  196 +
186 197 {JSON}
187   - */
  198 + */
188 199 case "EXCLUIRSISTEMA":
189 200 if(verificaEditores($editores) == "nao")
190 201 {echo "Vc nao e um editor cadastrado. Apenas os editores definidos em i3geo/ms_configura.php podem acessar o sistema de administracao.";exit;}
... ... @@ -203,30 +214,24 @@ switch (strtoupper($funcao))
203 214 break;
204 215 /*
205 216 Valor: EXCLUIRFUNCAO
206   -
  217 +
207 218 Exclui uma função
208   -
  219 +
209 220 Parametros:
210   -
  221 +
211 222 id
212   -
  223 +
213 224 Retorno:
214   -
  225 +
215 226 {JSON}
216   - */
  227 + */
217 228 case "EXCLUIRFUNCAO":
218 229 if(verificaEditores($editores) == "nao")
219 230 {echo "Vc nao e um editor cadastrado. Apenas os editores definidos em i3geo/ms_configura.php podem acessar o sistema de administracao.";exit;}
220 231 retornaJSON(excluirFuncoes());
221 232 exit;
222 233 break;
223   -
224   - case "IMPORTARXMLSISTEMAS":
225   - if(verificaEditores($editores) == "nao")
226   - {echo "Vc nao e um editor cadastrado. Apenas os editores definidos em i3geo/ms_configura.php podem acessar o sistema de administracao.";exit;}
227   - retornaJSON(importarXmlSistemas());
228   - exit;
229   - break;
  234 +
230 235 }
231 236 /*
232 237 Altera o registro de um WS
... ... @@ -234,7 +239,7 @@ Altera o registro de um WS
234 239 function alterarSistemas()
235 240 {
236 241 global $esquemaadmin,$id_sistema,$perfil_sistema,$nome_sistema,$publicado_sistema;
237   - try
  242 + try
238 243 {
239 244 require_once("conexao.php");
240 245 if($convUTF)
... ... @@ -254,7 +259,7 @@ function alterarSistemas()
254 259 $id = $id->fetchAll();
255 260 $id = $id[0]['id_sistema'];
256 261 $dbhw->query("UPDATE ".$esquemaadmin."i3geoadmin_sistemas SET nome_sistema = '' WHERE id_sistema = $id AND nome_sistema = '$idtemp'");
257   - $retorna = $id;
  262 + $retorna = $id;
258 263 }
259 264 $dbhw = null;
260 265 $dbh = null;
... ... @@ -268,7 +273,7 @@ function alterarSistemas()
268 273 function alterarFuncoes()
269 274 {
270 275 global $esquemaadmin,$id_sistema,$id_funcao,$perfil_funcao,$nome_funcao,$w_funcao,$h_funcao,$abrir_funcao;
271   - try
  276 + try
272 277 {
273 278 require_once("conexao.php");
274 279 if($convUTF)
... ... @@ -288,7 +293,7 @@ function alterarFuncoes()
288 293 $id = $id->fetchAll();
289 294 $id = $id[0]['id_funcao'];
290 295 $dbhw->query("UPDATE ".$esquemaadmin."i3geoadmin_sistemasf SET nome_funcao = '' WHERE id_funcao = $id AND nome_funcao = '$idtemp'");
291   - $retorna = $id;
  296 + $retorna = $id;
292 297 }
293 298 $dbhw = null;
294 299 $dbh = null;
... ... @@ -302,7 +307,7 @@ function alterarFuncoes()
302 307 function excluirFuncoes()
303 308 {
304 309 global $id,$esquemaadmin;
305   - try
  310 + try
306 311 {
307 312 include("conexao.php");
308 313 $dbhw->query("DELETE from ".$esquemaadmin."i3geoadmin_sistemasf WHERE id_funcao = $id");
... ... @@ -318,7 +323,7 @@ function excluirFuncoes()
318 323 function excluirSistemas()
319 324 {
320 325 global $id,$esquemaadmin;
321   - try
  326 + try
322 327 {
323 328 include("conexao.php");
324 329 $dbhw->query("DELETE from ".$esquemaadmin."i3geoadmin_sistemas WHERE id_sistema = $id");
... ... @@ -372,7 +377,7 @@ function importarXmlSistemas()
372 377 $w_funcao = ixml($funcao,"JANELAW");
373 378 $h_funcao = ixml($funcao,"JANELAH");
374 379 $perfil_funcao = ixml($funcao,"PERFIL");
375   - $dbhw->query("INSERT INTO ".$esquemaadmin."i3geoadmin_sistemasf (nome_funcao,abrir_funcao,perfil_funcao,w_funcao,h_funcao,id_sistema) VALUES ('$nome_funcao','$abrir_funcao','$perfil_funcao','$w_funcao','$h_funcao','$id_sistema')");
  380 + $dbhw->query("INSERT INTO ".$esquemaadmin."i3geoadmin_sistemasf (nome_funcao,abrir_funcao,perfil_funcao,w_funcao,h_funcao,id_sistema) VALUES ('$nome_funcao','$abrir_funcao','$perfil_funcao','$w_funcao','$h_funcao','$id_sistema')");
376 381 }
377 382 }
378 383 $dbhw = null;
... ...
admin/php/webservices.php
... ... @@ -44,23 +44,32 @@ error_reporting(0);
44 44 //não sei pq mas ob_start e clean são necessários no Linux para não gerar erro indesejado
45 45 //
46 46 ob_start();
47   -include_once("admin.php");
  47 +include_once(__DIR__."/login.php");
  48 +$funcoesEdicao = array(
  49 + "ALTERARWS",
  50 + "EXCLUIR"
  51 +);
  52 +if(in_array(strtoupper($funcao),$funcoesEdicao)){
  53 + if(verificaOperacaoSessao("admin/html/webservices") == false){
  54 + retornaJSON("Vc nao pode realizar essa operacao.");exit;
  55 + }
  56 +}
48 57 ob_clean();
49 58 //faz a busca da função que deve ser executada
50 59 switch (strtoupper($funcao))
51 60 {
52 61 /*
53 62 Note:
54   -
  63 +
55 64 Valores que o parâmetro &funcao pode receber. Os parâmetros devem ser enviados na requisição em AJAX.
56 65 */
57 66 /*
58 67 Valor: PEGAWS
59   -
  68 +
60 69 Lista de serviços cadastrados
61   -
  70 +
62 71 Retorno:
63   -
  72 +
64 73 {JSON}
65 74 */
66 75 case "PEGAWS":
... ... @@ -73,44 +82,44 @@ switch (strtoupper($funcao))
73 82 break;
74 83 /*
75 84 Valor: PEGADADOS
76   -
  85 +
77 86 Dados de um servico
78   -
  87 +
79 88 Parametro:
80   -
  89 +
81 90 id_ws {string}
82   -
  91 +
83 92 Retorno:
84   -
  93 +
85 94 {JSON}
86   - */
  95 + */
87 96 case "PEGADADOS":
88 97 retornaJSON(pegaDados("SELECT * from ".$esquemaadmin."i3geoadmin_ws where id_ws='$id_ws'"));
89 98 exit;
90 99 break;
91 100 /*
92 101 Valor: ALTERARWS
93   -
  102 +
94 103 Altera um registro
95   -
  104 +
96 105 Parametros:
97   -
  106 +
98 107 id_ws
99   -
  108 +
100 109 desc_ws
101   -
  110 +
102 111 nome_ws
103   -
  112 +
104 113 link_ws
105   -
  114 +
106 115 autor_ws
107   -
  116 +
108 117 tipo_ws
109   -
  118 +
110 119 Retorno:
111   -
  120 +
112 121 {JSON}
113   - */
  122 + */
114 123 case "ALTERARWS":
115 124 if(verificaEditores($editores) == "nao")
116 125 {echo "Vc nao e um editor cadastrado. Apenas os editores definidos em i3geo/ms_configura.php podem acessar o sistema de administracao.";exit;}
... ... @@ -121,30 +130,24 @@ switch (strtoupper($funcao))
121 130 break;
122 131 /*
123 132 Valor: EXCLUIR
124   -
  133 +
125 134 Exclui um registro
126   -
  135 +
127 136 Parametro:
128   -
  137 +
129 138 id {string}
130   -
  139 +
131 140 Retorno:
132   -
  141 +
133 142 {JSON}
134   - */
  143 + */
135 144 case "EXCLUIR":
136 145 if(verificaEditores($editores) == "nao")
137 146 {echo "Vc nao e um editor cadastrado. Apenas os editores definidos em i3geo/ms_configura.php podem acessar o sistema de administracao.";exit;}
138 147 retornaJSON(excluirWS());
139 148 exit;
140 149 break;
141   -
142   - case "IMPORTARXMLWS":
143   - if(verificaEditores($editores) == "nao")
144   - {echo "Vc nao e um editor cadastrado. Apenas os editores definidos em i3geo/ms_configura.php podem acessar o sistema de administracao.";exit;}
145   - retornaJSON(importarXmlWS());
146   - exit;
147   - break;
  150 +
148 151 }
149 152 /*
150 153 Altera o registro de um WS
... ... @@ -152,7 +155,7 @@ Altera o registro de um WS
152 155 function alterarWS()
153 156 {
154 157 global $esquemaadmin,$id_ws,$desc_ws,$nome_ws,$link_ws,$autor_ws,$tipo_ws;
155   - try
  158 + try
156 159 {
157 160 require_once("conexao.php");
158 161 if($convUTF)
... ... @@ -188,7 +191,7 @@ function alterarWS()
188 191 function excluirWS()
189 192 {
190 193 global $id,$esquemaadmin;
191   - try
  194 + try
192 195 {
193 196 include("conexao.php");
194 197 $dbhw->query("DELETE from ".$esquemaadmin."i3geoadmin_ws WHERE id_ws = $id");
... ... @@ -212,12 +215,12 @@ function adicionaAcesso($id_ws,$sucesso)
212 215 if(count($dados) == 0){return;};
213 216 if($dados[0]["nacessos"] == ""){$dados[0]["nacessos"] = 0;}
214 217 $acessos = $dados[0]["nacessos"] + 1;
215   -
  218 +
216 219 if($sucesso)
217 220 $ok = $dados[0]["nacessosok"] + 1;
218 221 else
219 222 $ok = $dados[0]["nacessosok"];
220   -
  223 +
221 224 if($ok == ""){$ok = 0;}
222 225 $dbhw->query("UPDATE ".$esquemaadmin."i3geoadmin_ws SET nacessos = '$acessos',nacessosok = '$ok' WHERE id_ws = $id_ws");
223 226 $dbhw = null;
... ...
admin/sql/usuarios_papeis.sql
1 1 SELECT i3geoadmin_usuarios."id_usuario", i3geoadmin_usuarios."nome_usuario",
2 2 i3geoadmin_usuarios."data_cadastro", i3geoadmin_usuarios."email", i3geoadmin_papeis.id_papel
3 3 FROM
4   - i3geoadmin_usuarios JOIN i3geoadmin_papelusuario ON
5   - i3geoadmin_usuarios."id_usuario" = i3geoadmin_papelusuario."id_usuario"
  4 + i3geoadmin_usuarios JOIN i3geoadmin_papelusuario ON
  5 + i3geoadmin_usuarios."id_usuario" = i3geoadmin_papelusuario."id_usuario"
6 6 JOIN i3geoadmin_papeis ON i3geoadmin_papelusuario."id_papel" = i3geoadmin_papeis."id_papel"
... ...
classesjs/classe_arvoredecamadas.js
... ... @@ -50,12 +50,12 @@ i3GEO.arvoreDeCamadas = {
50 50 Propriedade: BARRAPROGRESSO
51 51  
52 52 Mostra uma barra com o progresso do desenho das camadas do mapa
53   -
  53 +
54 54 Não funciona em todas as interfaces
55 55  
56 56 Default:
57 57 {true}
58   -
  58 +
59 59 Type:
60 60 {boolean}
61 61 */
... ... @@ -67,7 +67,7 @@ i3GEO.arvoreDeCamadas = {
67 67  
68 68 Default:
69 69 {true}
70   -
  70 +
71 71 Type:
72 72 {boolean}
73 73 */
... ... @@ -79,7 +79,7 @@ i3GEO.arvoreDeCamadas = {
79 79  
80 80 Default:
81 81 {""}
82   -
  82 +
83 83 Type:
84 84 {string} - ligados|desligados|selecionados|download|wms|raster|toponimia
85 85 */
... ... @@ -93,7 +93,7 @@ i3GEO.arvoreDeCamadas = {
93 93  
94 94 Default:
95 95 {true}
96   -
  96 +
97 97 Type:
98 98 {boolean}
99 99 */
... ... @@ -105,7 +105,7 @@ i3GEO.arvoreDeCamadas = {
105 105  
106 106 Default:
107 107 {""}
108   -
  108 +
109 109 Type:
110 110 {String}
111 111 */
... ... @@ -160,22 +160,22 @@ i3GEO.arvoreDeCamadas = {
160 160 ARRASTARLIXEIRA: true,
161 161 /*
162 162 Propriedade: ALTERAOPACIDADE
163   -
  163 +
164 164 Mostra ou não a opção que permite alterar a transparência das camadas existentes no mapa
165   -
  165 +
166 166 Type:
167 167 {boolean}
168 168 */
169 169 ALTERAOPACIDADE: true,
170 170 /*
171 171 Propriedade: ANIMAMAPA
172   -
  172 +
173 173 Mostra ou não a opção que permite gerar uma animação do mapa, ligando e desligando camadas
174   -
  174 +
175 175 Type:
176 176 {boolean}
177 177 */
178   - ANIMAMAPA: true,
  178 + ANIMAMAPA: true,
179 179 /*
180 180 Propriedade: LIGARDESLIGARTODOS
181 181  
... ... @@ -302,10 +302,10 @@ i3GEO.arvoreDeCamadas = {
302 302 Propriedade: FUNCOES
303 303  
304 304 Indicação de quais funções serão incluídas em cada tema mostrado na árvore quando o usuário aciona o item "opções"
305   -
  305 +
306 306 Além de definir o item como false ou true, algumas funções apenas são mostradas em conformidade com o tipo de camada.
307 307 No sistema de administração, pode-se também controlar algumas das funções, como por exemplo "sql", "wms" e "temporizador"
308   -
  308 +
309 309 Exemplo de como alterar um valor diretamente no javascript da interface do mapa i3GEO.arvoreDeCamadas.FUNCOES.excluir = false
310 310  
311 311 */
... ... @@ -339,7 +339,7 @@ i3GEO.arvoreDeCamadas = {
339 339  
340 340 Objeto com a lista de camadas existentes no mapa. É definido na inicialização ou no redesenho do mapa.
341 341  
342   - Este objeto é construído nas operações em PHP de inicialização ou redesenho do mapa e lista todos os
  342 + Este objeto é construído nas operações em PHP de inicialização ou redesenho do mapa e lista todos os
343 343 layers existentes no mapfile temporário em uso.
344 344  
345 345 Exemplo:
... ... @@ -396,7 +396,7 @@ i3GEO.arvoreDeCamadas = {
396 396 Tipo:
397 397 {OBJETO}
398 398 */
399   - CAMADASINICIAIS: "",
  399 + CAMADASINICIAIS: "",
400 400 /*
401 401 Variavel: ARVORE
402 402  
... ... @@ -485,7 +485,7 @@ i3GEO.arvoreDeCamadas = {
485 485 width: 150,
486 486 minValue: 1,
487 487 maxValue: 0,
488   - value: 0
  488 + value: 0
489 489 }).render("i3GEOprogressoDiv");
490 490 }
491 491 }
... ... @@ -516,7 +516,7 @@ i3GEO.arvoreDeCamadas = {
516 516 Parametro:
517 517  
518 518 temas {JSON} - Objeto com a lista de camadas e propriedades (veja CAMADAS). Se não existir, a árvore é redesenhada
519   -
  519 +
520 520 forca {boolean} - força a atualização da árvore, sem verificar automaticamente se a atualização deve ou não ser feita
521 521 */
522 522 atualiza: function(temas,forca){
... ... @@ -626,7 +626,7 @@ i3GEO.arvoreDeCamadas = {
626 626 if(grupoLayers[i].expandido && grupoLayers[i].expandido === true)
627 627 {d = true;}
628 628 n = grupoLayers[i].layers.length;
629   -
  629 +
630 630 //layers de um grupo
631 631 for(j=0;j<n; j += 1){
632 632 //busca na lista de temas
... ... @@ -697,11 +697,11 @@ i3GEO.arvoreDeCamadas = {
697 697 },
698 698 /*
699 699 Function: montaOpcoesArvore
700   -
  700 +
701 701 Monta os &iacute;cones de op&ccedil;&otilde;es gerais da &aacute;rvore, como a lixira, ligar todos, etc.
702   -
  702 +
703 703 Return:
704   -
  704 +
705 705 {string} - html contendo os &iacute;cones
706 706 */
707 707 montaOpcoesArvore: function(){
... ... @@ -709,7 +709,7 @@ i3GEO.arvoreDeCamadas = {
709 709 imb = i3GEO.util.$im("branco.gif"),
710 710 estilo = function(i){
711 711 return " onmouseout='javascript:this.className = \""+i+" iconeMini iconeGuiaMovelMouseOut\";' onmouseover='javascript:this.className = \""+i+" iconeMini iconeGuiaMovelMouseOver\";' class='"+i+" iconeMini iconeGuiaMovelMouseOut' src='"+imb+"' style='cursor:pointer;text-align:left' ";
712   - };
  712 + };
713 713 if(this.ARRASTARLIXEIRA === true)
714 714 {ins += "<img "+estilo("i3geo_lixeira")+" onclick='i3GEO.arvoreDeCamadas.dialogo.excluir();' id='i3geo_lixeira' title='"+$trad("t2")+"' />";}
715 715 if(this.FILTRAR === true)
... ... @@ -761,7 +761,7 @@ i3GEO.arvoreDeCamadas = {
761 761 Event = YAHOO.util.Event;
762 762 YAHOO.example.DDList = "";
763 763 YAHOO.example.DDApp = {
764   - init: function()
  764 + init: function()
765 765 {
766 766 var i,ltema;
767 767 if($i("i3geo_lixeira") && i3GEO.arvoreDeCamadas.ARRASTARLIXEIRA === true)
... ... @@ -782,13 +782,13 @@ i3GEO.arvoreDeCamadas = {
782 782 this.logger = this.logger || YAHOO;
783 783 YAHOO.util.Dom.setStyle(this.getDragEl(), "opacity", 0.67); // The proxy is slightly transparent
784 784 this.goingUp = false;
785   - this.lastY = 0;
  785 + this.lastY = 0;
786 786 };
787 787 YAHOO.extend(
788 788 YAHOO.example.DDList, YAHOO.util.DDProxy, {
789 789 startDrag: function(x, y){
790 790 var dragEl,clickEl,
791   - Dom = YAHOO.util.Dom;
  791 + Dom = YAHOO.util.Dom;
792 792 this.logger.log(this.id + " startDrag");
793 793 // make the proxy look like the source element
794 794 dragEl = this.getDragEl();
... ... @@ -798,7 +798,7 @@ i3GEO.arvoreDeCamadas = {
798 798 Dom.setStyle(dragEl, "color", Dom.getStyle(clickEl, "color"));
799 799 Dom.setStyle(dragEl, "backgroundColor", Dom.getStyle(clickEl, "backgroundColor"));
800 800 Dom.setStyle(dragEl, "border", "4px solid gray");
801   - Dom.setStyle(dragEl, "z-index", "5000");
  801 + Dom.setStyle(dragEl, "z-index", "5000");
802 802 },
803 803 endDrag: function(e){
804 804 var srcEl,proxy,a,thisid,proxyid;
... ... @@ -806,12 +806,12 @@ i3GEO.arvoreDeCamadas = {
806 806 proxy = this.getDragEl();
807 807 // Show the proxy element and animate it to the src element's location
808 808 Dom.setStyle(proxy, "visibility", "");
809   - a = new YAHOO.util.Motion(
810   - proxy,{
  809 + a = new YAHOO.util.Motion(
  810 + proxy,{
811 811 points:
812 812 {to: Dom.getXY(srcEl)}
813   - },
814   - 0.2,
  813 + },
  814 + 0.2,
815 815 YAHOO.util.Easing.easeOut
816 816 );
817 817 proxyid = proxy.id;
... ... @@ -832,8 +832,8 @@ i3GEO.arvoreDeCamadas = {
832 832 DDM = YAHOO.util.DragDropMgr,
833 833 Dom = YAHOO.util.Dom;
834 834 if (DDM.interactionInfo.drop.length === 1){
835   - pt = DDM.interactionInfo.point;
836   - region = DDM.interactionInfo.sourceRegion;
  835 + pt = DDM.interactionInfo.point;
  836 + region = DDM.interactionInfo.sourceRegion;
837 837 if (!region.intersect(pt)){
838 838 DDM.refreshCache();
839 839 //exclui tema
... ... @@ -848,7 +848,7 @@ i3GEO.arvoreDeCamadas = {
848 848 else{
849 849 if(i3GEO.arvoreDeCamadas.ARRASTARORDEM === true){
850 850 destEl = Dom.get(id);
851   - destEl.appendChild(this.getEl());
  851 + destEl.appendChild(this.getEl());
852 852 els = i3GEO.arvoreDeCamadas.listaLigadosDesligados();
853 853 lista = els[2].join(",");
854 854 temp = function(retorno){
... ... @@ -866,7 +866,7 @@ i3GEO.arvoreDeCamadas = {
866 866 // Keep track of the direction of the drag for use during onDragOver
867 867 var y;
868 868 y = Event.getPageY(e);
869   - if (y < this.lastY)
  869 + if (y < this.lastY)
870 870 {this.goingUp = true;}
871 871 else
872 872 if (y > this.lastY)
... ... @@ -944,7 +944,7 @@ i3GEO.arvoreDeCamadas = {
944 944 new YAHOO.widget.HTMLNode({html:tnome,enableHighlight: false,isLeaf:true,expanded:false}, node);
945 945 if(funcoes.compartilhar === true && ltema.permitecomentario.toLowerCase() !== "nao")
946 946 {
947   - temp = i3GEO.configura.locaplic+"/ms_criamapa.php?layers="+ltema.name+"&amp;temasa="+ltema.name;
  947 + temp = i3GEO.configura.locaplic+"/ms_criamapa.php?layers="+ltema.name+"&amp;temasa="+ltema.name;
948 948 tnome = i3GEO.social.compartilhar("",temp,temp,"semtotal");
949 949 iconesNode = new YAHOO.widget.HTMLNode({html:tnome,enableHighlight:false,isLeaf:true,expanded:false},node);
950 950 }
... ... @@ -1027,10 +1027,10 @@ i3GEO.arvoreDeCamadas = {
1027 1027 if(funcoes.wms === true && ltema.permiteogc.toLowerCase() !== "nao"){
1028 1028 i3GEO.arvoreDeCamadas.adicionaOpcaoTema("Getcapabilities",'WMS-OGC','i3GEO.tema.dialogo.mostraWms(\"'+ltema.name+'\")',node);
1029 1029 }
1030   - if(i3GEO.parametros.editor.toLowerCase() === "sim")
  1030 + if(i3GEO.login.verificaCookieLogin() && i3GEO.parametros.editor.toLowerCase() === "sim")
1031 1031 {i3GEO.arvoreDeCamadas.adicionaOpcaoTema($trad("t44"),"<span style=color:red title='Apenas usu&aacute;rios editores podem ver essa op&ccedil;&atilde;o' >"+$trad("t44")+"</span>",'i3GEO.tema.dialogo.salvaMapfile(\"'+ltema.name+'\")',node);}
1032 1032 if(funcoes.tme === true)
1033   - {i3GEO.arvoreDeCamadas.adicionaOpcaoTema($trad("t49"),$trad("t49"),'i3GEO.tema.dialogo.tme(\"'+ltema.name+'\")',node);}
  1033 + {i3GEO.arvoreDeCamadas.adicionaOpcaoTema($trad("t49"),$trad("t49"),'i3GEO.tema.dialogo.tme(\"'+ltema.name+'\")',node);}
1034 1034 node.loadComplete();
1035 1035 },
1036 1036 /*
... ... @@ -1258,7 +1258,7 @@ i3GEO.arvoreDeCamadas = {
1258 1258 }
1259 1259 estilo = navm ? "text-align:left;font-size:11px;vertical-align:middle;display:table-cell;" : "text-align:left;font-size:11px;vertical-align:top;";
1260 1260 html = "<p onclick='i3GEO.mapa.ativaTema(\""+tema.name+"\")' id='arrastar_"+tema.name+"' style='"+estilo+"' >";
1261   - estilo = navm ? "cursor:pointer;vertical-align:15%;" : "cursor:pointer;";
  1261 + estilo = navm ? "cursor:pointer;vertical-align:15%;" : "cursor:pointer;";
1262 1262 html += "<input class=inputsb style='"+estilo+"' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t3")+"','ligadesliga')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" type='checkbox' name=\"layer\" value='"+tema.name+"' "+ ck ;
1263 1263 if(i3GEO.arvoreDeCamadas.ATIVATEMA !== "")
1264 1264 {html += "onclick=\""+i3GEO.arvoreDeCamadas.ATIVATEMA+"\"";}
... ... @@ -1289,11 +1289,11 @@ i3GEO.arvoreDeCamadas = {
1289 1289 else
1290 1290 {html += "&nbsp;<span id='ArvoreTituloTema"+tema.name+"' style='"+estilo+"' onmouseover=\"javascript:i3GEO.ajuda.mostraJanela('"+$trad("t7")+"','')\" onmouseout=\"javascript:i3GEO.ajuda.mostraJanela('')\" >"+tema.tema+"</span>";}
1291 1291 html += "</p>";
1292   -
  1292 +
1293 1293 if(i3GEO.tema.TEMPORIZADORESID[tema.name] == undefined && tema.temporizador != "")
1294 1294 {i3GEO.tema.temporizador(tema.name,tema.temporizador);}
1295   -
1296   -
  1295 +
  1296 +
1297 1297 return(html);
1298 1298 },
1299 1299 /*
... ... @@ -1500,7 +1500,7 @@ i3GEO.arvoreDeCamadas = {
1500 1500 var novon = novo.length,i;
1501 1501 if(novon !== atual.length)
1502 1502 {return (false);}
1503   -
  1503 +
1504 1504 for (i=0;i<novon;i += 1){
1505 1505 if(novo[i].name !== atual[i].name)
1506 1506 {return (false);}
... ... @@ -1523,7 +1523,7 @@ i3GEO.arvoreDeCamadas = {
1523 1523 Parametro:
1524 1524  
1525 1525 idtema - {String} ID do tema que ser&aacute; procurado
1526   -
  1526 +
1527 1527 camadas - {Objeto} - objeto com a lista de temas
1528 1528  
1529 1529 Return:
... ... @@ -1535,13 +1535,13 @@ i3GEO.arvoreDeCamadas = {
1535 1535 var i;
1536 1536 if(!camadas)
1537 1537 {camadas = i3GEO.arvoreDeCamadas.CAMADAS;}
1538   - i = camadas.length;
  1538 + i = camadas.length;
1539 1539 while(i > 0){
1540 1540 i -= 1;
1541 1541 if(camadas[i].name === idtema){
1542 1542 return camadas[i];
1543 1543 }
1544   - }
  1544 + }
1545 1545 return "";
1546 1546 },
1547 1547 /*
... ... @@ -1694,7 +1694,7 @@ i3GEO.arvoreDeCamadas = {
1694 1694 dialogo: {
1695 1695 /*
1696 1696 Function: abreFiltro
1697   -
  1697 +
1698 1698 Abre a janela de di&aacute;logo para o usu&aacute;rio escolher ou alterar o filtro aplicado à &aacute;rvore
1699 1699 */
1700 1700 filtro: function(){
... ... @@ -1702,7 +1702,7 @@ i3GEO.arvoreDeCamadas = {
1702 1702 },
1703 1703 /*
1704 1704 Function: excluir
1705   -
  1705 +
1706 1706 Abre a janela de di&aacute;logo para o usu&aacute;rio escolher os temas que ser&atilde;o exclu&iacute;dos da &aacute;rvore
1707 1707 */
1708 1708 excluir: function(){
... ...
classesjs/dicionario.js
... ... @@ -4,8 +4,8 @@ g_traducao = {
4 4 {
5 5 pt:"O i3Geo &eacute; software livre! Para download clique <a href='http://mapas.mma.gov.br/download' target=blank >aqui</a>. <b><a href='http://"+window.location.host+"/i3geo/mobile/qrcode.htm' target=blank >Qrcode mobile</a></b>",
6 6 en:"I3geo is a open source software! <a href='http://mapas.mma.gov.br/download' target=blank >Click</a> to download.",
7   -es:"I3Geo es software libre. <a href='http://mapas.mma.gov.br/download' target=blank > Download</a>",
8   -it:"I3geo &eacute; un software libero! <a href='http://mapas.mma.gov.br/download' target=blank >clicca qui </a> per il download."
  7 +es:"I3Geo es software libre!. <a href='http://mapas.mma.gov.br/download' target=blank > Descargar</a>",
  8 +it:"I3geo è un software libero! <a href='http://mapas.mma.gov.br/download' target=blank >clicca qui </a> per il download."
9 9 }],
10 10 //lista de propriedades do mapa
11 11 "p2": [
... ... @@ -19,7 +19,7 @@ it:&quot;Tipo di immagine&quot;
19 19 {
20 20 pt: "Legenda",
21 21 en: "Legend",
22   -es:"Subt&iacute;tulo",
  22 +es:"Leyenda",
23 23 it:"Legenda"
24 24 }],
25 25 "p4": [
... ... @@ -39,21 +39,21 @@ it:&quot;Dimensione&quot;
39 39 "p6": [
40 40 {
41 41 pt: "Ativa/desativa entorno",
42   -en:"Enable/Disable surrounding",
  42 +en:"Enable/Disable Border",
43 43 es:"Activar/desactivar entorno",
44 44 it:"Attiva / Disattiva campo"
45 45 }],
46 46 "p7": [
47 47 {
48 48 pt: "Ativa/desativa logo",
49   -en:"Enable/Disable logo",
50   -es:"Activar/desactivar logomarca",
  49 +en:"Enable/Disable Logo",
  50 +es:"Activar/desactivar Logo",
51 51 it:"Attiva / disattiva logo"
52 52 }],
53 53 "p8": [
54 54 {
55   -pt: "Cor da sele&ccedil;&atilde;o",
56   -en:"Selection color",
  55 +pt: "Cor da selecao",
  56 +en:"Color of Selection",
57 57 es:"Color de la selecci&oacute;n",
58 58 it:"Colore della selezione"
59 59 }],
... ... @@ -61,21 +61,21 @@ it:&quot;Colore della selezione&quot;
61 61 {
62 62 pt: "Cor do fundo",
63 63 en:"Background color",
64   -es:"Color del fondo",
  64 +es:"Color de fondo",
65 65 it:"Colore dello sfondo"
66 66 }],
67 67 "p10": [
68 68 {
69 69 pt: "Grade de coordenadas",
70 70 en:"Graticule",
71   -es:"Grado de coordenadas",
  71 +es:"Grat&iacute;la",
72 72 it:"Reticolo"
73 73 }],
74 74 "p11": [
75 75 {
76 76 pt: "Template",
77 77 en:"Template",
78   -es:"Template",
  78 +es:"Plantilla",
79 79 it:"Template"
80 80 }],
81 81 "p12": [
... ... @@ -90,7 +90,7 @@ it:&quot;Temporizzazione&quot;
90 90 pt: "Propriedades",
91 91 en:"Properties",
92 92 es:"Propiedades",
93   -it:"Proprieta"
  93 +it:"Proprietà"
94 94 }],
95 95 "p14": [
96 96 {
... ... @@ -102,7 +102,7 @@ it:&quot;Applica&quot;
102 102 "p15": [
103 103 {
104 104 pt: "Formato da imagem do mapa",
105   -en:"Image map format",
  105 +en:"Format of Image Map",
106 106 es:"Formato de la imagen del mapa",
107 107 it:"Image map format"
108 108 }],
... ... @@ -110,35 +110,35 @@ it:&quot;Image map format&quot;
110 110 {
111 111 pt: "Camadas de fundo",
112 112 en:"Base layers",
113   -es:"Base layers",
  113 +es:"Capas Base",
114 114 it:"Base layers"
115 115 }],
116 116 "p17": [
117 117 {
118 118 pt: "Imprime legenda",
119 119 en:"Enable legend",
120   -es:"Activar Subtitulo",
  120 +es:"Activar Leyenda",
121 121 it:"Attiva legenda"
122 122 }],
123 123 "p18": [
124 124 {
125 125 pt: "N&atilde;o imprime a legenda",
126 126 en:"Disable legend",
127   -es:"Desactivar Subtitulo",
  127 +es:"Desactivar Leyenda",
128 128 it:"Disattiva legenda"
129 129 }],
130 130 "p19": [
131 131 {
132 132 pt: "Ativa ou desativa a legenda de um tema na op&ccedil;&atilde;o de impress&atilde;o do mapa",
133   -en:"Enables or disables the legend of a theme in the print option on the map",
134   -es:"Ativa ou desativa a legenda de um tema na op&ccedil;&atilde;o de impress&atilde;o do mapa",
  133 +en:"Enable or disable the legend of a theme in the print option of the map",
  134 +es:"Activa o desactiva la leyenda de un tema en la opci&oacute;n de impresi&oacute;n del mapa",
135 135 it:"Ativa ou desativa a legenda de um tema na op&ccedil;&atilde;o de impress&atilde;o do mapa"
136 136 }],
137 137 "p20": [
138 138 {
139 139 pt: "Tela remota",
140 140 en:"Remote screen",
141   -es:"Tela remota",
  141 +es:"Pantalla remota",
142 142 it:"Tela remota"
143 143 }],
144 144 "p21": [
... ... @@ -182,14 +182,14 @@ it:&quot;Archivio&quot;
182 182 pt: "Propriedades",
183 183 en:"Properties",
184 184 es:"Propiedades",
185   -it:"Proprieta"
  185 +it:"Proprietà"
186 186 }],
187 187 //submenus
188 188 "u1": [
189 189 {
190 190 pt: "Sobre o i3Geo",
191 191 en:"About i3Geo",
192   -es:"Sobre i3Geo",
  192 +es:"Acerca de i3Geo",
193 193 it:"Informazioni WebGis"
194 194 }],
195 195 "u2": [
... ... @@ -217,7 +217,7 @@ it:&quot;Guida&quot;
217 217 {
218 218 pt: "Manual do usu&aacute;rio",
219 219 en:"User manual",
220   -es:"Manual do usu&aacute;rio",
  220 +es:"Manual de usuario",
221 221 it:"Manual do usu&aacute;rio"
222 222 }],
223 223 "u5": [
... ... @@ -230,8 +230,8 @@ it:&quot;Blog&quot;
230 230 "u5a": [
231 231 {
232 232 pt: "Software p&uacute;blico",
233   -en:"Software p&uacute;blico",
234   -es:"Software p&uacute;blico",
  233 +en:"Software p&uacute;blico Brazil",
  234 +es:"Software p&uacute;blico Brasil",
235 235 it:"Software pubblico"
236 236 }],
237 237 "u5b": [
... ... @@ -266,41 +266,41 @@ it:&quot;Reticolo poligonale&quot;
266 266 {
267 267 pt: "Grade de pontos",
268 268 en:"Grid of Points",
269   -es:"Grado de puntos",
  269 +es:"Grat&iacute;la de puntos",
270 270 it:"Reticolo puntuale"
271 271 }],
272 272 "u9": [
273 273 {
274 274 pt: "Grade de hex&aacute;gonos",
275 275 en:"Grid of Hexagons",
276   -es:"Grado de hex&aacute;gonos",
  276 +es:"Grat&iacute;la de hex&aacute;gonos",
277 277 it:"Reticolo Esagonale"
278 278 }],
279 279 "u10": [
280 280 {
281 281 pt: "Entorno(Buffer)",
282 282 en:"Buffer",
283   -es:"Entorno (Buffer)",
  283 +es:"Area Influencia (Buffer)",
284 284 it:"Buffer"
285 285 }],
286 286 "u11": [
287 287 {
288 288 pt: "Centr&oacute;ide",
289 289 en:"Centroid",
290   -es:"Centro geom&eacute;trico",
  290 +es:"Centroide",
291 291 it:"Baricentro"
292 292 }],
293 293 "u11a": [
294 294 {
295 295 pt: "Dist&acirc;ncia entre pontos",
296   -en:"Point distance",
297   -es:"Distancia de puntos",
  296 +en:"Distance between points",
  297 +es:"Distancia entre puntos",
298 298 it:"Distanza tra i punti"
299 299 }],
300 300 "u12": [
301 301 {
302 302 pt: "N pontos em poligono",
303   -en:"N point in polygon",
  303 +en:"N points in polygon",
304 304 es:"N puntos en pol&iacute;gono",
305 305 it:"N punti nel Poligono"
306 306 }],
... ... @@ -308,13 +308,13 @@ it:&quot;N punti nel Poligono&quot;
308 308 {
309 309 pt: "Ponto em poligono/raster",
310 310 en:"Point in polygon/raster",
311   -es:"Punto en pol&iacute;gono/matriz",
  311 +es:"Punto en pol&iacute;gono/raster",
312 312 it:"Punto nel Poligono / raster"
313 313 }],
314 314 "u14": [
315 315 {
316 316 pt: "Distribui&ccedil;&atilde;o de pontos",
317   -en:"Point distribution",
  317 +en:"Points distribution",
318 318 es:"Distribuci&oacute;n de puntos",
319 319 it:"Distribuzione di punti"
320 320 }],
... ... @@ -357,7 +357,7 @@ it:&quot;Apri mappa&quot;
357 357 {
358 358 pt: "Pegar imagens",
359 359 en:"Get pictures",
360   -es:"Tomar im&aacute;genes",
  360 +es:"Captar im&aacute;genes",
361 361 it:"Apri immagine"
362 362 }],
363 363 "u20": [
... ... @@ -385,7 +385,7 @@ it:&quot;Genera collegamento&quot;
385 385 {
386 386 pt: "Grade",
387 387 en:"Graticule",
388   -es:"Grado",
  388 +es:"Grat&iacute;la",
389 389 it:"Reticolo"
390 390 }],
391 391 "u23": [
... ... @@ -399,21 +399,21 @@ it:&quot;Punto&quot;
399 399 {
400 400 pt: "Pol&iacute;gono",
401 401 en:"Polygon",
402   -es:"Poligonos",
  402 +es:"Pol&iacute;gonos",
403 403 it:"Poligono"
404 404 }],
405 405 "u25": [
406 406 {
407 407 pt: "Dissolve",
408   -en:"Dissolv",
409   -es:"Dissolve",
  408 +en:"Dissolve",
  409 +es:"Disolver",
410 410 it:"Dissolvi"
411 411 }],
412 412 "u26": [
413 413 {
414 414 pt: "Agrupa",
415 415 en:"Group",
416   -es:"Agrupa",
  416 +es:"Agrupar",
417 417 it:"Aggrega"
418 418 }],
419 419 "u27": [
... ... @@ -426,8 +426,8 @@ it:&quot;Altri&quot;
426 426 "u28": [
427 427 {
428 428 pt: "Centro m&eacute;dio",
429   -en:"Mean center",
430   -es:"Centro m&eacute;dio",
  429 +en:"Middle center",
  430 +es:"Centro medio",
431 431 it:"Centro m&eacute;dio"
432 432 }],
433 433 "u29": [
... ... @@ -448,44 +448,44 @@ it:&quot;Strati&quot;
448 448 "t2":[
449 449 {
450 450 pt:"Arraste o tema aqui ou clique para excluir",
451   -en:"Drag the layer here to remove",
452   -es:"Arrastre el tema aqui &oacute; haga clic para excluir",
  451 +en:"Drag the layer here or make click to remove",
  452 +es:"Arrastre el tema aqu&iacute; &oacute; haga clic para excluir",
453 453 it:"Trascina qui per rimuovere"
454 454 }],
455 455 "t2a":[
456 456 {
457 457 pt:"Filtra a lista de camadas",
458 458 en:"Filters the list of layers",
459   -es:"filtra a lista de camadas",
  459 +es:"Filtra la lista de capas",
460 460 it:"filtra a lista de camadas"
461 461 }],
462 462 "t2b":[
463 463 {
464 464 pt:"Abre a legenda do mapa",
465 465 en:"Opens the map legend",
466   -es:"Abre a legenda do mapa",
  466 +es:"Despliega la leyenda del mapa",
467 467 it:"Abre a legenda do mapa"
468 468 }],
469 469 "t3":[
470 470 {
471 471 pt:"Clique para ligar ou desligar esse tema, mostrando-o ou n&atilde;o no mapa. Ap&oacute;s alterar o estado do tema, aguarde alguns instantes para o mapa ser redesenhado, ou clique no bot&atilde;o aplicar que ser&aacute; mostrado.",
472   -en:"Turn the layer on/off on the map. Wait a few moments to get the map redesigned or press the button to apply it.",
473   -es:"Haga clic para conectar o desconectar este tema, mostr&aacute;ndolo o no en el mapa. Despu&eacute;s de alterar el estado del tema, espere algunos instantes para que el mapa sea redise&ntilde;ado, o haga clic en el bot&oacute;n aplicar que se mostrar&aacute;.",
474   -it:"Fare clic per attivare o disattivare questo tema. Dopo aver modificato lo stato del tema, La mappa aggiornata sar� visualizzata dopo qualche istante. Per visualizzare subito cliccare su Applica"
  472 +en:"Click to enable or disable this theme, showing it or not on the map. After changing the status of the theme, wait a few moments to get the map to be reloaded, or click the Apply button that will be display.",
  473 +es:"Haga clic para activar o desactivar este tema, mostr&aacute;ndolo o no en el mapa. Despu&eacute;s de cambiar el estado del tema, espere algunos instantes para que el mapa sea recargado, o haga clic en el bot&oacute;n aplicar que se mostrar&aacute;.",
  474 +it:"Fare clic per attivare o disattivare questo tema. Dopo aver modificato lo stato del tema, La mappa aggiornata sarà visualizzata dopo qualche istante. Per visualizzare subito cliccare su Applica"
475 475 }],
476 476 "t3a":[
477 477 {
478 478 pt:"Clique para ligar todos os temas",
479   -en:"Turn all layers on",
480   -es:"Haga clic para conectar los temas",
481   -it:"Turn all layers on"
  479 +en:"Turn on all layers",
  480 +es:"Haga clic para activar todos los temas",
  481 +it:"Turn all layers on"
482 482 }],
483 483 "t3b":[
484 484 {
485 485 pt:"Clique para desligar todos os temas",
486   -en:"Turn all layers off",
487   -es:"Haga clic para desconectar los temas",
488   -it:"Turn all layers off"
  486 +en:"Turn off all layers",
  487 +es:"Haga clic para desactivar todos los temas",
  488 +it:"Turn all layers off"
489 489 }],
490 490 "t4":[
491 491 {
... ... @@ -504,114 +504,114 @@ it:&quot;Zoom della selezione&quot;
504 504 "t5":[
505 505 {
506 506 pt:"Limpa sele&ccedil;&atilde;o existente nesse tema",
507   -en:"Clear selection",
  507 +en:"Clear selection existing in this theme",
508 508 es:"Limpia la selecci&oacute;n existente en este tema",
509 509 it:"Pulizia della selezione esistente in questo strato"
510 510 }],
511 511 "t6":[
512 512 {
513 513 pt:"Clique para fazer o download desse tema no formato shapefile",
514   -en:"Click to download in shapefile format",
515   -es:"Haga clic para hacer el download",
  514 +en:"Click to download this theme in shapefile format",
  515 +es:"Haga clic para descargar este tema en formato shape",
516 516 it:"Clicca per il download di questo tema nel formato Shapefile"
517 517 }],
518 518 "t7":[
519 519 {
520 520 pt:"clique e arraste",
521   -en:"dragging",
  521 +en:"Dragging",
522 522 es:"Haga clic y arrastre",
523 523 it:"Clicca e trascina"
524 524 }],
525 525 "t7a":[
526 526 {
527 527 pt:"Clique e arraste para mudar a ordem. Arraste e solte na lixeira para remover. Aguarde para ver a legenda.",
528   -en:"dragging or wait",
529   -es:"Haga clic y arrastre",
  528 +en:"Click and Dragg to rearrange order. Drag and drop to remove. Please to wait to see the legend",
  529 +es:"Haga clic y arrastre para cambiar el orden. Arrastre y suelte remover. Aguarde para ver la leyenda.",
530 530 it:"Clicca e trascina"
531 531 }],
532 532 "t8":[
533 533 {
534 534 pt:"arraste para mudar a ordem",
535   -en:"drag to change the draw order",
536   -es:"Arrastre para cambiar la orden",
  535 +en:"drag to change the order",
  536 +es:"Arrastre para cambiar el orden",
537 537 it:"Trascina per modificare l'ordine"
538 538 }],
539 539  
540 540 "t9":[
541 541 {
542 542 pt:"A escala do tema &eacute; compat&iacute;vel com a escala do mapa",
543   -en:"The scale of the layer is compatible with the scale of the map",
  543 +en:"The scale of the theme is compatible with the scale of the map",
544 544 es:"La escala del tema es compatible con la escala del mapa",
545   -it:"La scala del tema � compatibile con la scala della mappa"
  545 +it:"La scala del tema è compatibile con la scala della mappa"
546 546 }],
547 547 "t10":[
548 548 {
549 549 pt:"A escala do tema &eacute incompat&iacute;vel com a escala do mapa",
550   -en:"The scale of the layer is incompatible with the scale of the map",
  550 +en:"The scale of the theme is incompatible with the scale of the map",
551 551 es:"La escala del tema es incompatible con la escala del mapa",
552   -it:"La scala del tema � incompatibile con la scala della mappa"
  552 +it:"La scala del tema è incompatibile con la scala della mappa"
553 553 }],
554 554 "t11":[
555 555 {
556 556 pt:"A escala do tema n&atilde;o &eacute conhecida",
557   -en:"The scale of the layer is not known",
  557 +en:"The scale of the layer is unknown",
558 558 es:"La escala del tema no es conocida",
559   -it: "La scala del tema non � conosciuta"
  559 +it: "La scala del tema non è conosciuta"
560 560 }],
561 561 "t12":[
562 562 {
563 563 pt:"excluir",
564   -en:"delete",
565   -es:"Excluir",
  564 +en:"Delete",
  565 +es:"Eliminar",
566 566 it:"Eliminare"
567 567 }],
568 568 "t12a":[
569 569 {
570 570 pt:"Clique para excluir esse tema do mapa.",
571   -en:"Delete layer of the map.",
  571 +en:"Delete this layer of the map.",
572 572 es:"Haga clic para excluir este tema del mapa",
573 573 it:"Clicca per rimuovere questo strato della mappa"
574 574 }],
575 575 "t13":[
576 576 {
577 577 pt:"sobe",
578   -en:"up",
579   -es:"Sube",
  578 +en:"Up",
  579 +es:"Subir",
580 580 it:"Mettere sopra "
581 581 }],
582 582 "t14":[
583 583 {
584 584 pt:"Clique para subir esse tema na ordem de desenho",
585   -en:"Drag the layer up",
  585 +en:"Click to move up the layer in design order",
586 586 es:"Haga clic para subir ese tema en la orden de dise&ntilde;o",
587   -it:"Clicca per sollevare questo tema nell�ordine di progettazione"
  587 +it:"Clicca per sollevare questo tema nell’ordine di progettazione"
588 588 }],
589 589 "t15":[
590 590 {
591 591 pt:"desce",
592   -en:"down",
593   -es:"Baja",
  592 +en:"Down",
  593 +es:"Bajar",
594 594 it:"scendere"
595 595 }],
596 596 "t16":[
597 597 {
598 598 pt:"Clique para descer esse tema na ordem de desenho",
599   -en:"Drag the layer down",
  599 +en:"Click to move down the layer in design order",
600 600 es:"Haga clic para bajar este tema en la orden de dise&ntilde;o",
601   -it:"Clicca per scendere questo tema nell�ordine di progettazione."
  601 +it:"Clicca per scendere questo tema nell’ordine di progettazione."
602 602 }],
603 603 "t17":[
604 604 {
605 605 pt:"zoom para o tema",
606   -en:"zoom to a layer",
607   -es:"Zoom para el tema",
  606 +en:"Zoom to layer",
  607 +es:"Zoom al tema",
608 608 it:"Zoom al tema"
609 609 }],
610 610 "t18":[
611 611 {
612 612 pt:"Clique para ajustar o mapa de forma a mostrar todo o tema",
613   -en:"Click to adjust the map in order to show the whole layer",
614   -es:"Haga clic para ajustar el mapa de forma para que muestre todo el tema",
  613 +en:"Zoom all",
  614 +es:"Zoom a todo",
615 615 it:"Clicca per regolare la mappa per visualizzare tutto lo strato"
616 616 }],
617 617 "t18a":[
... ... @@ -625,28 +625,28 @@ it:&quot;Opzioni&quot;
625 625 {
626 626 pt:"Legenda",
627 627 en:"Legend",
628   -es:"Subtitulo",
  628 +es:"Leyenda",
629 629 it:"Legenda"
630 630 }],
631 631 "t19":[
632 632 {
633 633 pt:"Altera a transpar&ecirc;ncia do tema, possibilitando que as camadas inferiores possam ser vistas.",
634   -en:"Change the layer transparency.",
  634 +en:"Change the layer transparency. It make possible to see inferior layers",
635 635 es:"Altera la transparencia del tema, haciendo posible que las capas inferiores puedan verse",
636   -it:"Modifica la trasparenza del tema, consentendo che gli strati pi� bassi siano visti"
  636 +it:"Modifica la trasparenza del tema, consentendo che gli strati più bassi siano visti"
637 637 }],
638 638 "t20":[
639 639 {
640 640 pt:"Opacidade",
641 641 en:"Opacity",
642 642 es:"Opacidad",
643   -it:"Opacit�"
  643 +it:"Opacità"
644 644 }],
645 645 "t21a":[
646 646 {
647 647 pt:"Muda o nome atual do tema. Utilize para melhorar a legenda do mapa.",
648   -en:"Change layer name.",
649   -es:"Cambia el nombre actual del tema. Utilice para mejorar el subtitulo del mapa.",
  648 +en:"Rename layer. Use it for make a better legend of the map",
  649 +es:"Renombrar tema. Utilice para mejorar la leyenda del mapa.",
650 650 it:"Cambia il nome del tema corrente. Utilizzare per migliorare la legenda della mappa."
651 651 }],
652 652 "t21":[
... ... @@ -660,7 +660,7 @@ it:&quot;Nuovo nome&quot;
660 660 {
661 661 pt:"Localize elementos no tema com base em seus atributos descritivos.",
662 662 en:"Find elements on the layer based on their descriptive attributes.",
663   -es:"Ubique elementos en el tema con base en sus atributos descriptivos",
  663 +es:"Ubique elementos en el tema en base a sus atributos descriptivos",
664 664 it:"Trova gli elementi nel tema secondo i suoi attributi descrittivi."
665 665 }],
666 666 "t23":[
... ... @@ -673,7 +673,7 @@ it:&quot;Cerca...&quot;
673 673 "t24":[
674 674 {
675 675 pt:"Crie uma nova camada no mapa para apresentar textos descritivos sobre esse tema, tendo como base a tabela de atributos.",
676   -en:"Create a new layer to display descriptive texts on the subject, based on table of attributes.",
  676 +en:"Create a new layer to display descriptive texts about this theme, based on table of attributes.",
677 677 es:"Crear una nueva capa en el mapa para presentar textos descriptivos sobre este tema, teniendo como base la tabla de atributos",
678 678 it:"Creare un nuovo strato sulla mappa per visualizzare testi descrittivi sul tema, secondo la tabella di attributi."
679 679 }],
... ... @@ -681,27 +681,27 @@ it:&quot;Creare un nuovo strato sulla mappa per visualizzare testi descrittivi sul te
681 681 {
682 682 pt:"Texto (nomes ou valores)",
683 683 en:"Label...",
684   -es:"Texto...",
  684 +es:"Etiquetas..",
685 685 it:"Testo..."
686 686 }],
687 687 "t26":[
688 688 {
689 689 pt:"Defina as etiquetas que ser&atilde;o mostradas quando o mouse &eacute; estacionado sobre um elemento desse tema.",
690   -en:"Set the tooltips that will be shown when the mouse is over the element of that layer.",
  690 +en:"Define the label that will be shown when the mouse is over one element of this theme.",
691 691 es:"Defina las etiquetas que se mostrar&aacute;n cuando el rat&oacute;n se estaciona sobre un elemento de este tema",
692 692 it:"Definire le etichette da visualizzare quando il mouse si ferma su un elemento di questo tema."
693 693 }],
694 694 "t27":[
695 695 {
696 696 pt:"Ativar etiquetas",
697   -en:"Tooltip...",
  697 +en:"Label...",
698 698 es:"Etiquetas...",
699 699 it:"Descrizioni..."
700 700 }],
701 701 "t28":[
702 702 {
703 703 pt:"Insira um filtro nesse tema para mostrar apenas determinadas informa&ccedil;&otilde;es, com base na tabela de atributos.",
704   -en:"Filter based on the table of attributes.",
  704 +en:"Insert a Filter in this theme for show specific information, based on the table of attributes.",
705 705 es:"Inserte un filtro en este tema para mostrar solo determinadas informaciones, con base en la tabla de atributos",
706 706 it:"Inserisci un filtro in questo tema per mostrare solo determinate informazioni, con base nella tabella di attributi"
707 707 }],
... ... @@ -709,41 +709,41 @@ it:&quot;Inserisci un filtro in questo tema per mostrare solo determinate informazion
709 709 {
710 710 pt:"Filtrar",
711 711 en:"Filter...",
712   -es:"Filtro...",
  712 +es:"Filtrar...",
713 713 it:"Filtro..."
714 714 }],
715 715 "t30":[
716 716 {
717 717 pt:"Veja a tabela de atributos relacionada a esse tema.",
718   -en:"See the table of attributes related to that layer.",
  718 +en:"See the table of attributes related to this theme.",
719 719 es:"Vea la tabla de atributos relacionada con este tema",
720 720 it:"Vedi la tabella degli attributi di questo tema."
721 721 }],
722 722 "t31":[
723 723 {
724 724 pt:"Tabela com os dados",
725   -en:"Table...",
726   -es:"Tabla...",
  725 +en:"Table of attributes...",
  726 +es:"Tabla de atributos...",
727 727 it:"Tabella..."
728 728 }],
729 729 "t32":[
730 730 {
731 731 pt:"Abre o editor de legenda, permitindo a altera&ccedil;&atilde;o da forma de representa&ccedil;&atilde;o desse tema.",
732   -en:"Opens the editor of legend, allowing the modification of the form of representation of this theme.",
733   -es:"Abre el editor de subt&iacute;tulo, permitiendo la alteraci&oacute;n de la forma de representaci&oacute;n de este tema",
  732 +en:"Opens the legend editor, allowing the modification of the form of representation of this theme.",
  733 +es:"Abre el editor de leyenda, permitiendo la alteraci&oacute;n de la forma de representaci&oacute;n de este tema",
734 734 it:"Aprire l'editor di legenda, che consente la modifica della forma di rappresentazione di questo tema "
735 735 }],
736 736 "t33":[
737 737 {
738 738 pt:"Editar legenda",
739   -en:"Legend edit...",
740   -es:"Editar subt&iacute;tulo...",
  739 +en:"Edit Legend...",
  740 +es:"Editar leyenda...",
741 741 it:"Modifica la legenda"
742 742 }],
743 743 "t34":[
744 744 {
745 745 pt:"Mostra os dados desse tema em uma janela que acompanha o mouse.",
746   -en:"The data shows that layer in a window that tracks the mouse.",
  746 +en:"Shows the data of this layer in a window that tracks the mouse.",
747 747 es:"Muestra los datos de este tema en una ventana que acompa&ntilde;a el rat&oacute;n",
748 748 it:"Mostra i dati di questo tema in una finestra che accompagna il mouse."
749 749 }],
... ... @@ -751,14 +751,14 @@ it:&quot;Mostra i dati di questo tema in una finestra che accompagna il mouse.&quot;
751 751 {
752 752 pt:"Mostra em janela",
753 753 en:"Show in window",
754   -es:"Muestra en la ventana...",
  754 +es:"Mostrar en la ventana...",
755 755 it: "Mostra nella finestra..."
756 756 }],
757 757 "t36":[
758 758 {
759 759 pt:"tema vis&iacute;vel apenas em determinadas escalas",
760   -en:"the layer is visible in specific scales",
761   -es:"capa visible en ciertas escalas",
  760 +en:"Layer is visible in specific scales",
  761 +es:"Capa visible en ciertas escalas",
762 762 it:"Tema visibile solo a determinate scale"
763 763 }],
764 764 "t37":[
... ... @@ -771,56 +771,56 @@ it:&quot;Grafico&quot;
771 771 "t37a":[
772 772 {
773 773 pt:"Tema com gr&aacute;ficos",
774   -en:"Theme chart",
775   -es:"Gr&aacute;fico",
  774 +en:"Theme with chart",
  775 +es:"Tema con Gr&aacute;fico",
776 776 it:"Grafico"
777 777 }],
778 778 "t37b":[
779 779 {
780 780 pt:"Gr&aacute;fico interativo",
781 781 en:"Interactive chart",
782   -es:"Gr&aacute;fico",
  782 +es:"Gr&aacute;fico Interactivo",
783 783 it:"Grafico"
784 784 }],
785 785 "t38":[
786 786 {
787 787 pt:"Exporta a legenda para o padr&atilde;o SLD.",
788   -en:"Export the legend to SLD.",
789   -es:"Exporta a legenda para o padr&atilde;o SLD.",
  788 +en:"Export the legend to standard SLD.",
  789 +es:"Exporta la leyenda para est&aacute;ndar SLD.",
790 790 it:"Exporta a legenda para o padr&atilde;o SLD."
791 791 }],
792 792 "t39":[
793 793 {
794 794 pt:"Exportar SLD",
795   -en:"SLD...",
796   -es:"SLD...",
  795 +en:"Export to SLD...",
  796 +es:"Exportar a SLD...",
797 797 it:"SLD..."
798 798 }],
799 799 "t40":[
800 800 {
801 801 pt:"Abre a ferramenta que permite alterar o SQL de acesso aos dados",
802   -en:"Open the tool that lets you change the SQL data access",
803   -es:"Abre a ferramenta que permite alterar o SQL de acesso aos dados",
  802 +en:"Opens the tool that lets you change the SQL data access",
  803 +es:"Abre una herramienta que permite alterar el SQL de acceso a los datos",
804 804 it:"Abre a ferramenta que permite alterar o SQL de acesso aos dados"
805 805 }],
806 806 "t41":[
807 807 {
808 808 pt:"Editar SQL",
809   -en:"SQL...",
810   -es:"SQL...",
  809 +en:"Edit SQL...",
  810 +es:"Editar SQL...",
811 811 it:"SQL..."
812 812 }],
813 813 "t42":[
814 814 {
815 815 pt:"Efeito cortina",
816   -en:"Curtain...",
817   -es:"Cortina...",
  816 +en:"Curtain efect...",
  817 +es:"Efecto Cortina...",
818 818 it:"Tenda..."
819 819 }],
820 820 "t43":[
821 821 {
822 822 pt:"Aplicar SLD",
823   -en:"SLD apply...",
  823 +en:"Apply SLD...",
824 824 es:"Aplicar SLD...",
825 825 it:"Aplicar SLD..."
826 826 }],
... ... @@ -842,14 +842,14 @@ it:&quot;Comentar&quot;
842 842 {
843 843 pt:"Mais populares",
844 844 en:"Most popular",
845   -es:"Mais populares",
  845 +es:"Mas populares",
846 846 it:"Mais populares"
847 847 }],
848 848 "t47": [
849 849 {
850 850 pt: "Intervalo em segundos ap&oacute;s o qual a camada ser&aacute; atualizada. Para ignorar, deixe em branco",
851 851 en:"Interval in seconds after which the layer will be updated. To ignore, leave blank",
852   -es:"Intervalo em segundos ap&oacute;s o qual a camada ser&aacute; atualizada. Para ignorar, deixe em branco",
  852 +es:"Intervalo en segundos despues del cual la capa ser&aacute; actualizada. Para ignorar, deje en blanco.",
853 853 it:"Intervalo em segundos ap&oacute;s o qual a camada ser&aacute; atualizada. Para ignorar, deixe em branco"
854 854 }],
855 855 "t48": [
... ... @@ -861,65 +861,65 @@ it:&quot;Temporizador&quot;
861 861 }],
862 862 "t49": [
863 863 {
864   -pt:"Mapa tem&aacute;tico 3d",
865   -en:"Thematic map 3d",
866   -es:"Mapa tem&aacute;tico 3d",
867   -it:"Mapa tem&aacute;tico 3d"
  864 +pt:"Mapa tem&aacute;tico 3D",
  865 +en:"Thematic map 3D",
  866 +es:"Mapa tem&aacute;tico 3D",
  867 +it:"Mapa tem&aacute;tico 3D"
868 868 }],
869 869 //guia adiciona
870 870 "a1":[
871 871 {
872 872 pt:"procurar tema:",
873   -en:"search layer:",
874   -es:"Buscar datos:",
  873 +en:"Search layer:",
  874 +es:"Buscar Tema:",
875 875 it:"Ricerca il tema:"
876 876 }],
877 877 "a2":[
878 878 {
879 879 pt:"Upload de shape file",
880 880 en:"Upload shape file",
881   -es:"Upload de shape file",
  881 +es:"Subir archivo shape",
882 882 it:"Upload del shape file"
883 883 }],
884 884 "a2b":[
885 885 {
886 886 pt:"Upload de arquivo dbf ou CSV",
887   -en:"Upload dbf or CSV file",
888   -es:"Upload de archivo dbf o CSV",
  887 +en:"Upload DBF or CSV file",
  888 +es:"Subir archivo DBF o CSV",
889 889 it: "Upload del file dbf o CSV"
890 890 }],
891 891 "a3":[
892 892 {
893 893 pt:"Download de dados",
894 894 en:"Data download",
895   -es:"Download de datos",
  895 +es:"Descarga de datos",
896 896 it:"Download dei dati"
897 897 }],
898 898 "a3a":[
899 899 {
900 900 pt:"Importar Web Map Context (WMC)",
901   -en:"Web Map Context (WMC) Importer",
  901 +en:"Import Web Map Context (WMC)",
902 902 es:"Importar Web Map Context (WMC)",
903 903 it:"Importar Web Map Context (WMC)"
904 904 }],
905 905 "a4":[
906 906 {
907 907 pt:"Conectar com servidor WMS",
908   -en:"WMS server connection",
909   -es:"Conectar con el servidor WMS",
  908 +en:"Connect to WMS Server",
  909 +es:"Conectar al servidor WMS",
910 910 it:"Connetti con il server WMS"
911 911 }],
912 912 "a4b":[
913 913 {
914 914 pt:"Conectar com servidor WMS-T",
915   -en:"WMS-T server connection",
916   -es:"Conectar con el servidor WMS-T",
  915 +en:"Connect to WMS-T Server",
  916 +es:"Conectar al servidor WMS-T",
917 917 it:"Connetti con il server WMS-T"
918 918 }],
919 919 "a5":[
920 920 {
921 921 pt:"Conectar com GeoRss",
922   -en:"GeoRss connection",
  922 +en:"Connect to GeoRss",
923 923 es:"Conectar con GeoRss",
924 924 it:"Connetti con il GeoRss"
925 925 }],
... ... @@ -927,7 +927,7 @@ it:&quot;Connetti con il GeoRss&quot;
927 927 {
928 928 pt:"Nuvem de tags",
929 929 en:"Tags cloud",
930   -es:"Tags",
  930 +es:"Nube de Tags",
931 931 it:"Tag"
932 932 }],
933 933 "a6":[
... ... @@ -947,21 +947,21 @@ it:&quot;Temi&quot;
947 947 "a8":[
948 948 {
949 949 pt:"Clique no box ao lado do tema para ligar ou desligar, mostrando-o ou n&atilde;o no mapa. Ap&oacute;s alterar o estado do tema, aguarde alguns instantes para o mapa ser redesenhado, ou clique no bot&atilde;o aplicar que ser&aacute; mostrado.",
950   -en:"Click to connect or disconnect layer, showing it or not on the map. After changing the layer status, wait a few moments to be redesigned the map, or click in the button apply that will be shown.",
951   -es:"Haga clic para conectar o desconectar este tema, mostr&aacute;ndolo o no en el mapa. Despu&eacute;s de alterar el estado del tema, espere algunos instantes para que el mapa sea redise&ntilde;ado, o haga clic en el bot&oacute;n aplicar que aparecer&aacute;",
952   -it:"Clicca sulla casella accanto al tema per attivare o disattivare, mostrandolo o meno sulla mappa. Dopo aver modificato lo stato del tema, attendere qualche istante per vedere ridisegnata la mappa, oppure fare clic sul pulsante Applica, che verr� visualizzato."
  950 +en:"Click to connect or disconnect this layer, showing it or not on the map. After changing the layer status, wait a few moments to be reloaded on the map, or click in the button Apply that will be shown.",
  951 +es:"Haga clic para conectar o desconectar este tema, mostr&aacute;ndolo o no en el mapa. Despu&eacute;s de alterar el estado del tema, espere algunos instantes para que el mapa sea recargado, o haga clic en el bot&oacute;n aplicar que aparecer&aacute;",
  952 +it:"Clicca sulla casella accanto al tema per attivare o disattivare, mostrandolo o meno sulla mappa. Dopo aver modificato lo stato del tema, attendere qualche istante per vedere ridisegnata la mappa, oppure fare clic sul pulsante Applica, che verrà visualizzato."
953 953 }],
954 954 "a9":[
955 955 {
956   -pt:"fonte",
957   -en:"font",
  956 +pt:"Fonte",
  957 +en:"Font",
958 958 es:"Fuente",
959 959 it:"Fonte"
960 960 }],
961 961 "a10":[
962 962 {
963 963 pt:"c&oacute;digo:",
964   -en:"code",
  964 +en:"Code",
965 965 es:"C&oacute;digo",
966 966 it:"Codice"
967 967 }],
... ... @@ -983,21 +983,21 @@ it:&quot;Aprire il sistema&quot;
983 983 {
984 984 pt:"Abrir no Google Earth",
985 985 en:"Open in Google Earth",
986   -es:"Abrir no Google Earth",
  986 +es:"Abrir en Google Earth",
987 987 it:"Abrir no Google Earth"
988 988 }],
989 989 "a14":[
990 990 {
991 991 pt:"Upload SHP, CSV, DBF, GPX, KML",
992 992 en:"Upload SHP, CSV, DBF, GPX, KML",
993   -es:"Upload SHP, CSV, DBF, GPX, KML",
  993 +es:"Subir SHP, CSV, DBF, GPX, KML",
994 994 it:"Upload SHP, CSV, DBF, GPX, KML"
995 995 }],
996 996 "a15":[
997 997 {
998 998 pt:"Conex&otilde;es",
999 999 en:"Conections",
1000   -es:"Conex&otilde;es",
  1000 +es:"Conexiones",
1001 1001 it:"Conex&otilde;es"
1002 1002 }],
1003 1003 "a16":[
... ... @@ -1019,21 +1019,21 @@ it:&quot;Temi&quot;
1019 1019 {
1020 1020 pt:"Cat&aacute;logo",
1021 1021 en:"Catalog",
1022   -es:"Catalogo",
  1022 +es:"Cat&aacute;logo",
1023 1023 it:"Catalog"
1024 1024 }],
1025 1025 "g2":[
1026 1026 {
1027 1027 pt:"Adiciona",
1028 1028 en:"Add",
1029   -es:"Agrega",
  1029 +es:"Agregar",
1030 1030 it:"Aggiunge"
1031 1031 }],
1032 1032 "g3":[
1033 1033 {
1034 1034 pt:"Legenda",
1035 1035 en:"Legend",
1036   -es:"Subt&iacute;tulo",
  1036 +es:"Leyenda",
1037 1037 it:"Legenda"
1038 1038 }],
1039 1039 "g4":[
... ... @@ -1089,7 +1089,7 @@ it:&quot;Attendere...partenza&quot;
1089 1089 "o6":[
1090 1090 {
1091 1091 pt:"din&acirc;mico",
1092   -en:"dynamic",
  1092 +en:"Dynamic",
1093 1093 es:"Din&aacute;mico",
1094 1094 it:"Dinamico"
1095 1095 }],
... ... @@ -1110,37 +1110,37 @@ it:&quot;Modificare la scala della mappa adeguandola per mostrare la stessa copertura
1110 1110 }],
1111 1111 "d2t":[
1112 1112 {
1113   -pt:"enquadramento inicial",
1114   -en:"initial extent",
1115   -es:"enquadramento inicial",
  1113 +pt:"Enquadramento inicial",
  1114 +en:"Initial extent",
  1115 +es:"Encuadre inicial",
1116 1116 it:"enquadramento inicial"
1117 1117 }],
1118 1118 "d3":[
1119 1119 {
1120 1120 pt:"Amplia o mapa - desloca o ponto clicado para centro da tela ou amplia a regi&atilde;o indicada por um ret&acirc;ngulo. Ap&oacute;s ativada, clique e arraste o mouse sobre o mapa na &aacute;rea de zoom desejada.",
1121   -en:"Extends the map - place the clicked point in the center of the screen or extends the region indicated by a rectangular.After enabled, click and drag the mouse over the map in the area of zoom desired.",
1122   -es:"Ampl&iacute;a el mapa - coloca el punto donde se hizo clic en el centro de la pantalla o ampl&iacute;a la regi&oacute;n indicada por un rect&aacute;ngulo. Despu&eacute;s de activarla, haga clic y arrastre el rat&oacute;n sobre el mapa en el &aacute;rea de zoom deseada",
1123   -it:"Ampliare la mappa - pone il punto cliccato nel centro dello schermo o ingrandisce la regione indicata con un rettangolo. Dopo aver attivata, cliccare e trascinare il mouse sopra la mappa nell�area di zoom desiderata."
  1121 +en:"Extends the map - places the point where you clicked in the center of the screen or extends to the region indicated by a rectangle. Once activated, click and drag the mouse over the map in the desired zoom area",
  1122 +es:"Ampl&iacute;a el mapa - coloca el punto donde se hizo clic en el centro de la pantalla o ampl&iacute;a a la regi&oacute;n indicada con un rect&aacute;ngulo. Despu&eacute;s de activarla, haga clic y arrastre el rat&oacute;n sobre el mapa en el &aacute;rea de zoom deseada",
  1123 +it:"Ampliare la mappa - pone il punto cliccato nel centro dello schermo o ingrandisce la regione indicata con un rettangolo. Dopo aver attivata, cliccare e trascinare il mouse sopra la mappa nell’area di zoom desiderata."
1124 1124 }],
1125 1125 "d3t":[
1126 1126 {
1127 1127 pt:"clique e arraste para ampliar",
1128   -en:"click and drag to enlarge",
1129   -es:"clique e arraste para ampliar",
  1128 +en:"Click and drag to enlarge",
  1129 +es:"Haga click y arraste para ampliar",
1130 1130 it:"clique e arraste para ampliar"
1131 1131 }],
1132 1132 "d4":[
1133 1133 {
1134 1134 pt:"Desloca a regi&atilde;o vis&iacute;vel no mapa. Ap&oacute;s ativada, clique e arraste o mouse sobre o mapa para deslocar a regi&atilde;o vis&iacute;vel.",
1135   -en:"Shifts the region visible on the map. Once activated, click and drag the mouse over the map to move the visible region.",
1136   -es:"Desloca la regi&oacute;n visible en el mapa",
  1135 +en:"Moves the visible region on the map. Once activated, click and drag the mouse over the map to move the visible region.",
  1136 +es:"Desplaza la regi&oacute;n visible en el mapa. Despu&eacute;s de activada, haga clic y arrastre el rat&oacute;n sobre el mapa para mover la regi&oacute;n visible.",
1137 1137 it:"Sposta la regione visibile sulla mappa. Dopo averla attivata, cliccare e trascinare il mouse sulla mappa per spostare la regione visibile "
1138 1138 }],
1139 1139 "d4t":[
1140 1140 {
1141 1141 pt:"clique e arraste para deslocar",
1142   -en:"click and drag to move",
1143   -es:"clique e arraste para deslocar",
  1142 +en:"Click and drag to move",
  1143 +es:"Haga Click y arraste para mover",
1144 1144 it:"clique e arraste para deslocar"
1145 1145 }],
1146 1146 "d5":[
... ... @@ -1154,63 +1154,63 @@ it:&quot;Estendi la mappa tenendo come riferimento il centro corrente.&quot;
1154 1154 {
1155 1155 pt:"aproximar",
1156 1156 en:"zoom in",
1157   -es:"aproximar",
  1157 +es:"Acercar",
1158 1158 it:"aproximar"
1159 1159 }],
1160 1160 "d6":[
1161 1161 {
1162 1162 pt:"Reduz o mapa tendo como refer&ecircncia o centro atual.",
1163   -en:"Reduces the map as having reference the current center.",
  1163 +en:"Reduces the map with the reference of the current center.",
1164 1164 es:"Reduce el mapa teniendo como referencia el centro actual",
1165 1165 it:"Riduci la mappa tenendo come referimento il centro corrente"
1166 1166 }],
1167 1167 "d6t":[
1168 1168 {
1169 1169 pt:"afastar",
1170   -en:"zoom out",
1171   -es:"afastar",
  1170 +en:"Zoom out",
  1171 +es:"Alejar",
1172 1172 it:"afastar"
1173 1173 }],
1174 1174 "d7":[
1175 1175 {
1176 1176 pt:"Mostra informa&ccedil;&otilde;es sobre um ponto no mapa. Ap&oacute;s ativada, clique sobre o mapa.",
1177   -en:"Displays information about a point on the map. Once activated, click on it.",
1178   -es:"Muestra informaci&oacute;n sobre un punto en el mapa. Despu&eacute;s de activarla haga clic sobre el mismo.",
  1177 +en:"Displays information about a point on the map. Once activated, click on the map.",
  1178 +es:"Muestra informaci&oacute;n sobre un punto en el mapa. Despu&eacute;s de activarla haga clic sobre el mapa.",
1179 1179 it:"Mostra gli informazioni su un punto sulla mappa. Dopo averla attivata, fare clic su di esso."
1180 1180 }],
1181 1181 "d7t":[
1182 1182 {
1183 1183 pt:"clique para identificar",
1184   -en:"click to identify",
1185   -es:"clique para identificar",
  1184 +en:"Click to identify",
  1185 +es:"Click para identificar",
1186 1186 it:"clique para identificar"
1187 1187 }],
1188 1188 "d7a":[
1189 1189 {
1190 1190 pt:"Mostra informa&ccedil;&otilde;es sobre um ponto no mapa. Ap&oacute;s ativada, pare o mouse por alguns instantes no ponto desejado ou clique sobre o mesmo.",
1191   -en:"Displays information about a point on the map. Once activated, stop the mouse for a few moments at the desired point or click on it.",
1192   -es:"Muestra informaci&oacute;n sobre un punto en el mapa. Despu&eacute;s de activarla, pare el rat&oacute;n por algunos instantes en el punto deseado o haga clic sobre el mismo.",
  1191 +en:"Displays information about a point on the map. After activated, stop the mouse for a moment at the desired point or click on it.",
  1192 +es:"Muestra informaci&oacute;n sobre un punto en el mapa. Despu&eacute;s de activarse, detenga el rat&oacute;n por un momento en el punto deseado o haga click en &eacute;l.",
1193 1193 it:"Mostra gli informazioni su un punto sulla mappa. Dopo averla attivata, fermare il mouse per qualche istante nel punto desiderato o fare clic su di esso."
1194 1194 }],
1195 1195 "d7at":[
1196 1196 {
1197 1197 pt:"etiqueta",
1198   -en:"label",
1199   -es:"etiqueta",
  1198 +en:"Label",
  1199 +es:"Etiqueta",
1200 1200 it:"etiqueta"
1201 1201 }],
1202 1202 "d8":[
1203 1203 {
1204 1204 pt:"Mostra a extens&atilde;o geogr&aacute;fica atual em coordenadas geogr&aacute;ficas",
1205   -en:"It shows the extent of current geographic coordinates",
  1205 +en:"Shows the current extend in geographic coordinates",
1206 1206 es:"Muestra la extensi&oacute;n geogr&aacute;fica actual en coordenadas geogr&aacute;ficas",
1207 1207 it:"Mostra la estensione geografica corrente in coordinate geografiche"
1208 1208 }],
1209 1209 "d8t":[
1210 1210 {
1211 1211 pt:"extens&atilde;o atual",
1212   -en:"total extent",
1213   -es:"extens&atilde;o atual",
  1212 +en:"Actual extent",
  1213 +es:"Extensi&oacute; actual",
1214 1214 it:"extens&atilde;o atual"
1215 1215 }],
1216 1216 "d9":[
... ... @@ -1223,8 +1223,8 @@ it:&quot;Apertura/chiusura della mappa di riferimento&quot;
1223 1223 "d9t":[
1224 1224 {
1225 1225 pt:"mapa de refer&ecirc;ncia",
1226   -en:"reference map",
1227   -es:"mapa de refer&ecirc;ncia",
  1226 +en:"Reference map",
  1227 +es:"Mapa de referencia",
1228 1228 it:"mapa de refer&ecirc;ncia"
1229 1229 }],
1230 1230 "d10":[
... ... @@ -1237,15 +1237,15 @@ it:&quot;Immettere il nuovo valore di scala e clicca sul pulsante Applica per cambiar
1237 1237 "d11":[
1238 1238 {
1239 1239 pt:"Busca dados na Wikipedia na abrang&ecirc;ncia atual do mapa. Fa&ccedil;a um zoom no mapa antes de abrir essa op&ccedil;&atilde;o. Regi&ocirc;es muito extensas podem tornar a busca muito demorada",
1240   -en:"Search data on Wikipedia in the current scope of the map. Make a zoom on the map before opening this option. Regions very extensive can make a very long search ",
1241   -es:"Busca datos en Wikipedia en el alcance actual del mapa. Haga zoom en el mapa antes de abrir esta opci&oacute;n. Regiones muy extensas pueden ocasionar una b&uacute;squeda muy lenta",
1242   -it:"Ricerca dati su Wikipedia nell'ambito corrente della mappa. Fare uno zoom sulla mappa prima dell�apertura di questa opzione. Regioni molto ampie potrebbero causare una ricerca troppo lenta."
  1240 +en:"Search data on Wikipedia in the current extend of the map. Make a zoom on the map before opening this option. Regions very extensive can make a very slow search ",
  1241 +es:"Busca datos en Wikipedia en el alcance actual del mapa. Haga zoom en el mapa antes de abrir esta opci&oacute;n. Regiones muy extensas pueden ocasionar una b&uacute;squeda muy lentas",
  1242 +it:"Ricerca dati su Wikipedia nell'ambito corrente della mappa. Fare uno zoom sulla mappa prima dell’apertura di questa opzione. Regioni molto ampie potrebbero causare una ricerca troppo lenta."
1243 1243 }],
1244 1244 "d11t":[
1245 1245 {
1246 1246 pt:"buscar na Wikip&eacute;dia",
1247   -en:"search in Wikip&eacute;dia",
1248   -es:"buscar na Wikip&eacute;dia",
  1247 +en:"search in Wikipedia",
  1248 +es:"buscar na Wikipedia",
1249 1249 it:"buscar na Wikip&eacute;dia"
1250 1250 }],
1251 1251 "d12":[
... ... @@ -1264,15 +1264,15 @@ it:&quot;Trova IP dell&#39;utente nella mappa&quot;
1264 1264 }],
1265 1265 "d14":[
1266 1266 {
1267   -pt:"Gera arquivo para 3d",
1268   -en:"Generates file for 3d",
1269   -es:"Genera archivo para 3d",
1270   -it:"Genera file per 3d"
  1267 +pt:"Gera arquivo para 3D",
  1268 +en:"Generates file for 3D",
  1269 +es:"Genera archivo para 3D",
  1270 +it:"Genera file per 3D"
1271 1271 }],
1272 1272 "d15":[
1273 1273 {
1274 1274 pt:"Abre o Google Maps, mostrando uma imagem de sat&eacute;lite da regi&atilde;o vista no mapa principal",
1275   -en:"Open Google Maps, showing a satellite image of the region's main views on the map",
  1275 +en:"Open Google Maps, showing a satellite image of the region on the map",
1276 1276 es:"Abre Google Maps, mostrando una imagen de sat&eacute;lite de la regi&oacute;n en el mapa principal",
1277 1277 it:"Apri Google Maps, mostrando un'immagine satellitare della regione vista sulla mappa principale."
1278 1278 }],
... ... @@ -1287,7 +1287,7 @@ it:&quot;Google Maps&quot;
1287 1287 {
1288 1288 pt:"Pesquisa documentos na base de dados Scielo (dados preliminares)",
1289 1289 en:"Search documents in the database Scielo (preliminary data)",
1290   -es:"Busca documentos en la base de datos Scielo (datos preliminares)",
  1290 +es:"Buscar documentos en la base de datos Scielo (datos preliminares)",
1291 1291 it:"Ricerca dei documenti nella base di dati Scielo (dati preliminari)"
1292 1292 }],
1293 1293 "d16t":[
... ... @@ -1307,15 +1307,15 @@ it:&quot;Progetto di confluenza. Punti di intersezione delle coordinate osservate in
1307 1307 "d17t":[
1308 1308 {
1309 1309 pt:"conflu&ecirc;ncias",
1310   -en:"confluences",
1311   -es:"conflu&ecirc;ncias",
  1310 +en:"Confluences",
  1311 +es:"Confluencias",
1312 1312 it:"conflu&ecirc;ncias"
1313 1313 }],
1314 1314 "d18":[
1315 1315 {
1316 1316 pt:"Abre lente de amplia&ccedil;&atilde;o",
1317   -en:"Opens lens to expansion",
1318   -es:"Abre lente de ampliaci&oacute;n",
  1317 +en:"Opens magnifying lens",
  1318 +es:"Abrir lupa",
1319 1319 it:"Apri lente di ingrandimento"
1320 1320 }],
1321 1321 "d18t":[
... ... @@ -1336,7 +1336,7 @@ it:&quot;Aprire le schede in una finestra mobile.&quot;
1336 1336 {
1337 1337 pt:"Redesenha o mapa com as configura&ccedil;&ocirc;es iniciais.",
1338 1338 en:"Reload the map with the initial configurations.",
1339   -es:"Redise&ntilde;a el mapa con las configuraciones iniciales",
  1339 +es:"Recarga el mapa con las configuraciones iniciales",
1340 1340 it:"Ricarica la mappa con la configurazione iniziale."
1341 1341 }],
1342 1342 "d20t":[
... ... @@ -1349,27 +1349,27 @@ it:&quot;reinicia&quot;
1349 1349 "d21":[
1350 1350 {
1351 1351 pt:"Mede a dist&acirc;ncia entre dois ou mais pontos clicados no mapa (menor dist&acirc;ncia). O c&aacute;lculo de dist&acirc;ncia &eacute; aproximado e sua precis&atilde;o depende da escala do mapa.",
1352   -en:"It measures the distance between two or more clicked points on the map (less distance). The calculation of distance is approximate and their accuracy depends on the scale of the map.",
1353   -es:"Mide la distancia entre dos o m&aacute;s puntos marcados en el mapa (menor distancia). El c&aacute;lculo de distancia es aproximado y su precisi&oacute;n depende de la escala del mapa",
1354   -it:"Misura la distanza tra due o pi� punti cliccati sulla mappa (minore distanza). Il calcolo della distanza � approssimativo e la sua precisione dipende dalla scala della mappa."
  1352 +en:"It measures the distance between two or more clicked points on the map (shortest distance). The calculation of distance is approximate and their accuracy depends on the scale of the map.",
  1353 +es:"Mide la distancia entre dos o m&aacute;s puntos marcados en el mapa (menor distancia). El c&aacute;lculo de distancia es aproximado y su precisi&oacute;n depende de la escala del mapa.",
  1354 +it:"Misura la distanza tra due o più punti cliccati sulla mappa (minore distanza). Il calcolo della distanza è approssimativo e la sua precisione dipende dalla scala della mappa."
1355 1355 }],
1356 1356 "d21t":[
1357 1357 {
1358   -pt:"dist&acirc;ncia",
  1358 +pt:"distância",
1359 1359 en:"distance",
1360   -es:"dist&acirc;ncia",
1361   -it:"dist�ncia"
  1360 +es:"distancia",
  1361 +it:"distância"
1362 1362 }],
1363 1363 "d21a":[
1364 1364 {
1365 1365 pt:"Mede a &aacute;rea de um pol&iacute;gono desenhado na tela. O c&aacute;lculo de &aacute;rea &eacute; aproximado e sua precis&atilde;o depende da escala do mapa.",
1366   -en:"It measures the area on the map. The calculation of area is approximate and their accuracy depends on the scale of the map.",
1367   -es:"Mede a &aacute;rea de um pol&iacute;gono desenhado na tela. O c&aacute;lculo de &aacute;rea &eacute; aproximado e sua precis&atilde;o depende da escala do mapa.",
1368   -it:"Misura l'area di un poligono tracciato sullo schermo. Il calcolo della superficie � approssimativo e la sua precisione dipende dalla scala della mappa."
  1366 +en:"It measures the area of a polgono drawn on the screen. The calculation of area is approximate and their accuracy depends on the scale of the map.",
  1367 +es:"Mide el &aacute;rea de un pol&iacute;gono dibujado sobre la pantalla. El c&aacute;lculo del &aacute;rea es aproximado y su precisi&oacute;n depende de la escala del mapa.",
  1368 +it:"Misura l'area di un poligono tracciato sullo schermo. Il calcolo della superficie è approssimativo e la sua precisione dipende dalla scala della mappa."
1369 1369 }],
1370 1370 "d21at":[
1371 1371 {
1372   -pt:"&aacute;rea",
  1372 +pt:-"&aacute;rea",
1373 1373 en:"area",
1374 1374 es:"&aacute;rea",
1375 1375 it:"&aacute;rea"
... ... @@ -1377,36 +1377,36 @@ it:&quot;&amp;aacute;rea&quot;
1377 1377 "d22":[
1378 1378 {
1379 1379 pt:"Insere pontos no mapa em coordenadas geogr&aacute;ficas. Ospontos inclu&iacute;dos podem ser transformados em linhas ou pol&iacute;gonos. Os pontos s&atilde;o armazenados em um tema tempor&aacute;rio, podendo-se fazer o download do arquivo shapefile.",
1380   -en:"Insert points on the map in geographical coordinates. Items included can be converted into lines or polygons. Items are stored in a temporary layer, can be to download shapefile.",
1381   -es:"Inserte puntos en el mapa en coordenadas geogr&aacute;ficas. Los puntos incluidos pueden transformarse en l&iacute;neas o pol&iacute;gonos. Los puntos se almacenan en un tema temporal, pudiendo hacerse el download del archivo shapefile.",
1382   -it:"Inserire punti sulla mappa in coordinate geografiche. I punti inseriti possono essere trasformati in linee o poligoni. I punti vengono memorizzati in un tema temporaneo, con la possibilit� di effettuare il download del file Shapefile."
  1380 +en:"Insert points on the map in geographical coordinates. The points included can be converted into lines or polygons. The points are stored in a temporary layer, and we can download it like shapefile.",
  1381 +es:"Inserte puntos en el mapa en coordenadas geogr&aacute;ficas. Los puntos incluidos pueden transformarse en l&iacute;neas o pol&iacute;gonos. Los puntos se almacenan en un tema temporal, pudiendo hacerse la descarga en formato de archivo shape.",
  1382 +it:"Inserire punti sulla mappa in coordinate geografiche. I punti inseriti possono essere trasformati in linee o poligoni. I punti vengono memorizzati in un tema temporaneo, con la possibilità di effettuare il download del file Shapefile."
1383 1383 }],
1384 1384 "d22t":[
1385 1385 {
1386 1386 pt:"inserir pontos",
1387 1387 en:"insert points",
1388   -es:"inserir pontos",
  1388 +es:"insertar puntos",
1389 1389 it:"inserir pontos"
1390 1390 }],
1391 1391 "d23":[
1392 1392 {
1393 1393 pt:"Insere um gr&aacute;fico no ponto clicado conforme os atributos existentes no tema escolhido. O tema deve possuir itens com valores num&eacute;ricos na tabela de atributos.",
1394   -en:"Insert a graphic in the clicked point as the exist attributes in the chosen layer. The layer must have items with numerical values in the table of attributes.",
1395   -es:"Inserte un gr&aacute;fico en el punto marcado seg&uacute;n los atributos existentes en el tema elejido. El tema debe tener puntos con valores num&eacute;ricos en la tabla de atributos",
  1394 +en:"Insert a graphic of the existing attributes on the selected layer in the clicked point. The layer must have columns with numerical values in the table of attributes.",
  1395 +es:"Inserte un gr&aacute;fico en el punto marcado seg&uacute;n los atributos existentes en el tema seleccionado. El tema debe tener campos con valores num&eacute;ricos en la tabla de atributos.",
1396 1396 it:"Inserire un grafico nel punto cliccato con gli attributi che esistono nel tema scelto. Il tema deve avere gli oggetti con valori numerici contenute nella tabella di attributi."
1397 1397 }],
1398 1398 "d24":[
1399 1399 {
1400 1400 pt:"Abre as ferramentas para sele&ccedil;&atilde;o de elementos de um tema. Os elementos selecionados podem ser utilizados em outras opera&ccedil;&ocirc;es, como buffer e sele&ccedil;&atilde;o por tema.",
1401   -en:"Opens the tools to select elements of a layer. The elements selected can be used in other buffer or selection operation by layer .",
1402   -es:"Abre las herramientas para selecci&oacute;n de elementos de un tema. Los elementos seleccionados pueden utilizarse en otras ",
  1401 +en:"Opens the tools to select elements of a layer. The elements selected can be used in other operations like buffer or selection by theme.",
  1402 +es:"Abre las herramientas para selecci&oacute;n de elementos de un tema. Los elementos seleccionados pueden utilizarse en otras operaciones como &aacute;reas de influencia o selecci&oacute;n por tema",
1403 1403 it:"Aprire gli strumenti per selezionare gli elementi di un tema. Gli elementi selezionati possono essere utilizzati in altre operazioni, come ad esempio buffer e selezione per tema."
1404 1404 }],
1405 1405 "d24t":[
1406 1406 {
1407 1407 pt:"Selecionar",
1408 1408 en:"Select",
1409   -es:"Selecionar",
  1409 +es:"Seleccionar",
1410 1410 it:"Selecionar"
1411 1411 }],
1412 1412 "d25":[
... ... @@ -1419,14 +1419,14 @@ it:&quot;Inserisci il testo sulla mappa cliccando su un punto. Utilizzare questa opzi
1419 1419 "d25t":[
1420 1420 {
1421 1421 pt:"Inserir texto",
1422   -en:"Text insert",
1423   -es:"Inserir texto",
  1422 +en:"Insert text",
  1423 +es:"Insertar texto",
1424 1424 it:"Inserir texto"
1425 1425 }],
1426 1426 "d26":[
1427 1427 {
1428 1428 pt:"Escolha o visual para os bot&otilde;es e outras caracter&iacute;sticas visuais do mapa",
1429   -en:"Choose look for the buttons and other map's visual characteristics",
  1429 +en:"Choose the visual for the buttons and other map's visual characteristics",
1430 1430 es:"Elija la vista para los botones y otras caracter&iacute;sticas visuales del mapa",
1431 1431 it:"Scegli il visuale (??) per i pulsanti e le altre caratteristiche visive della mappa."
1432 1432 }],
... ... @@ -1440,29 +1440,29 @@ it:&quot;Interface&quot;
1440 1440 "d28":[
1441 1441 {
1442 1442 pt:"Aguarde...gerando os arquivos",
1443   -en:"Wait...",
1444   -es:"Espere...",
  1443 +en:"Wait... generating files",
  1444 +es:"Espere... generando los archivos",
1445 1445 it:"Attendere..."
1446 1446 }],
1447 1447 "d29":[
1448 1448 {
1449   -pt:"Esta&ccedil;&otilde;es metar",
1450   -en:"Metar stations",
1451   -es:"Esta&ccedil;&otilde;es metar",
  1449 +pt:"Esta&ccedil;&otilde;es METAR",
  1450 +en:"METAR-Br Stations",
  1451 +es:"Estaciones METAR-Br",
1452 1452 it:"Esta&ccedil;&otilde;es metar"
1453 1453 }],
1454 1454 "d30":[
1455 1455 {
1456 1456 pt:"Linha do tempo",
1457   -en:"Time line",
1458   -es:"Linha do tempo",
  1457 +en:"Timeline",
  1458 +es:"L&iacute;nea del tiempo",
1459 1459 it:"Linha do tempo"
1460 1460 }],
1461 1461 "d31":[
1462 1462 {
1463 1463 pt:"N&atilde;o existe nenhuma camada com etiquetas ativas",
1464 1464 en:"There is no layer with active labels",
1465   -es:"N&atilde;o existe nenhuma camada com etiquetas ativas",
  1465 +es:"No existe ninguna capa con etiquetas activas",
1466 1466 it:"N&atilde;o existe nenhuma camada com etiquetas ativas"
1467 1467 }],
1468 1468 "d32":[
... ... @@ -1476,70 +1476,70 @@ it:&quot;Applicazioni&quot;
1476 1476 {
1477 1477 pt:"Navega&ccedil;&atilde;o com o mouse",
1478 1478 en:"Mouse navigation",
1479   -es:"Navega&ccedil;&atilde;o com o mouse",
  1479 +es:"Navegaci&oacute;n con el rat&oacute;n",
1480 1480 it:"Navega&ccedil;&atilde;o com o mouse"
1481 1481 }],
1482 1482 "ge2":[
1483 1483 {
1484 1484 pt:"Barra de status",
1485 1485 en:"Status bar",
1486   -es:"Barra de status",
  1486 +es:"Barra de estado",
1487 1487 it:"Barra de status"
1488 1488 }],
1489 1489 "ge3":[
1490 1490 {
1491   -pt:"Reference map",
1492   -en:"Mapa de refer&ecirc;ncia",
1493   -es:"Mapa de refer&ecirc;ncia",
  1491 +pt:"Mapa de refer&ecirc;ncia",
  1492 +en:"Reference map",
  1493 +es:"Mapa de referencia",
1494 1494 it:"Mapa de refer&ecirc;ncia"
1495 1495 }],
1496 1496 "ge4":[
1497 1497 {
1498 1498 pt:"Escala e legenda",
1499 1499 en:"Scale and legend",
1500   -es:"Escala e legenda",
  1500 +es:"Escala y leyenda",
1501 1501 it:"Escala e legenda"
1502 1502 }],
1503 1503 "ge5":[
1504 1504 {
1505 1505 pt:"Atmosfera",
1506 1506 en:"Atmosphere",
1507   -es:"Atmosfera",
  1507 +es:"Atm&oacute;sfera",
1508 1508 it:"Atmosfera"
1509 1509 }],
1510 1510 "ge6":[
1511 1511 {
1512 1512 pt:"Grade de coordenadas",
1513 1513 en:"Coordinates grid",
1514   -es:"Grade de coordenadas",
  1514 +es:"Grilla de coordenadas",
1515 1515 it:"Grade de coordenadas"
1516 1516 }],
1517 1517 "ge7":[
1518 1518 {
1519 1519 pt:"Luz do sol",
1520 1520 en:"Sunshine",
1521   -es:"Luz do sol",
  1521 +es:"Luz del sol",
1522 1522 it:"Luz do sol"
1523 1523 }],
1524 1524 "ge8":[
1525 1525 {
1526 1526 pt:"Limites pol&iacute;ticos",
1527 1527 en:"Political boundaries",
1528   -es:"Limites pol&iacute;ticos",
  1528 +es:"L&iacute;mites pol&iacute;ticos",
1529 1529 it:"Limites pol&iacute;ticos"
1530 1530 }],
1531 1531 "ge9":[
1532 1532 {
1533   -pt:"Constru&ccedil;&otilde;es em 3d",
  1533 +pt:"Constru&ccedil;&otilde;es em 3D",
1534 1534 en:"Buildings in 3D",
1535   -es:"Constru&ccedil;&otilde;es em 3d",
1536   -it:"Constru&ccedil;&otilde;es em 3d"
  1535 +es:"Construciones en 3D",
  1536 +it:"Constru&ccedil;&otilde;es em 3D"
1537 1537 }],
1538 1538 "ge10":[
1539 1539 {
1540 1540 pt:"Estradas",
1541 1541 en:"Roads",
1542   -es:"Estradas",
  1542 +es:"Carreteras",
1543 1543 it:"Estradas"
1544 1544 }],
1545 1545 "ge11":[
... ... @@ -1553,14 +1553,14 @@ it:&quot;Terreno&quot;
1553 1553 {
1554 1554 pt:"P&aacute;gina principal",
1555 1555 en:"Home",
1556   -es:"P&aacute;gina principal",
  1556 +es:"Inicio",
1557 1557 it:"P&aacute;gina principal"
1558 1558 }],
1559 1559 "x2":[
1560 1560 {
1561 1561 pt:"Lista de menus",
1562 1562 en:"Menu list",
1563   -es:"Lista de menus",
  1563 +es:"Lista de men&uacute;s",
1564 1564 it:"Lista de menus"
1565 1565 }],
1566 1566 "x3":[
... ... @@ -1573,49 +1573,49 @@ it:&quot;Miniaturas&quot;
1573 1573 "x4":[
1574 1574 {
1575 1575 pt:"Pesquisa na INDE",
1576   -en:"Search in SDI",
1577   -es:"Pesquisa na INDE",
  1576 +en:"Search in SDI of INDE-Br",
  1577 +es:"Buscar en IDE del INDE-Br",
1578 1578 it:"Pesquisa na INDE"
1579 1579 }],
1580 1580 "x5":[
1581 1581 {
1582 1582 pt:"Editar subgrupos",
1583   -en:"Subgroups editing",
  1583 +en:"Edit subgroups",
1584 1584 es:"Editar subgrupos",
1585 1585 it:"Editar subgrupos"
1586 1586 }],
1587 1587 "x6":[
1588 1588 {
1589 1589 pt:"Editar temas",
1590   -en:"Theme editing",
  1590 +en:"Edit Theme",
1591 1591 es:"Editar temas",
1592 1592 it:"Editar temas"
1593 1593 }],
1594 1594 "x7":[
1595 1595 {
1596 1596 pt:"op&ccedil;&atilde;o vis&iacute;vel apenas para editores",
1597   -en:"option visible only to editors",
1598   -es:"op&ccedil;&atilde;o vis&iacute;vel apenas para editores",
  1597 +en:"option visible only for editors",
  1598 +es:"opci&oacute;n visible solo para editores",
1599 1599 it:"op&ccedil;&atilde;o vis&iacute;vel apenas para editores"
1600 1600 }],
1601 1601 "x8":[
1602 1602 {
1603 1603 pt:"Sistema de administra&ccedil;&atilde;o",
1604   -en:"Management System",
1605   -es:"Sistema de administra&ccedil;&atilde;o",
  1604 +en:"Admin. System",
  1605 +es:"Sistema de administraci&oacute;n",
1606 1606 it:"Sistema de administra&ccedil;&atilde;o"
1607 1607 }],
1608 1608 "x9":[
1609 1609 {
1610 1610 pt:"Editar &aacute;rvore",
1611 1611 en:"Edit tree",
1612   -es:"Editar &aacute;rvore",
  1612 +es:"Editar &aacute;rbol",
1613 1613 it:"Editar &aacute;rvore"
1614 1614 }],
1615 1615 "x10":[
1616 1616 {
1617 1617 pt:"Editar menus",
1618   -en:"Edit menu",
  1618 +en:"Edit menus",
1619 1619 es:"Editar menus",
1620 1620 it:"Editar menus"
1621 1621 }],
... ... @@ -1623,9 +1623,9 @@ it:&quot;Editar menus&quot;
1623 1623 {
1624 1624 pt:"Mostra a legenda em uma janela",
1625 1625 en:"Show the legend in a window",
1626   -es:"Mostra a legenda em uma janela",
  1626 +es:"Muestra una leyenda en una ventana",
1627 1627 it:"Mostra a legenda em uma janela"
1628   -}],
  1628 +}],//revisto por valenty ate aqui em 4 de julho de 2012
1629 1629 "x13":[
1630 1630 {
1631 1631 pt:"&Acute;rvore de camadas n&atilde;o encontrada",
... ...
classesphp/mapa_controle.php
... ... @@ -162,6 +162,7 @@ include_once (&quot;carrega_ext.php&quot;);
162 162 include_once("funcoes_gerais.php");
163 163 if ($funcao == "criaMapa")
164 164 {
  165 + session_name("i3GeoPHP");
165 166 unset($GLOBALS);
166 167 session_destroy();
167 168 $_COOKIE = array();
... ...
classesphp/mapa_inicia.php
... ... @@ -102,12 +102,7 @@ Retorno:
102 102 */
103 103 function iniciaMapa()
104 104 {
105   - global $emailInstituicao,$openid,$interfacePadrao,$mensagemInicia,$kmlurl,$tituloInstituicao,$tempo,$navegadoresLocais,$editor,$locaplic,$embedLegenda,$map_file,$mapext,$w,$h,$R_path,$locmapserv,$utilizacgi,$expoeMapfile,$interface;
106   - /**
107   - * TODO depreciar na versão 4.8
108   - */
109   - if(!isset($editor) || empty($editor))
110   - {$editor = "nao";}
  105 + global $emailInstituicao,$openid,$interfacePadrao,$mensagemInicia,$kmlurl,$tituloInstituicao,$tempo,$navegadoresLocais,$locaplic,$embedLegenda,$map_file,$mapext,$w,$h,$R_path,$locmapserv,$utilizacgi,$expoeMapfile,$interface;
111 106 if(!isset($kmlurl))
112 107 {$kmlurl = "";}
113 108 error_reporting(0);
... ... @@ -287,10 +282,28 @@ function iniciaMapa()
287 282 $copyright = $shape->text;
288 283 }
289 284 }
290   - /**
291   - * TODO depreciar na versão 4.8
292   - */
293   - $res["editor"] = $editor;
  285 + $res["editor"] = "nao";
  286 + //
  287 + //papeis do usuario se estiver logado
  288 + //
  289 + $res["papeis"] = array();
  290 + if(!empty($_COOKIE["i3geocodigologin"])){
  291 + session_write_close();
  292 + session_name("i3GeoLogin");
  293 + session_id($_COOKIE["i3geocodigologin"]);
  294 + session_start();
  295 + //var_dump($_SESSION);exit;
  296 + if(!empty($_SESSION["usuario"]) && $_SESSION["usuario"] == $_COOKIE["i3geousuariologin"]){
  297 + $res["papeis"] = $_SESSION["papeis"];
  298 + }
  299 + }
  300 + //verifica se o usuario logado pode ver as opcoes de edicao do sistema de admin dentro do mapa
  301 + foreach($res["papeis"] as $p){
  302 + if($p < 3){
  303 + $res["editor"] = "sim";
  304 + }
  305 + }
  306 + //
294 307 $res["mapexten"] = $ext;
295 308 $res["mapscale"] = $escalaMapa;
296 309 $res["mapres"] = $m->mapa->resolution;
... ...
classesphp/mapa_openlayers.php
... ... @@ -125,7 +125,7 @@ if(!isset($_GET[&quot;telaR&quot;])){//no caso de projecoes remotas, o mapfile nao e alter
125 125 }
126 126 }
127 127 $l->set("template","none.htm");
128   - if($_GET["REQUEST"] == "GetFeatureInfo" || $_GET["request"] == "getfeature"){
  128 + if($_GET["REQUEST"] == "GetFeatureInfo" || $_GET["REQUEST"] == "getfeature"){
129 129 $l->setmetadata("gml_include_items","all");
130 130 $l->setmetadata("WMS_INCLUDE_ITEMS","all");
131 131 $l->setmetadata("WFS_INCLUDE_ITEMS","all");
... ... @@ -139,8 +139,10 @@ if($_GET[&quot;layer&quot;] == &quot;&quot;)
139 139 {$cache = true;}
140 140 if($_GET == false)
141 141 {$cache = false;}
142   -if(strtolower($_GET["DESLIGACACHE"]) == "sim")
143   -{$cache = false;}
  142 +if(!empty($_GET["DESLIGACACHE"])){
  143 + if(strtolower($_GET["DESLIGACACHE"]) == "sim")
  144 + {$cache = false;}
  145 +}
144 146 if(trim($_GET["TIPOIMAGEM"]) != "" && trim($_GET["TIPOIMAGEM"]) != "nenhum")
145 147 {$cache = false;}
146 148 if($qy)
... ...
ferramentas/salvamapfile/index.js
... ... @@ -43,23 +43,23 @@ Classe: i3GEOF.salvamapfile
43 43 i3GEOF.salvamapfile = {
44 44 /*
45 45 Variavel: aguarde
46   -
  46 +
47 47 Estilo do objeto DOM com a imagem de aguarde existente no cabe&ccedil;alho da janela.
48 48 */
49 49 aguarde: "",
50 50 /*
51 51 Variavel: tema
52   -
  52 +
53 53 c&oacute;digo do tema
54 54 */
55 55 tema: i3GEO.temaAtivo,
56 56 /*
57 57 Function: inicia
58   -
  58 +
59 59 Inicia a ferramenta. &Eacute; chamado por criaJanelaFlutuante
60   -
  60 +
61 61 Parametro:
62   -
  62 +
63 63 iddiv {String} - id do div que receber&aacute; o conteudo HTML da ferramenta
64 64 */
65 65 inicia: function(iddiv){
... ... @@ -70,13 +70,11 @@ i3GEOF.salvamapfile = {
70 70 retorno = function(retorno){
71 71 i3GEOF.salvamapfile.aguarde.visibility = "hidden";
72 72 var nome = retorno.data.nomeoriginal;
73   - if(nome == "")
74   - {
75   - $i(iddiv).innerHTML = "<p class=paragrafo >Não existe um arquivo mapfile em i3geo/temas j&aacute; criado para essa camada. Utilize o sistema de administra&ccedil;ão para <a href='"+i3GEO.configura.locaplic+"/admin/html/editormapfile.html' target=_blank >criar um</a>";
  73 + if(nome == ""){
  74 + $i(iddiv).innerHTML = "<p class=paragrafo >Não existe um arquivo mapfile cadastrado para essa camada. Utilize o sistema de administra&ccedil;ão para <a href='"+i3GEO.configura.locaplic+"/admin/html/editormapfile.html' target=_blank >criar um</a>";
76 75 }
77   - else
78   - {
79   - var ins = "<p class=paragrafo >O tema ("+nome+") ativo possui um mapfile j&aacute; criado. Ao salvar, as defini&ccedil;&otilde;es originais de legenda, filtros e outras, serão substitu&iacute;das pelas atuais" +
  76 + else{
  77 + var ins = "<p class=paragrafo >Apenas usu&aacute;rios cadastrados como editores podem salvar um mapfile. O tema ("+nome+") ativo possui um mapfile j&aacute; criado. Ao salvar, as defini&ccedil;&otilde;es originais de legenda, filtros e outras, serão substitu&iacute;das pelas atuais" +
80 78 '<span id="i3GEOsalvamapconcluido" style=display:none;color:red > Conclu&iacute;do!</span></p>' +
81 79 '<br><p class=paragrafo ><input size=20 id=i3GEOsalvamapfilebotao1 type=button value="Salvar" />&nbsp;&nbsp;<input size=20 id=i3GEOsalvamapfilebotao2 type=button value="Testar" />';
82 80 $i(iddiv).innerHTML = ins;
... ... @@ -87,7 +85,7 @@ i3GEOF.salvamapfile = {
87 85 new YAHOO.widget.Button(
88 86 "i3GEOsalvamapfilebotao2",
89 87 {onclick:{fn: function(){window.open(i3GEO.configura.locaplic+"/testamapfile.php?map="+nome);}}}
90   - );
  88 + );
91 89 }
92 90 };
93 91 cp.set_response_type("JSON");
... ... @@ -97,9 +95,9 @@ i3GEOF.salvamapfile = {
97 95 },
98 96 /*
99 97 Function: criaJanelaFlutuante
100   -
  98 +
101 99 Cria a janela flutuante para controle da ferramenta.
102   - */
  100 + */
103 101 criaJanelaFlutuante: function(){
104 102 var janela,divid,titulo,cabecalho,minimiza;
105 103 cabecalho = function(){};
... ... @@ -110,7 +108,7 @@ i3GEOF.salvamapfile = {
110 108 titulo = "Salva o tema <i>"+i3GEO.temaAtivo+"</i> <a class=ajuda_usuario target=_blank href='" + i3GEO.configura.locaplic + "/ajuda_usuario.php?idcategoria=5&idajuda=92' >&nbsp;&nbsp;&nbsp;</a>";
111 109 janela = i3GEO.janela.cria(
112 110 "330px",
113   - "120px",
  111 + "130px",
114 112 "",
115 113 "",
116 114 "",
... ... @@ -129,7 +127,7 @@ i3GEOF.salvamapfile = {
129 127 },
130 128 /*
131 129 Function: salva
132   -
  130 +
133 131 Salva o mapfile
134 132 */
135 133 salva: function(nome,mapfile,nomelayer){
... ...
ms_criamapa.php
... ... @@ -261,7 +261,6 @@ session_start();
261 261 if (!isset($g_sid)){$g_sid="";}
262 262 if(isset($_SESSION["map_file"]) || $g_sid != "" || $g_sid == "undefined")
263 263 {session_regenerate_id();$_SESSION = array();}
264   -
265 264 /*
266 265 Aguarde
267 266  
... ...
temas/locali.map
1 1 MAP
2   - FONTSET "c:\ms4w\apache\htdocs\i3geo/symbols/fontes.txt"
3   - SYMBOLSET "c:\ms4w\apache\htdocs\i3geo\symbols\simbolosv6.sym"
  2 + FONTSET "/var/www/i3geo/symbols/fontes.txt"
  3 + SYMBOLSET "/var/www/i3geo/symbols/simbolosv6.sym"
4 4 LAYER
5 5 CONNECTION ""
6   -
7   - DATA "c:\ms4w\apache\htdocs\i3geo\aplicmap\dados\locali"
  6 +
  7 + DATA "/var/www/i3geo/aplicmap/dados/locali"
8 8 METADATA
9 9 "cache" "sim"
10 10 "TIP" "TIPO,ANOCRIA,NOMELOC"
... ...