Commit f9cf1f7109966a08a1100b729f2b29f2a92c56b2

Authored by Edmar Moretti
1 parent a8115173

Reversão da Inclusão de STATUS OFF no lugar de STATUS DEFAULT ao criar um mapfil…

…e pelo sistema de administração
admin/php/editormapfile.php
@@ -1286,7 +1286,7 @@ function criarNovoMap(){ @@ -1286,7 +1286,7 @@ function criarNovoMap(){
1286 else{ 1286 else{
1287 $dados[] = ' DATA "'.$_GET["data"].'"'; 1287 $dados[] = ' DATA "'.$_GET["data"].'"';
1288 } 1288 }
1289 - $dados[] = ' STATUS OFF'; 1289 + $dados[] = ' STATUS DEFAULT';
1290 $dados[] = ' METADATA'; 1290 $dados[] = ' METADATA';
1291 $dados[] = ' TEMA "'.$_GET["nome"].'"'; 1291 $dados[] = ' TEMA "'.$_GET["nome"].'"';
1292 $dados[] = ' CLASSE "SIM"'; 1292 $dados[] = ' CLASSE "SIM"';
admin1/catalogo/mapfile/exec.php
@@ -259,7 +259,7 @@ function adicionar($locaplic, $titulolegenda, $link_tema, $codigo, $acessopublic @@ -259,7 +259,7 @@ function adicionar($locaplic, $titulolegenda, $link_tema, $codigo, $acessopublic
259 $dados [] = " TYPE " . $tipoLayer; 259 $dados [] = " TYPE " . $tipoLayer;
260 $dados [] = ' DATA ""'; 260 $dados [] = ' DATA ""';
261 $dados [] = ' CONNECTION ""'; 261 $dados [] = ' CONNECTION ""';
262 - $dados [] = ' STATUS OFF'; 262 + $dados [] = ' STATUS DEFAULT';
263 $dados [] = ' METADATA'; 263 $dados [] = ' METADATA';
264 $dados [] = ' TEMA "' . $titulolegenda . '"'; 264 $dados [] = ' TEMA "' . $titulolegenda . '"';
265 $dados [] = ' CLASSE "SIM"'; 265 $dados [] = ' CLASSE "SIM"';
mashups/osm.php
@@ -9,19 +9,6 @@ include_once(dirname(__FILE__)."/../classesphp/sani_request.php"); @@ -9,19 +9,6 @@ include_once(dirname(__FILE__)."/../classesphp/sani_request.php");
9 include_once(dirname(__FILE__)."/../classesphp/carrega_ext.php"); 9 include_once(dirname(__FILE__)."/../classesphp/carrega_ext.php");
10 include_once(dirname(__FILE__)."/../classesphp/funcoes_gerais.php"); 10 include_once(dirname(__FILE__)."/../classesphp/funcoes_gerais.php");
11 error_reporting(0); 11 error_reporting(0);
12 -//cria as pastas temporarias caso nao existam  
13 -if (! file_exists ( $dir_tmp )) {  
14 - @mkdir ( $dir_tmp, 0744 );  
15 -}  
16 -if (file_exists ( $dir_tmp )) {  
17 - @mkdir ( $dir_tmp . "/comum", 0744 );  
18 - @mkdir ( $dir_tmp . "/saiku-datasources", 0744 );  
19 - chmod ( $dir_tmp . "/saiku-datasources", 0744 );  
20 - @mkdir ( $dir_tmp . "/cache", 0744 );  
21 - chmod ( $dir_tmp . "/cache", 0744 );  
22 - @mkdir ( $dir_tmp . "/cache/googlemaps", 0744 );  
23 - chmod ( $dir_tmp . "/cache/googlemaps", 0744 );  
24 -}  
25 //variaveis utilizadas 12 //variaveis utilizadas
26 $parurl = array_merge($_GET,$_POST); 13 $parurl = array_merge($_GET,$_POST);
27 $desligacache = $parurl["desligacache"]; 14 $desligacache = $parurl["desligacache"];
@@ -53,6 +40,19 @@ $ativarodadomouse = $parurl["ativarodadomouse"]; @@ -53,6 +40,19 @@ $ativarodadomouse = $parurl["ativarodadomouse"];
53 $legendahtml = $parurl["legendahtml"]; 40 $legendahtml = $parurl["legendahtml"];
54 $nocache = $parurl["nocache"]; 41 $nocache = $parurl["nocache"];
55 42
  43 +//cria as pastas temporarias caso nao existam
  44 +if (! file_exists ( $dir_tmp )) {
  45 + @mkdir ( $dir_tmp, 0744 );
  46 +}
  47 +if (file_exists ( $dir_tmp )) {
  48 + @mkdir ( $dir_tmp . "/comum", 0744 );
  49 + @mkdir ( $dir_tmp . "/saiku-datasources", 0744 );
  50 + chmod ( $dir_tmp . "/saiku-datasources", 0744 );
  51 + @mkdir ( $dir_tmp . "/cache", 0744 );
  52 + chmod ( $dir_tmp . "/cache", 0744 );
  53 + @mkdir ( $dir_tmp . "/cache/googlemaps", 0744 );
  54 + chmod ( $dir_tmp . "/cache/googlemaps", 0744 );
  55 +}
56 if(!empty($desligacache)){ 56 if(!empty($desligacache)){
57 $DESLIGACACHE = $desligacache; 57 $DESLIGACACHE = $desligacache;
58 } 58 }
@@ -268,6 +268,9 @@ if(isset($botoes)){ @@ -268,6 +268,9 @@ if(isset($botoes)){
268 if(in_array("texto",$botoes)){ 268 if(in_array("texto",$botoes)){
269 $objBotoes[] = "'texto':true"; 269 $objBotoes[] = "'texto':true";
270 } 270 }
  271 + if(in_array("novaaba",$botoes)){
  272 + $objBotoes[] = "'novaaba':true";
  273 + }
271 $botoes = "{".implode(",",$objBotoes)."}"; 274 $botoes = "{".implode(",",$objBotoes)."}";
272 } 275 }
273 276
@@ -560,6 +563,7 @@ function ajuda(){ @@ -560,6 +563,7 @@ function ajuda(){
560 fecha 563 fecha
561 corta 564 corta
562 legenda 565 legenda
  566 + novaaba
563 567
564 Para ver a lista de códigos de temas, que podem ser utilizados no parâmetro 'temas', acesse: 568 Para ver a lista de códigos de temas, que podem ser utilizados no parâmetro 'temas', acesse:
565 <a href='../ogc.php?lista=temas' >lista de temas</a>. Os c&oacute;digos s&atilde;o mostrados em vermelho. 569 <a href='../ogc.php?lista=temas' >lista de temas</a>. Os c&oacute;digos s&atilde;o mostrados em vermelho.
temas/_lbiomashp.map
@@ -7,7 +7,7 @@ MAP @@ -7,7 +7,7 @@ MAP
7 METADATA 7 METADATA
8 "METAESTAT_ID_MEDIDA_VARIAVEL" "" 8 "METAESTAT_ID_MEDIDA_VARIAVEL" ""
9 "TIP" "CD_LEGENDA" 9 "TIP" "CD_LEGENDA"
10 - "CACHE" "sim" 10 + "CACHE" "nao"
11 "CLASSE" "SIM" 11 "CLASSE" "SIM"
12 "olopacity" "" 12 "olopacity" ""
13 "permitekmz" "sim" 13 "permitekmz" "sim"
@@ -15,7 +15,7 @@ MAP @@ -15,7 +15,7 @@ MAP
15 "gmstatus" "" 15 "gmstatus" ""
16 "ITENSDESC" "Bioma Teste de acentuação" 16 "ITENSDESC" "Bioma Teste de acentuação"
17 "ESCALA" "1000000" 17 "ESCALA" "1000000"
18 - "TILES" "SIM" 18 + "TILES" "NAO"
19 "METAESTAT_CODIGO_TIPO_REGIAO" "" 19 "METAESTAT_CODIGO_TIPO_REGIAO" ""
20 "arquivotemaoriginal" "" 20 "arquivotemaoriginal" ""
21 "extensao" "-76 -39 -29 9" 21 "extensao" "-76 -39 -29 9"
temas/_llocali.map
@@ -7,7 +7,7 @@ MAP @@ -7,7 +7,7 @@ MAP
7 METADATA 7 METADATA
8 "METAESTAT_ID_MEDIDA_VARIAVEL" "" 8 "METAESTAT_ID_MEDIDA_VARIAVEL" ""
9 "TIP" "TIPO,NOMELOC,ANOCRIA" 9 "TIP" "TIPO,NOMELOC,ANOCRIA"
10 - "cache" "SIM" 10 + "cache" "nao"
11 "CLASSE" "SIM" 11 "CLASSE" "SIM"
12 "LTEMPOITEMDESCRICAO" "TIPO" 12 "LTEMPOITEMDESCRICAO" "TIPO"
13 "LTEMPOITEMINICIO" "ANOCRIA" 13 "LTEMPOITEMINICIO" "ANOCRIA"
@@ -16,7 +16,7 @@ MAP @@ -16,7 +16,7 @@ MAP
16 "ITENSDESC" "Município,TIPO,Localidade,ANOCRIA" 16 "ITENSDESC" "Município,TIPO,Localidade,ANOCRIA"
17 "LTEMPOITEMTITULO" "NOMELOC" 17 "LTEMPOITEMTITULO" "NOMELOC"
18 "ITENSLINK" ",,," 18 "ITENSLINK" ",,,"
19 - "TILES" "SIM" 19 + "TILES" "NAO"
20 "METAESTAT_CODIGO_TIPO_REGIAO" "" 20 "METAESTAT_CODIGO_TIPO_REGIAO" ""
21 "permitedownload" "sim" 21 "permitedownload" "sim"
22 "LTEMPOFORMATODATA" "iso8601" 22 "LTEMPOFORMATODATA" "iso8601"
@@ -29,13 +29,13 @@ MAP @@ -29,13 +29,13 @@ MAP
29 "permiteogc" "sim" 29 "permiteogc" "sim"
30 "transitioneffect" "NAO" 30 "transitioneffect" "NAO"
31 "TEMA" "Localidades (usar com timeline) para teste" 31 "TEMA" "Localidades (usar com timeline) para teste"
32 - "cortepixels" "30" 32 + "cortepixels" "0"
33 "LTEMPOCONVENCODE" "SIM" 33 "LTEMPOCONVENCODE" "SIM"
34 END # METADATA 34 END # METADATA
35 NAME "_llocali" 35 NAME "_llocali"
36 PROCESSING "LABEL_NO_CLIP=True" 36 PROCESSING "LABEL_NO_CLIP=True"
37 PROCESSING "POLYLINE_NO_CLIP=True" 37 PROCESSING "POLYLINE_NO_CLIP=True"
38 - STATUS DEFAULT 38 + STATUS OFF
39 TEMPLATE "none.htm" 39 TEMPLATE "none.htm"
40 TILEITEM "location" 40 TILEITEM "location"
41 TYPE POINT 41 TYPE POINT