From 5773955fc5bdea532c0486c5fd70c94d4793b214 Mon Sep 17 00:00:00 2001 From: edmarmoretti Date: Mon, 8 Aug 2016 19:05:39 -0300 Subject: [PATCH] Atualização do código --- ferramentas/animagif/exec.php | 29 +++++++++++++++++++++++------ ferramentas/aplicarsld/upload.php | 10 ++++++---- ferramentas/atalhoscamada/index.js | 11 +++++++++++ ferramentas/atalhoscamada/template_mst.html | 5 ++++- ferramentas/atalhosmapa/index.js | 2 +- ferramentas/baseguias/index.htm | 27 +++++++++++++-------------- ferramentas/busca/index.js | 2 +- ferramentas/buscafotos/funcoes.php | 13 ++++++++++++- ferramentas/buscafotos/index.js | 2 +- ferramentas/buscarapida/gadget.php | 1 + ferramentas/carregamapa/upload.php | 8 ++++++-- ferramentas/cesium/kml3d.php | 19 ++++++++----------- ferramentas/colourramp/index.php | 9 +++++---- ferramentas/conectargeorss/index.htm | 6 +++--- ferramentas/confluence/index.js | 2 +- ferramentas/cores.htm | 30 +++++++++++++++--------------- ferramentas/editorol/editorol.js | 14 ++++++++++---- ferramentas/editorol/editorol_compacto.js | 2 +- ferramentas/geolocal/index.js | 24 ++++++++++++------------ ferramentas/googlemaps1/endereco.php | 6 +++++- ferramentas/heatmap/funcoes.php | 2 +- ferramentas/identifica/index.js | 137 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-------------------------------------------------------------------- ferramentas/identifica/template_mst.html | 12 +++++++----- ferramentas/imprimir/a4lpaisagempdf.php | 15 +++++++++------ ferramentas/imprimir/aggpng.php | 10 ++++++---- ferramentas/imprimir/geotif.php | 12 ++++++++---- ferramentas/imprimir/geraimagens.php | 11 +++++++---- ferramentas/imprimir/jpeg.php | 10 ++++++---- ferramentas/imprimir/svg.php | 10 ++++++---- ferramentas/imprimir/swf.php | 13 ++++++------- ferramentas/inicia.php | 21 ++++++++++++++++----- ferramentas/inseregrafico/index.js | 2 +- ferramentas/inserexy2/index.js | 4 ++-- ferramentas/loginusuario/template_mst_bt.html | 13 ++++++++----- ferramentas/markercluster/funcoes.php | 2 +- ferramentas/metar/index.js | 2 +- ferramentas/metar/metarextensao.php | 5 +++-- ferramentas/metar/metarproxima.php | 5 ++++- ferramentas/minhaferramenta/index.htm | 16 ++++++++-------- ferramentas/mostraexten/index.js | 2 +- ferramentas/nuvemtags/index.js | 2 +- ferramentas/nuvemtagsflash/index.htm | 2 +- ferramentas/parametrossql/exec.php | 7 ++++--- ferramentas/preferencias/index.js | 4 ---- ferramentas/recline/default.php | 3 ++- ferramentas/recline/tabela.php | 3 ++- ferramentas/scielo/funcoes.php | 5 ++++- ferramentas/selecao/index.js | 6 +++--- ferramentas/tabela/index.js | 2 +- ferramentas/tabela/relatorio.php | 20 ++++++++++++++++---- ferramentas/wiki/funcoes.php | 4 +++- ferramentas/wiki/index.js | 2 +- 52 files changed, 347 insertions(+), 239 deletions(-) diff --git a/ferramentas/animagif/exec.php b/ferramentas/animagif/exec.php index da05ac3..b63549e 100755 --- a/ferramentas/animagif/exec.php +++ b/ferramentas/animagif/exec.php @@ -15,7 +15,7 @@ if(empty($_GET)){ &legenda = sim|nao
&transparente = sim|nao
&operador = operador que será utilizado no filtro. Por default utilza-se 'igual a'. Pode ser ainda lt (menor que) ou gt (maior que)
- &nulos = lista de valores, separados por ',' que não serão considerados ao aplicar o filtro, por exemplo &nulos=-, ,0
+ &nulos = lista de valores, separados por ',' que não serão considerados ao aplicar o filtro, por exemplo &nulos=-, ,0
&tipocolunat = string|numero tipo de dados existentes na coluna que contém os valores para o filtro
O tema pode ter parâmetros já armazenados no METADATA animagif, criado pelo formulário do i3Geo. Para forçar o uso desses parâmetros, basta passar &colunat como vazio. @@ -28,6 +28,8 @@ if(empty($_GET)){ include("../../ms_configura.php"); include("../../classesphp/funcoes_gerais.php"); include("../../classesphp/carrega_ext.php"); +include_once (dirname(__FILE__)."/../../classesphp/sani_request.php"); +$_GET = array_merge($_GET,$_POST); // //verifica se existem parametros definidos no proprio mapfile // @@ -50,8 +52,19 @@ if(empty($_GET["colunat"])){ $_GET["nulos"] = $animagif["nulos"]; $_GET["tipocolunat"] = $animagif["tipocolunat"]; } - -include("../../classesphp/pega_variaveis.php"); +//podem vir da url tbm +$tema = $_GET["tema"]; +$colunat = $_GET["colunat"]; +$tempo = $_GET["tempo"]; +$w = $_GET["w"]; +$h = $_GET["h"]; +$cache = $_GET["cache"]; +$mapext = $_GET["mapext"]; +$legenda = $_GET["legenda"]; +$transparente = $_GET["transparente"]; +$operador = $_GET["operador"]; +$nulos = $_GET["nulos"]; +$tipocolunat = $_GET["tipocolunat"]; $v = versao(); $vi = $v["inteiro"]; @@ -62,6 +75,7 @@ if($cache == "nao"){ } else { $nometemp = md5(implode("",$_GET)); } +$nometemp = "animagif".$nometemp; if(empty($tempo)){ $tempo = 40; } @@ -83,11 +97,13 @@ if(empty($operador)){ else{ if($operador == "lt"){ $operador = "<"; - } - if($operador == "gt"){ + } elseif ($operador == "gt"){ $operador = ">"; } } +if(!in_array($operador,array("=","<",">"))){ + exit; +} $nulos = explode(",",$nulos); $arqtemp = $dir_tmp."/".$nometemp; @@ -115,6 +131,7 @@ $versao = versao(); $versao = $versao["principal"]; //cria um mapa temporario +//base vem de ms_configura if($base == "" or !isset($base)){ $base = ""; if (strtoupper(substr(PHP_OS, 0, 3) == 'WIN')){ @@ -202,7 +219,6 @@ for ($i=0;$i < $numlayers;$i++){ } $mapa->save($arqtemp.".map"); - //aplica a extensao geografica $layer = $mapa->getlayerbyname($tema); @@ -257,6 +273,7 @@ if($transparente == "sim"){ $mapa->save($arqtemp.".map"); $mapa = ms_newMapObj($arqtemp.".map"); +restauraCon($arqtemp.".map",$postgis_mapa); /* if(validaAcessoTemas($arqtemp.".map",false) == true){ diff --git a/ferramentas/aplicarsld/upload.php b/ferramentas/aplicarsld/upload.php index d078612..7daae97 100755 --- a/ferramentas/aplicarsld/upload.php +++ b/ferramentas/aplicarsld/upload.php @@ -1,15 +1,17 @@ @@ -42,7 +44,7 @@ if (isset($_FILES['i3GEOaplicarsld']['name'])) { echo "

Arquivo enviado. Aplicando SLD...$tema

"; $layer = $mapa->getlayerbyname($tema); - $arq = $dirmap."/".$_FILES['i3GEOaplicarsld']['name']; + $arq = $dirmap."/".$ArquivoDest; $abre = fopen($arq, "r"); $buffer = fread($abre, filesize($arq)); fclose($abre); diff --git a/ferramentas/atalhoscamada/index.js b/ferramentas/atalhoscamada/index.js index a2c0701..ce11731 100755 --- a/ferramentas/atalhoscamada/index.js +++ b/ferramentas/atalhoscamada/index.js @@ -26,6 +26,7 @@ i3GEOF.atalhoscamada = dicionario["etiquetas"] = $trad("t27"); dicionario["filtro"] = $trad("t29"); dicionario["tabela"] = $trad("t31"); + dicionario["selecao"] = $trad("x51"); dicionario["grafico"] = $trad("t37"); dicionario["editaLegenda"] = $trad("t33"); dicionario["destaca"] = $trad("t35"); @@ -196,6 +197,16 @@ i3GEOF.atalhoscamada = }); b.addClass("abrir"); } + if (funcoes.selecao === true) { + b = new YAHOO.widget.Button(idjanela+"i3GEOFatalhoscamadaSelecao", { + onclick : { + fn : function() { + i3GEO.mapa.dialogo.selecao(); + } + } + }); + b.addClass("abrir"); + } if (funcoes.grafico === true) { b = new YAHOO.widget.Button(idjanela+"i3GEOFatalhoscamadaGrafico", { onclick : { diff --git a/ferramentas/atalhoscamada/template_mst.html b/ferramentas/atalhoscamada/template_mst.html index 48a38e1..345eeef 100755 --- a/ferramentas/atalhoscamada/template_mst.html +++ b/ferramentas/atalhoscamada/template_mst.html @@ -48,6 +48,9 @@

+ +

+

@@ -67,7 +70,7 @@

-

+


Login:


diff --git a/ferramentas/atalhosmapa/index.js b/ferramentas/atalhosmapa/index.js index f984d28..d97f436 100755 --- a/ferramentas/atalhosmapa/index.js +++ b/ferramentas/atalhosmapa/index.js @@ -21,7 +21,7 @@ i3GEOF.atalhosmapa = m = i3GEO.configura.oMenuDataOriginal.submenus.ferramentas; n = m.length; for(i=0;i "; - janela = i3GEO.janela.cria("290", "220", "", "", "", titulo, "i3GEOF.geolocal", false, "hd", cabecalho, minimiza); + janela = i3GEO.janela.cria("310", "230", "", "", "", titulo, "i3GEOF.geolocal", false, "hd", cabecalho, minimiza); divid = janela[2].id; $i("i3GEOF.geolocal_corpo").style.backgroundColor = "white"; $i("i3GEOF.geolocal_corpo").style.textAlign = "left"; @@ -143,7 +143,7 @@ i3GEOF.geolocal = temp = function() { var api; if (i3GEO.Interface["ATUAL"] === "openlayers") { - if (typeof OpenLayers == "undefined") { + if (typeof OpenLayers.Control == "undefined") { api = "ol3"; } else { api = "openlayers"; @@ -256,7 +256,7 @@ i3GEOF.geolocal = limpa : function() { i3GEOF.geolocal.posicoes = []; if (i3GEO.Interface["ATUAL"] === "openlayers") { - if (typeof OpenLayers == "undefined") { + if (typeof OpenLayers.Control == "undefined") { api = "ol3"; } else { api = "openlayers"; diff --git a/ferramentas/googlemaps1/endereco.php b/ferramentas/googlemaps1/endereco.php index f8dab54..bd36cec 100755 --- a/ferramentas/googlemaps1/endereco.php +++ b/ferramentas/googlemaps1/endereco.php @@ -1,6 +1,10 @@ diff --git a/ferramentas/heatmap/funcoes.php b/ferramentas/heatmap/funcoes.php index 3f58ab0..2e09d6c 100755 --- a/ferramentas/heatmap/funcoes.php +++ b/ferramentas/heatmap/funcoes.php @@ -66,7 +66,7 @@ function heatmapMapfile(){ ms_newLayerObj($mapa, $layern); $mapa->save($map_file); if(!empty($postgis_mapa)){ - substituiCon($map_file,$postgis_mapa); + //substituiCon($map_file,$postgis_mapa); } } return $map_file; diff --git a/ferramentas/identifica/index.js b/ferramentas/identifica/index.js index b7667fb..d70a73b 100755 --- a/ferramentas/identifica/index.js +++ b/ferramentas/identifica/index.js @@ -45,7 +45,7 @@ if (typeof (i3GEOF) === 'undefined') { } /* * Classe: i3GEOF.identifica - * + * */ // TODO na listagem de atributos, incluir opcao para abrir os valores das variaveis associadas a uma regiao, quando codigo_tipo_regiao for @@ -67,63 +67,64 @@ i3GEOF.identifica = mustacheHash : function(idjanela) { var dicionario = i3GEO.idioma.objetoIdioma(i3GEOF.identifica.dicionario); dicionario["idjanelaA"] = idjanela; + dicionario["locaplic"] = i3GEO.configura.locaplic; return dicionario; }, /* * Propriedade: mostraLinkGeohack - * + * * Mostra ou não o link para abrir o site GeoHack. - * + * * Este site permite o uso de vários buscadores disponíveis na internet. - * + * * Type: {boolean} */ mostraLinkGeohack : true, /* * Propriedade: mostraSistemasAdicionais - * + * * Mostra ou não a lista de sistemas adicionais de busca de dados. - * + * * Type: {boolean} */ mostraSistemasAdicionais : true, /* * Variavel: tema - * + * * Código do tema que será pesquisado - * + * * Type: {String} */ tema : "", /* * Variavel: x - * + * * Coordenada x - * + * * Type: {Numeric} */ x : 0, /* * Variavel: y - * + * * Coordenada y - * + * * Type: {Numeric} */ y : 0, /* * Variavel: sistemasAdicionais - * + * * Guarda a lista de sistemas adicionais que são incluídos na seleção de temas - * + * * Type: {Array} */ sistemasAdicionais : [], /* * Variavel: dadosIdentifica - * + * * Guarda os dados obtidos com a chamada em AJAX de identificação - * + * * Type: {Array} */ dadosIdentifica : [], @@ -136,9 +137,9 @@ i3GEOF.identifica = }, /* * Function: iniciaDicionario - * + * * Carrega o dicionário e chama a função que inicia a ferramenta - * + * * O Javascript é carregado com o id i3GEOF.nomedaferramenta.dicionario_script */ iniciaDicionario : function(x, y, id) { @@ -164,24 +165,24 @@ i3GEOF.identifica = }, /* * Function: inicia - * + * * Inicia a janela de informações - * + * * Parameters: - * + * * tema {String} - código do tema, existente no mapfile armazenado na seção, que será consultado * já na inicialização - * + * * x {Numeric} - coordenada x do ponto que será utilizado para busca dos atributos - * + * * y {Numeric} - coordenada y do ponto - * + * * iddiv {String} - id do elemento html onde o conteúdo da ferramenta será incluido - * + * * mostraLinkGeohack {boolean} - mostra ou não o link para o site geohacks - * + * * mostraSistemasAdicionais {boolean} - mostra ou não os sistemas adicionais de busca de dados - * + * * idjanela {string} */ inicia : function(tema, x, y, iddiv, mostraLinkGeohack, mostraSistemasAdicionais, idjanela) { @@ -325,7 +326,7 @@ i3GEOF.identifica = }, /* * Function: iniciaJanelaFlutuante - * + * * Cria a janela flutuante para controle da ferramenta. */ iniciaJanelaFlutuante : function(x, y) { @@ -361,8 +362,8 @@ i3GEOF.identifica = + "/ajuda_usuario.php?idcategoria=8&idajuda=70' > "; janela = i3GEO.janela.cria( - "450px", - "250px", + "470px", + "270px", "", "", "", @@ -429,7 +430,7 @@ i3GEOF.identifica = }, /* * Function: ativaFoco - * + * * Refaz a interface da ferramenta quando a janela flutuante tem seu foco ativado */ ativaFoco : function(id) { @@ -453,11 +454,11 @@ i3GEOF.identifica = }, /* * Function: html - * + * * Gera o código html para apresentação das opções da ferramenta - * + * * Retorno: - * + * * String com o código html */ html : function(idjanela) { @@ -534,17 +535,17 @@ i3GEOF.identifica = }, /* * Function: listaTemas - * + * * Incluí a lista de temas para o usuário escolher - * + * * Veja: - * + * * - * + * * Parametros: - * + * * tipo {String} - ligados|todos lista apenas os temas que estão visíveis no mapa ou todos os temas - * + * * id {string} id da janela em foco */ listaTemas : function(tipo) { @@ -562,13 +563,13 @@ i3GEOF.identifica = }, /* * Function: montaListaTemas - * + * * Monta a lista de temas na forma de botões 'radio' - * + * * O resultado é inserido no div com id "listaTemas" - * + * * Parametros: - * + * * retorno {JSON} - objeto retornado por i3GEO.php.listaTemas ou por i3GEO.arvoreDeCamadas.filtraCamadas */ montaListaTemas : function(retorno) { @@ -641,11 +642,11 @@ i3GEOF.identifica = }, /* * Function: montaLinkGeohack - * + * * Monta o link para o site geohack - * + * * Return: - * + * * {String} */ montaLinkGeohack : function() { @@ -675,13 +676,13 @@ i3GEOF.identifica = }, /* * Function: montaListaSistemas - * + * * Obtém a lista de sistemas especiais de consulta. - * + * * O resultado é inserido no div com id "listaSistemas". - * + * * Cada sistema consiste em uma URL para a qual serão passados os parametros x e y. - * + * */ montaListaSistemas : function(retorno) { var l, divins, ig, sistema, pub, exec, temp, t, linhas, ltema, i, idjanela, n = i3GEOF.identifica.janelas.length; @@ -751,11 +752,11 @@ i3GEOF.identifica = }, /* * Function: buscaDadosTema - * + * * Obtém os dados de um tema para o ponto de coordenadas clicado no mapa - * + * * Veja: - * + * * */ buscaDadosTema : function(tema, x, y, idjanela) { @@ -848,13 +849,13 @@ i3GEOF.identifica = }, /* * Function: mostraDadosSistema - * + * * Obtém os dados de um sistema para o ponto de coordenadas clicado no mapa - * + * * Parametros: - * + * * exec {String} - url que será aberta - * + * * target {String} (depreciado) - _self|self| onde a url será aberta. Se for "self", será aberta na mesma janela, caso * contrário, em uma nova página do navegador */ @@ -873,15 +874,15 @@ i3GEOF.identifica = }, /* * Function abrejanelaIframe - * + * * Abre uma janela flutuante contendo um iframe - * + * * Parametros: - * + * * w {string} - largura - * + * * h {string} - altura - * + * * s {string} - src do iframe */ abrejanelaIframe : function(w, h, s) { @@ -912,14 +913,14 @@ i3GEOF.identifica = }, /* * Function: mostraDadosTema - * + * * Mostra os dados obtidos de um ou mais temas. - * + * * Recebe o resultado em JSON da operação de consulta realizada pelo servidor e formata os dados para * apresentação na tela. - * + * * Parametros: - * + * * retorno {JSON} - objeto JSON com os dados */ mostraDadosTema : function(retorno, idjanela) { @@ -1108,7 +1109,7 @@ i3GEOF.identifica = else{ alvo = "_blank"; } - res += + res += "
" + tip diff --git a/ferramentas/identifica/template_mst.html b/ferramentas/identifica/template_mst.html index 124c073..816a888 100755 --- a/ferramentas/identifica/template_mst.html +++ b/ferramentas/identifica/template_mst.html @@ -1,6 +1,13 @@
-
  • - -
  • diff --git a/ferramentas/imprimir/a4lpaisagempdf.php b/ferramentas/imprimir/a4lpaisagempdf.php index 7cbed73..7fb7ec3 100755 --- a/ferramentas/imprimir/a4lpaisagempdf.php +++ b/ferramentas/imprimir/a4lpaisagempdf.php @@ -2,11 +2,13 @@ // //escrito por Luis Henrique Weirich de Matos // -require_once(dirname(__FILE__)."/../../classesphp/pega_variaveis.php"); +include_once (dirname(__FILE__)."/../../classesphp/sani_request.php"); +$_GET = array_merge($_GET,$_POST); +$mapexten = $_GET["mapexten"]; error_reporting(0); session_name("i3GeoPHP"); -if (isset($g_sid)) -{session_id($g_sid);} +if (isset($_GET["g_sid"])) +{session_id($_GET["g_sid"]);} session_start(); $map_file = $_SESSION["map_file"]; $postgis_mapa = $_SESSION["postgis_mapa"]; @@ -37,9 +39,8 @@ $nomes = nomeRandomico(); $map = ms_newMapObj($map_file); $temp = str_replace(".map","xxx.map",$map_file); $map->save($temp); -substituiCon($temp,$postgis_mapa); $map = ms_newMapObj($temp); - +restauraCon($temp,$postgis_mapa); if($map->getmetadata("interface") == "googlemaps"){ $proj4 = pegaProjecaoDefault("proj4"); $map->setProjection($proj4); @@ -83,7 +84,7 @@ foreach ($temas as $tema) $map->save($temp); removeLinha("classeNula",$temp); $map = ms_newMapObj($temp); - +substituiCon($temp,$postgis_mapa); $o = $map->outputformat; if($mapexten != ""){ $ext = explode(" ",$mapexten); @@ -126,7 +127,9 @@ $nomer = ($imgo->imagepath)."leg".$nomeImagem.".PNG"; $imgo->saveImage($nomer); $pathlegenda = $dir_tmp."/".basename($imgo->imageurl)."/".basename($nomer); $titulo = $_GET['titulo']; + substituiCon($map_file,$postgis_mapa); + require(dirname(__FILE__).'/../../pacotes/fpdf/fpdf.php'); $pdf = new FPDF("L","mm","A4"); $pdf->SetAutoPageBreak(false); diff --git a/ferramentas/imprimir/aggpng.php b/ferramentas/imprimir/aggpng.php index 92b5243..bb29f28 100755 --- a/ferramentas/imprimir/aggpng.php +++ b/ferramentas/imprimir/aggpng.php @@ -29,11 +29,13 @@ GNU junto com este programa; se não, escreva para a Free Software Foundation, Inc., no endereço 59 Temple Street, Suite 330, Boston, MA 02111-1307 USA. */ -require_once(dirname(__FILE__)."/../../classesphp/pega_variaveis.php"); +include_once (dirname(__FILE__)."/../../classesphp/sani_request.php"); +$_GET = array_merge($_GET,$_POST); +$mapexten = $_GET["mapexten"]; error_reporting(0); session_name("i3GeoPHP"); -if (isset($g_sid)) -{session_id($g_sid);} +if (isset($_GET["g_sid"])) +{session_id($_GET["g_sid"]);} session_start(); $map_file = $_SESSION["map_file"]; $postgis_mapa = $_SESSION["postgis_mapa"]; @@ -107,7 +109,7 @@ foreach ($temas as $tema) $map->save($temp); removeLinha("classeNula",$temp); $map = ms_newMapObj($temp); - +substituiCon($temp,$postgis_mapa); $o = $map->outputformat; if($mapexten != ""){ diff --git a/ferramentas/imprimir/geotif.php b/ferramentas/imprimir/geotif.php index 6deea14..f0871a0 100755 --- a/ferramentas/imprimir/geotif.php +++ b/ferramentas/imprimir/geotif.php @@ -29,11 +29,14 @@ GNU junto com este programa; se não, escreva para a Free Software Foundation, Inc., no endereço 59 Temple Street, Suite 330, Boston, MA 02111-1307 USA. */ -require_once(dirname(__FILE__)."/../../classesphp/pega_variaveis.php"); +include_once (dirname(__FILE__)."/../../classesphp/sani_request.php"); +$_GET = array_merge($_GET,$_POST); +$mapexten = $_GET["mapexten"]; error_reporting(0); session_name("i3GeoPHP"); -if (isset($g_sid)) -{session_id($g_sid);} +if (isset($_GET["g_sid"])) +{session_id($_GET["g_sid"]);} + session_start(); $map_file = $_SESSION["map_file"]; $postgis_mapa = $_SESSION["postgis_mapa"]; @@ -60,7 +63,7 @@ require(dirname(__FILE__)."/../../classesphp/funcoes_gerais.php"); error_reporting(0); $nomes = nomeRandomico(); $map = ms_newMapObj($map_file); -$temp = str_replace(".map","xxx.map",$map_file); +$temp = str_replace(".map","",$map_file)."xxx.map"; $map->save($temp); substituiCon($temp,$postgis_mapa); $of = $map->outputformat; @@ -107,6 +110,7 @@ foreach ($temas as $tema) $map->save($temp); removeLinha("classeNula",$temp); $map = ms_newMapObj($temp); +substituiCon($temp,$postgis_mapa); $o = $map->outputformat; if($mapexten != ""){ $ext = explode(" ",$mapexten); diff --git a/ferramentas/imprimir/geraimagens.php b/ferramentas/imprimir/geraimagens.php index c0ce2bf..4f396ad 100755 --- a/ferramentas/imprimir/geraimagens.php +++ b/ferramentas/imprimir/geraimagens.php @@ -1,9 +1,12 @@ save($temp); substituiCon($temp,$postgis_mapa); $map = ms_newMapObj($temp); - +substituiCon($temp,$postgis_mapa); $w = $map->width; $h = $map->height; $legenda =$map->legend; diff --git a/ferramentas/imprimir/jpeg.php b/ferramentas/imprimir/jpeg.php index de35ec4..8285465 100755 --- a/ferramentas/imprimir/jpeg.php +++ b/ferramentas/imprimir/jpeg.php @@ -29,11 +29,13 @@ GNU junto com este programa; se não, escreva para a Free Software Foundation, Inc., no endereço 59 Temple Street, Suite 330, Boston, MA 02111-1307 USA. */ -require_once(dirname(__FILE__)."/../../classesphp/pega_variaveis.php"); +include_once (dirname(__FILE__)."/../../classesphp/sani_request.php"); +$_GET = array_merge($_GET,$_POST); +$mapexten = $_GET["mapexten"]; error_reporting(0); session_name("i3GeoPHP"); -if (isset($g_sid)) -{session_id($g_sid);} +if (isset($_GET["g_sid"])) +{session_id($_GET["g_sid"]);} session_start(); $map_file = $_SESSION["map_file"]; $postgis_mapa = $_SESSION["postgis_mapa"]; @@ -109,7 +111,7 @@ foreach ($temas as $tema) $map->save($temp); removeLinha("classeNula",$temp); $map = ms_newMapObj($temp); - +substituiCon($temp,$postgis_mapa); $o = $map->outputformat; if($mapexten != ""){ diff --git a/ferramentas/imprimir/svg.php b/ferramentas/imprimir/svg.php index 43266e1..198fba4 100755 --- a/ferramentas/imprimir/svg.php +++ b/ferramentas/imprimir/svg.php @@ -29,11 +29,13 @@ GNU junto com este programa; se não, escreva para a Free Software Foundation, Inc., no endereço 59 Temple Street, Suite 330, Boston, MA 02111-1307 USA. */ -require_once(dirname(__FILE__)."/../../classesphp/pega_variaveis.php"); +include_once (dirname(__FILE__)."/../../classesphp/sani_request.php"); +$_GET = array_merge($_GET,$_POST); +$mapexten = $_GET["mapexten"]; error_reporting(0); session_name("i3GeoPHP"); -if (isset($g_sid)) -{session_id($g_sid);} +if (isset($_GET["g_sid"])) +{session_id($_GET["g_sid"]);} session_start(); $map_file = $_SESSION["map_file"]; $postgis_mapa = $_SESSION["postgis_mapa"]; @@ -131,7 +133,7 @@ for ($i=0;$i < $numlayers;$i++) $map->save($temp); removeLinha("classeNula",$temp); $map = ms_newMapObj($temp); - +substituiCon($temp,$postgis_mapa); $o = $map->outputformat; if($mapexten != ""){ $ext = explode(" ",$mapexten); diff --git a/ferramentas/imprimir/swf.php b/ferramentas/imprimir/swf.php index 112c054..0ea6284 100755 --- a/ferramentas/imprimir/swf.php +++ b/ferramentas/imprimir/swf.php @@ -1,14 +1,13 @@
    " + $trad("d22t")+"
    "; janela = i3GEO.janela.cria( - "500px", + "520px", "310px", "", "", @@ -231,7 +231,7 @@ i3GEOF.inserexy = { i3GEO.barraDeBotoes.ativaIcone("inserexy"); var i = $i("i3GEOF.inserexy_c").style; i3GEO.janela.ULTIMOZINDEX++; - i.zIndex = 21000 + i3GEO.janela.ULTIMOZINDEX; + i.zIndex = 51000 + i3GEO.janela.ULTIMOZINDEX; }, /* Function: montaComboLocal diff --git a/ferramentas/loginusuario/template_mst_bt.html b/ferramentas/loginusuario/template_mst_bt.html index e5f7f51..ddce1af 100755 --- a/ferramentas/loginusuario/template_mst_bt.html +++ b/ferramentas/loginusuario/template_mst_bt.html @@ -1,15 +1,17 @@
  • -
  • \ No newline at end of file diff --git a/ferramentas/markercluster/funcoes.php b/ferramentas/markercluster/funcoes.php index 1adccf0..06c024a 100755 --- a/ferramentas/markercluster/funcoes.php +++ b/ferramentas/markercluster/funcoes.php @@ -63,7 +63,7 @@ function markerclusterMapfile(){ ms_newLayerObj($mapa, $layern); $mapa->save($map_file); if(!empty($postgis_mapa)){ - substituiCon($map_file,$postgis_mapa); + //substituiCon($map_file,$postgis_mapa); } } return $map_file; diff --git a/ferramentas/metar/index.js b/ferramentas/metar/index.js index 1244ba0..05ad554 100755 --- a/ferramentas/metar/index.js +++ b/ferramentas/metar/index.js @@ -159,7 +159,7 @@ i3GEOF.metar = ativaFoco : function() { var i = $i("i3GEOF.metar_c").style; i3GEO.janela.ULTIMOZINDEX++; - i.zIndex = 21000 + i3GEO.janela.ULTIMOZINDEX; + i.zIndex = 51000 + i3GEO.janela.ULTIMOZINDEX; }, /* * Function: lista diff --git a/ferramentas/metar/metarextensao.php b/ferramentas/metar/metarextensao.php index 12acefb..7577ad7 100755 --- a/ferramentas/metar/metarextensao.php +++ b/ferramentas/metar/metarextensao.php @@ -36,10 +36,11 @@ Return: */ //set_time_limit(600); require_once(dirname(__FILE__)."/../../pacotes/cpaint/cpaint2.inc.php"); -require_once(dirname(__FILE__)."/../../classesphp/pega_variaveis.php"); +include_once (dirname(__FILE__)."/../../classesphp/sani_request.php"); +$_GET = array_merge($_GET,$_POST); require_once(dirname(__FILE__)."/../../classesphp/carrega_ext.php"); error_reporting(0); -$e = explode(" ",$ret); +$e = explode(" ",$_GET["ret"]); $url = "http://ws.geonames.org/weatherJSON?username=i3geo&lang=pt&north=".$e[3]."&south=".$e[1]."&east=".$e[2]."&west=".$e[0]."&maxRows=10"; $s = file($url); header("Content-type: text/ascii; charset=UTF-8"); diff --git a/ferramentas/metar/metarproxima.php b/ferramentas/metar/metarproxima.php index 87b436a..15d1bf3 100755 --- a/ferramentas/metar/metarproxima.php +++ b/ferramentas/metar/metarproxima.php @@ -45,7 +45,10 @@ echo ""; -require_once(dirname(__FILE__)."/../../classesphp/pega_variaveis.php"); +include_once (dirname(__FILE__)."/../../classesphp/sani_request.php"); +$_GET = array_merge($_GET,$_POST); +$y = $_GET["y"]; +$x = $_GET["x"]; error_reporting(0); $url = "http://ws.geonames.org/findNearByWeatherXML?username=i3geo&lat=$y&lng=$x&lang=pt"; diff --git a/ferramentas/minhaferramenta/index.htm b/ferramentas/minhaferramenta/index.htm index e4eace7..1356196 100755 --- a/ferramentas/minhaferramenta/index.htm +++ b/ferramentas/minhaferramenta/index.htm @@ -9,20 +9,20 @@ Minha ferramenta! \ No newline at end of file diff --git a/ferramentas/parametrossql/exec.php b/ferramentas/parametrossql/exec.php index 0413e03..65d0330 100755 --- a/ferramentas/parametrossql/exec.php +++ b/ferramentas/parametrossql/exec.php @@ -1,4 +1,5 @@ \ No newline at end of file +?> diff --git a/ferramentas/preferencias/index.js b/ferramentas/preferencias/index.js index 0b51bd6..9ba5e89 100755 --- a/ferramentas/preferencias/index.js +++ b/ferramentas/preferencias/index.js @@ -194,10 +194,6 @@ i3GEOF.preferencias = { tipo: "boolean", elemento: "i3GEO.arvoreDeCamadas.OPCOESLEGENDA" },{ - titulo: $trad('ativaAguardeLegenda',i3GEOF.preferencias.dicionario), - tipo: "boolean", - elemento: "i3GEO.arvoreDeCamadas.AGUARDALEGENDA" - },{ titulo: $trad('mostraIconeTema',i3GEOF.preferencias.dicionario), tipo: "boolean", elemento: "i3GEO.arvoreDeCamadas.ICONETEMA" diff --git a/ferramentas/recline/default.php b/ferramentas/recline/default.php index 8582fc2..6029aeb 100755 --- a/ferramentas/recline/default.php +++ b/ferramentas/recline/default.php @@ -1,7 +1,8 @@ diff --git a/ferramentas/scielo/funcoes.php b/ferramentas/scielo/funcoes.php index 720caff..1aff2dc 100755 --- a/ferramentas/scielo/funcoes.php +++ b/ferramentas/scielo/funcoes.php @@ -1,6 +1,9 @@ extent; diff --git a/ferramentas/wiki/funcoes.php b/ferramentas/wiki/funcoes.php index 5e904c4..d3a68c2 100755 --- a/ferramentas/wiki/funcoes.php +++ b/ferramentas/wiki/funcoes.php @@ -2,7 +2,9 @@ $usuarioGeonames = "i3geo"; //set_time_limit(600); require_once(dirname(__FILE__)."/../../pacotes/cpaint/cpaint2.inc.php"); -require_once(dirname(__FILE__)."/../../classesphp/pega_variaveis.php"); +include_once (dirname(__FILE__)."/../../classesphp/sani_request.php"); +$_GET = array_merge($_GET,$_POST); +$ret = $_GET["ret"]; require_once(dirname(__FILE__)."/../../classesphp/carrega_ext.php"); error_reporting(0); $cp = new cpaint(); diff --git a/ferramentas/wiki/index.js b/ferramentas/wiki/index.js index 44c3b06..2cf8fe7 100755 --- a/ferramentas/wiki/index.js +++ b/ferramentas/wiki/index.js @@ -159,7 +159,7 @@ i3GEOF.wiki = { ativaFoco: function(){ var i = $i("i3GEOF.wiki_c").style; i3GEO.janela.ULTIMOZINDEX++; - i.zIndex = 21000 + i3GEO.janela.ULTIMOZINDEX; + i.zIndex = 51000 + i3GEO.janela.ULTIMOZINDEX; }, /* Function: lista -- libgit2 0.21.2