Commit a2a1fa6e3a4cef2638ba45524a594f5ece95e512

Authored by Edmar Moretti
1 parent 04ffdad3

--no commit message

classesphp/funcoes_gerais.php
... ... @@ -221,10 +221,10 @@ Retorno:
221 221 */
222 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 230 Section: arquivos
... ... @@ -414,9 +414,9 @@ function listaArquivos($diretorio)
414 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 421 function echoimg($arquivo,$tipo){
422 422 echo header("Content-type: image/png \n\n");
... ... @@ -893,9 +893,9 @@ Retorno:
893 893 */
894 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 899 if(!$imgo)
900 900 {
901 901 return array("url"=>"","arquivo"=>"");
... ... @@ -1471,7 +1471,7 @@ function criaSHP($tema,$map_file,$locaplic,$dir_tmp,$nomeRand=TRUE)
1471 1471 {
1472 1472 $vreg = $shape->values[$ni];
1473 1473 if(strlen($vreg) > 255){
1474   - $vreg = substr($vreg,0,255);
  1474 + $vreg = substr($vreg,0,255);
1475 1475 }
1476 1476 $reg[] = $vreg;
1477 1477 }
... ... @@ -1945,6 +1945,7 @@ function versao()
1945 1945 $versao["completa"] = $v;
1946 1946 $v = explode(".",$v);
1947 1947 $versao["principal"] = $v[0];
  1948 + $versao["inteiro"] = ms_GetVersionInt();
1948 1949 return $versao;
1949 1950 }
1950 1951 /*
... ... @@ -2134,8 +2135,8 @@ function autoClasses(&$nlayer,$mapa,$locaplic=null)
2134 2135 $legenda=true;
2135 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 2140 if ($legenda)
2140 2141 {
2141 2142 $class->set(name,round($value,0));
... ... @@ -2361,7 +2362,7 @@ Return:
2361 2362 function verificaEditores($editores)
2362 2363 {
2363 2364 return;
2364   - if (strtolower($_SERVER['HTTP_HOST']) == "localhost")
  2365 + if (strtolower($_SERVER['HTTP_HOST']) == "localhost" || strtolower($_SERVER['SERVER_NAME']) == "localhost")
2365 2366 {return "sim";}
2366 2367 $editor = "nao";
2367 2368 if($editores == ""){return $editor;}
... ... @@ -2376,7 +2377,7 @@ function verificaEditores($editores)
2376 2377 return $editor;
2377 2378 }
2378 2379 /*
2379   - Function: verificaPapelUsuario
  2380 +Function: verificaPapelUsuario
2380 2381  
2381 2382 Verifica se o usu&aacute;rio logado est&aacute; cadastrado em determinado papel.
2382 2383  
... ... @@ -2546,11 +2547,11 @@ function listaLayersIndevidos($map_file){
2546 2547 $restritos = listaTemasRestritos();
2547 2548 /*
2548 2549 array(1) {
2549   - ["_wlocalirestrito"]=>
2550   - array(1) {
  2550 + ["_wlocalirestrito"]=>
  2551 + array(1) {
2551 2552 [0]=>
2552 2553 string(1) "1"
2553   - }
  2554 + }
2554 2555 }
2555 2556 */
2556 2557 if(count($restritos) > 0){
... ... @@ -2590,7 +2591,7 @@ function listaLayersIndevidos($map_file){
2590 2591 return $indevidos;
2591 2592 }
2592 2593 /*
2593   - Function: listaTemasIndevidos
  2594 +Function: listaTemasIndevidos
2594 2595  
2595 2596 Lista os temas que sao restritos e que nao sao permitidos ao usuario logado
2596 2597 */
... ... @@ -2612,7 +2613,7 @@ function listaTemasIndevidos(){
2612 2613 return $indevidos;
2613 2614 }
2614 2615 /*
2615   - Function: listaGruposUsrLogin
  2616 +Function: listaGruposUsrLogin
2616 2617  
2617 2618 Lista os grupos ao qual pertence o usuario atualmente logado
2618 2619 */
... ...
ferramentas/graficointerativo1/index.js
... ... @@ -387,7 +387,7 @@ i3GEOF.graficointerativo1 = {
387 387 novaJanela: function(){
388 388 var janela = "",
389 389 divid,
390   - g = $i("i3GEOgraficointerativo1Grafico"),
  390 + g = $i("i3GEOgraficointerativo1guia4objCanvas"),
391 391 v = g.cloneNode(true),
392 392 cabecalho = function(){},
393 393 id = YAHOO.util.Dom.generateId(),
... ... @@ -410,7 +410,6 @@ i3GEOF.graficointerativo1 = {
410 410 );
411 411 divid = janela[2].id;
412 412 $i(divid).style.marginTop = "0px";
413   - v = g.cloneNode(true);
414 413 v.id = id+"ngrafico";
415 414 v.style.marginTop = "0px";
416 415 $i(divid).appendChild(v);
... ...
testainstal.php
... ... @@ -102,10 +102,13 @@ $versao = versao();
102 102 $versao = $versao["principal"];
103 103 $exts = get_loaded_extensions();
104 104 echo "MapServer (a vers&atilde;o deve ser &gt;= 5.2 para que a sobreposi&ccedil;&atilde;o de temas funcione na interface Google Maps): <br>";
105   -echo ms_GetVersion()."<br><br>";
  105 +echo "Vers&atilde;o:<br>";
  106 +echo ms_GetVersion();
  107 +echo "<br><br>";
  108 +var_dump (versao())."<br><br>";
106 109 if(!function_exists("ms_GetVersion"))
107 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 113 if (get_cfg_var("safe_mode") == 1){
111 114 echo "<span style=color:red >Problema: safe_mode no php.ini deveria estar como 'Off'. O i3Geo n&atilde;o ir&aacute; funcionar!!!<br></span>";
... ...