Commit a2a1fa6e3a4cef2638ba45524a594f5ece95e512
1 parent
04ffdad3
Exists in
master
and in
7 other branches
--no commit message
Showing
3 changed files
with
26 additions
and
23 deletions
Show diff stats
classesphp/funcoes_gerais.php
| @@ -221,10 +221,10 @@ Retorno: | @@ -221,10 +221,10 @@ Retorno: | ||
| 221 | */ | 221 | */ |
| 222 | function RGB2hex($rgb) | 222 | function RGB2hex($rgb) |
| 223 | { | 223 | { |
| 224 | - $r = str_pad(dechex($rgb[0]), 2, '0', STR_PAD_LEFT); | ||
| 225 | - $g = str_pad(dechex($rgb[1]), 2, '0', STR_PAD_LEFT); | ||
| 226 | - $b = str_pad(dechex($rgb[2]), 2, '0', STR_PAD_LEFT); | ||
| 227 | - return($r . $g . $b); | 224 | + $r = str_pad(dechex($rgb[0]), 2, '0', STR_PAD_LEFT); |
| 225 | + $g = str_pad(dechex($rgb[1]), 2, '0', STR_PAD_LEFT); | ||
| 226 | + $b = str_pad(dechex($rgb[2]), 2, '0', STR_PAD_LEFT); | ||
| 227 | + return($r . $g . $b); | ||
| 228 | } | 228 | } |
| 229 | /* | 229 | /* |
| 230 | Section: arquivos | 230 | Section: arquivos |
| @@ -414,9 +414,9 @@ function listaArquivos($diretorio) | @@ -414,9 +414,9 @@ function listaArquivos($diretorio) | ||
| 414 | {return "erro";} | 414 | {return "erro";} |
| 415 | } | 415 | } |
| 416 | /* | 416 | /* |
| 417 | - Function: echoimg | 417 | +Function: echoimg |
| 418 | 418 | ||
| 419 | - Envia para o navegador uma imagem. Utilizado na tag IMG em arquivos HTML | 419 | +Envia para o navegador uma imagem. Utilizado na tag IMG em arquivos HTML |
| 420 | */ | 420 | */ |
| 421 | function echoimg($arquivo,$tipo){ | 421 | function echoimg($arquivo,$tipo){ |
| 422 | echo header("Content-type: image/png \n\n"); | 422 | echo header("Content-type: image/png \n\n"); |
| @@ -893,9 +893,9 @@ Retorno: | @@ -893,9 +893,9 @@ Retorno: | ||
| 893 | */ | 893 | */ |
| 894 | function gravaImagemMapa($mapa) | 894 | function gravaImagemMapa($mapa) |
| 895 | { | 895 | { |
| 896 | - if(is_string($mapa)) | ||
| 897 | - {$mapa = ms_newMapObj($mapa);} | ||
| 898 | - $imgo = @$mapa->draw(); | 896 | + if(is_string($mapa)) |
| 897 | + {$mapa = ms_newMapObj($mapa);} | ||
| 898 | + $imgo = @$mapa->draw(); | ||
| 899 | if(!$imgo) | 899 | if(!$imgo) |
| 900 | { | 900 | { |
| 901 | return array("url"=>"","arquivo"=>""); | 901 | return array("url"=>"","arquivo"=>""); |
| @@ -1471,7 +1471,7 @@ function criaSHP($tema,$map_file,$locaplic,$dir_tmp,$nomeRand=TRUE) | @@ -1471,7 +1471,7 @@ function criaSHP($tema,$map_file,$locaplic,$dir_tmp,$nomeRand=TRUE) | ||
| 1471 | { | 1471 | { |
| 1472 | $vreg = $shape->values[$ni]; | 1472 | $vreg = $shape->values[$ni]; |
| 1473 | if(strlen($vreg) > 255){ | 1473 | if(strlen($vreg) > 255){ |
| 1474 | - $vreg = substr($vreg,0,255); | 1474 | + $vreg = substr($vreg,0,255); |
| 1475 | } | 1475 | } |
| 1476 | $reg[] = $vreg; | 1476 | $reg[] = $vreg; |
| 1477 | } | 1477 | } |
| @@ -1945,6 +1945,7 @@ function versao() | @@ -1945,6 +1945,7 @@ function versao() | ||
| 1945 | $versao["completa"] = $v; | 1945 | $versao["completa"] = $v; |
| 1946 | $v = explode(".",$v); | 1946 | $v = explode(".",$v); |
| 1947 | $versao["principal"] = $v[0]; | 1947 | $versao["principal"] = $v[0]; |
| 1948 | + $versao["inteiro"] = ms_GetVersionInt(); | ||
| 1948 | return $versao; | 1949 | return $versao; |
| 1949 | } | 1950 | } |
| 1950 | /* | 1951 | /* |
| @@ -2134,8 +2135,8 @@ function autoClasses(&$nlayer,$mapa,$locaplic=null) | @@ -2134,8 +2135,8 @@ function autoClasses(&$nlayer,$mapa,$locaplic=null) | ||
| 2134 | $legenda=true; | 2135 | $legenda=true; |
| 2135 | for($value=$rule["v0"]; $value<$rule["v1"]; $value+=$delta) | 2136 | for($value=$rule["v0"]; $value<$rule["v1"]; $value+=$delta) |
| 2136 | { | 2137 | { |
| 2137 | - $class = ms_newClassObj($nlayer); | ||
| 2138 | - $style = ms_newStyleObj($class); | 2138 | + $class = ms_newClassObj($nlayer); |
| 2139 | + $style = ms_newStyleObj($class); | ||
| 2139 | if ($legenda) | 2140 | if ($legenda) |
| 2140 | { | 2141 | { |
| 2141 | $class->set(name,round($value,0)); | 2142 | $class->set(name,round($value,0)); |
| @@ -2361,7 +2362,7 @@ Return: | @@ -2361,7 +2362,7 @@ Return: | ||
| 2361 | function verificaEditores($editores) | 2362 | function verificaEditores($editores) |
| 2362 | { | 2363 | { |
| 2363 | return; | 2364 | return; |
| 2364 | - if (strtolower($_SERVER['HTTP_HOST']) == "localhost") | 2365 | + if (strtolower($_SERVER['HTTP_HOST']) == "localhost" || strtolower($_SERVER['SERVER_NAME']) == "localhost") |
| 2365 | {return "sim";} | 2366 | {return "sim";} |
| 2366 | $editor = "nao"; | 2367 | $editor = "nao"; |
| 2367 | if($editores == ""){return $editor;} | 2368 | if($editores == ""){return $editor;} |
| @@ -2376,7 +2377,7 @@ function verificaEditores($editores) | @@ -2376,7 +2377,7 @@ function verificaEditores($editores) | ||
| 2376 | return $editor; | 2377 | return $editor; |
| 2377 | } | 2378 | } |
| 2378 | /* | 2379 | /* |
| 2379 | - Function: verificaPapelUsuario | 2380 | +Function: verificaPapelUsuario |
| 2380 | 2381 | ||
| 2381 | Verifica se o usuário logado está cadastrado em determinado papel. | 2382 | Verifica se o usuário logado está cadastrado em determinado papel. |
| 2382 | 2383 | ||
| @@ -2546,11 +2547,11 @@ function listaLayersIndevidos($map_file){ | @@ -2546,11 +2547,11 @@ function listaLayersIndevidos($map_file){ | ||
| 2546 | $restritos = listaTemasRestritos(); | 2547 | $restritos = listaTemasRestritos(); |
| 2547 | /* | 2548 | /* |
| 2548 | array(1) { | 2549 | array(1) { |
| 2549 | - ["_wlocalirestrito"]=> | ||
| 2550 | - array(1) { | 2550 | + ["_wlocalirestrito"]=> |
| 2551 | + array(1) { | ||
| 2551 | [0]=> | 2552 | [0]=> |
| 2552 | string(1) "1" | 2553 | string(1) "1" |
| 2553 | - } | 2554 | + } |
| 2554 | } | 2555 | } |
| 2555 | */ | 2556 | */ |
| 2556 | if(count($restritos) > 0){ | 2557 | if(count($restritos) > 0){ |
| @@ -2590,7 +2591,7 @@ function listaLayersIndevidos($map_file){ | @@ -2590,7 +2591,7 @@ function listaLayersIndevidos($map_file){ | ||
| 2590 | return $indevidos; | 2591 | return $indevidos; |
| 2591 | } | 2592 | } |
| 2592 | /* | 2593 | /* |
| 2593 | - Function: listaTemasIndevidos | 2594 | +Function: listaTemasIndevidos |
| 2594 | 2595 | ||
| 2595 | Lista os temas que sao restritos e que nao sao permitidos ao usuario logado | 2596 | Lista os temas que sao restritos e que nao sao permitidos ao usuario logado |
| 2596 | */ | 2597 | */ |
| @@ -2612,7 +2613,7 @@ function listaTemasIndevidos(){ | @@ -2612,7 +2613,7 @@ function listaTemasIndevidos(){ | ||
| 2612 | return $indevidos; | 2613 | return $indevidos; |
| 2613 | } | 2614 | } |
| 2614 | /* | 2615 | /* |
| 2615 | - Function: listaGruposUsrLogin | 2616 | +Function: listaGruposUsrLogin |
| 2616 | 2617 | ||
| 2617 | Lista os grupos ao qual pertence o usuario atualmente logado | 2618 | Lista os grupos ao qual pertence o usuario atualmente logado |
| 2618 | */ | 2619 | */ |
ferramentas/graficointerativo1/index.js
| @@ -387,7 +387,7 @@ i3GEOF.graficointerativo1 = { | @@ -387,7 +387,7 @@ i3GEOF.graficointerativo1 = { | ||
| 387 | novaJanela: function(){ | 387 | novaJanela: function(){ |
| 388 | var janela = "", | 388 | var janela = "", |
| 389 | divid, | 389 | divid, |
| 390 | - g = $i("i3GEOgraficointerativo1Grafico"), | 390 | + g = $i("i3GEOgraficointerativo1guia4objCanvas"), |
| 391 | v = g.cloneNode(true), | 391 | v = g.cloneNode(true), |
| 392 | cabecalho = function(){}, | 392 | cabecalho = function(){}, |
| 393 | id = YAHOO.util.Dom.generateId(), | 393 | id = YAHOO.util.Dom.generateId(), |
| @@ -410,7 +410,6 @@ i3GEOF.graficointerativo1 = { | @@ -410,7 +410,6 @@ i3GEOF.graficointerativo1 = { | ||
| 410 | ); | 410 | ); |
| 411 | divid = janela[2].id; | 411 | divid = janela[2].id; |
| 412 | $i(divid).style.marginTop = "0px"; | 412 | $i(divid).style.marginTop = "0px"; |
| 413 | - v = g.cloneNode(true); | ||
| 414 | v.id = id+"ngrafico"; | 413 | v.id = id+"ngrafico"; |
| 415 | v.style.marginTop = "0px"; | 414 | v.style.marginTop = "0px"; |
| 416 | $i(divid).appendChild(v); | 415 | $i(divid).appendChild(v); |
testainstal.php
| @@ -102,10 +102,13 @@ $versao = versao(); | @@ -102,10 +102,13 @@ $versao = versao(); | ||
| 102 | $versao = $versao["principal"]; | 102 | $versao = $versao["principal"]; |
| 103 | $exts = get_loaded_extensions(); | 103 | $exts = get_loaded_extensions(); |
| 104 | echo "MapServer (a versão deve ser >= 5.2 para que a sobreposição de temas funcione na interface Google Maps): <br>"; | 104 | echo "MapServer (a versão deve ser >= 5.2 para que a sobreposição de temas funcione na interface Google Maps): <br>"; |
| 105 | -echo ms_GetVersion()."<br><br>"; | 105 | +echo "Versão:<br>"; |
| 106 | +echo ms_GetVersion(); | ||
| 107 | +echo "<br><br>"; | ||
| 108 | +var_dump (versao())."<br><br>"; | ||
| 106 | if(!function_exists("ms_GetVersion")) | 109 | if(!function_exists("ms_GetVersion")) |
| 107 | {echo "<span style=color:red >PARECE QUE O MAPSERVER NAO ESTA INSTALADO!!!<br><br>";} | 110 | {echo "<span style=color:red >PARECE QUE O MAPSERVER NAO ESTA INSTALADO!!!<br><br>";} |
| 108 | -echo "---<br>"; | 111 | +echo "<br>---<br>"; |
| 109 | 112 | ||
| 110 | if (get_cfg_var("safe_mode") == 1){ | 113 | if (get_cfg_var("safe_mode") == 1){ |
| 111 | echo "<span style=color:red >Problema: safe_mode no php.ini deveria estar como 'Off'. O i3Geo não irá funcionar!!!<br></span>"; | 114 | echo "<span style=color:red >Problema: safe_mode no php.ini deveria estar como 'Off'. O i3Geo não irá funcionar!!!<br></span>"; |