diff --git a/classesphp/funcoes_gerais.php b/classesphp/funcoes_gerais.php index 2e779b5..7842bfe 100644 --- a/classesphp/funcoes_gerais.php +++ b/classesphp/funcoes_gerais.php @@ -221,10 +221,10 @@ Retorno: */ function RGB2hex($rgb) { - $r = str_pad(dechex($rgb[0]), 2, '0', STR_PAD_LEFT); - $g = str_pad(dechex($rgb[1]), 2, '0', STR_PAD_LEFT); - $b = str_pad(dechex($rgb[2]), 2, '0', STR_PAD_LEFT); - return($r . $g . $b); + $r = str_pad(dechex($rgb[0]), 2, '0', STR_PAD_LEFT); + $g = str_pad(dechex($rgb[1]), 2, '0', STR_PAD_LEFT); + $b = str_pad(dechex($rgb[2]), 2, '0', STR_PAD_LEFT); + return($r . $g . $b); } /* Section: arquivos @@ -414,9 +414,9 @@ function listaArquivos($diretorio) {return "erro";} } /* - Function: echoimg +Function: echoimg - Envia para o navegador uma imagem. Utilizado na tag IMG em arquivos HTML +Envia para o navegador uma imagem. Utilizado na tag IMG em arquivos HTML */ function echoimg($arquivo,$tipo){ echo header("Content-type: image/png \n\n"); @@ -893,9 +893,9 @@ Retorno: */ function gravaImagemMapa($mapa) { - if(is_string($mapa)) - {$mapa = ms_newMapObj($mapa);} - $imgo = @$mapa->draw(); + if(is_string($mapa)) + {$mapa = ms_newMapObj($mapa);} + $imgo = @$mapa->draw(); if(!$imgo) { return array("url"=>"","arquivo"=>""); @@ -1471,7 +1471,7 @@ function criaSHP($tema,$map_file,$locaplic,$dir_tmp,$nomeRand=TRUE) { $vreg = $shape->values[$ni]; if(strlen($vreg) > 255){ - $vreg = substr($vreg,0,255); + $vreg = substr($vreg,0,255); } $reg[] = $vreg; } @@ -1945,6 +1945,7 @@ function versao() $versao["completa"] = $v; $v = explode(".",$v); $versao["principal"] = $v[0]; + $versao["inteiro"] = ms_GetVersionInt(); return $versao; } /* @@ -2134,8 +2135,8 @@ function autoClasses(&$nlayer,$mapa,$locaplic=null) $legenda=true; for($value=$rule["v0"]; $value<$rule["v1"]; $value+=$delta) { - $class = ms_newClassObj($nlayer); - $style = ms_newStyleObj($class); + $class = ms_newClassObj($nlayer); + $style = ms_newStyleObj($class); if ($legenda) { $class->set(name,round($value,0)); @@ -2361,7 +2362,7 @@ Return: function verificaEditores($editores) { return; - if (strtolower($_SERVER['HTTP_HOST']) == "localhost") + if (strtolower($_SERVER['HTTP_HOST']) == "localhost" || strtolower($_SERVER['SERVER_NAME']) == "localhost") {return "sim";} $editor = "nao"; if($editores == ""){return $editor;} @@ -2376,7 +2377,7 @@ function verificaEditores($editores) return $editor; } /* - Function: verificaPapelUsuario +Function: verificaPapelUsuario Verifica se o usuário logado está cadastrado em determinado papel. @@ -2546,11 +2547,11 @@ function listaLayersIndevidos($map_file){ $restritos = listaTemasRestritos(); /* array(1) { - ["_wlocalirestrito"]=> - array(1) { + ["_wlocalirestrito"]=> + array(1) { [0]=> string(1) "1" - } + } } */ if(count($restritos) > 0){ @@ -2590,7 +2591,7 @@ function listaLayersIndevidos($map_file){ return $indevidos; } /* - Function: listaTemasIndevidos +Function: listaTemasIndevidos Lista os temas que sao restritos e que nao sao permitidos ao usuario logado */ @@ -2612,7 +2613,7 @@ function listaTemasIndevidos(){ return $indevidos; } /* - Function: listaGruposUsrLogin +Function: listaGruposUsrLogin Lista os grupos ao qual pertence o usuario atualmente logado */ diff --git a/ferramentas/graficointerativo1/index.js b/ferramentas/graficointerativo1/index.js index 52f0b1e..52c84db 100755 --- a/ferramentas/graficointerativo1/index.js +++ b/ferramentas/graficointerativo1/index.js @@ -387,7 +387,7 @@ i3GEOF.graficointerativo1 = { novaJanela: function(){ var janela = "", divid, - g = $i("i3GEOgraficointerativo1Grafico"), + g = $i("i3GEOgraficointerativo1guia4objCanvas"), v = g.cloneNode(true), cabecalho = function(){}, id = YAHOO.util.Dom.generateId(), @@ -410,7 +410,6 @@ i3GEOF.graficointerativo1 = { ); divid = janela[2].id; $i(divid).style.marginTop = "0px"; - v = g.cloneNode(true); v.id = id+"ngrafico"; v.style.marginTop = "0px"; $i(divid).appendChild(v); diff --git a/testainstal.php b/testainstal.php index 8faa1b9..f97f9c7 100644 --- a/testainstal.php +++ b/testainstal.php @@ -102,10 +102,13 @@ $versao = versao(); $versao = $versao["principal"]; $exts = get_loaded_extensions(); echo "MapServer (a versão deve ser >= 5.2 para que a sobreposição de temas funcione na interface Google Maps):
"; -echo ms_GetVersion()."

"; +echo "Versão:
"; +echo ms_GetVersion(); +echo "

"; +var_dump (versao())."

"; if(!function_exists("ms_GetVersion")) {echo "PARECE QUE O MAPSERVER NAO ESTA INSTALADO!!!

";} -echo "---
"; +echo "
---
"; if (get_cfg_var("safe_mode") == 1){ echo "Problema: safe_mode no php.ini deveria estar como 'Off'. O i3Geo não irá funcionar!!!
"; -- libgit2 0.21.2