From 9150735dc38e429bf66e6760601fe35372448529 Mon Sep 17 00:00:00 2001 From: Edmar Moretti Date: Thu, 4 Aug 2016 14:44:53 -0300 Subject: [PATCH] remocão de arquivos desnecessarios --- admin/admin.db | Bin 340992 -> 0 bytes classesphp/mapa_googlemaps.php | 6 +++--- ferramentas/congelamapa/openlayers.php | 2 +- ferramentas/congelamapa/openlayers3.php | 2 +- ferramentas/melhorcaminho/exec.php | 10 +++++----- init/remover.php | 1 + 6 files changed, 11 insertions(+), 10 deletions(-) diff --git a/admin/admin.db b/admin/admin.db index ae189f6..03a4346 100755 Binary files a/admin/admin.db and b/admin/admin.db differ diff --git a/classesphp/mapa_googlemaps.php b/classesphp/mapa_googlemaps.php index c46451b..1573a3c 100755 --- a/classesphp/mapa_googlemaps.php +++ b/classesphp/mapa_googlemaps.php @@ -483,7 +483,7 @@ function salvaCacheImagem(){ } $c = $cachedir."/googlemaps/$layer/$z/$x"; if(!file_exists($c."/$y.png")){ - mkdir($cachedir."/googlemaps/$layer/$z/$x",0777,true); + mkdir($cachedir."/googlemaps/$layer/$z/$x",0774,true); $img->saveImage($c."/$y.png"); // //corta a imagem gerada para voltar ao tamanho normal @@ -492,8 +492,8 @@ function salvaCacheImagem(){ $img = cortaImagemDisco($c."/$y.png",$cortePixels,256); } - chmod($cachedir."/googlemaps/$layer/$z/$x",0777); - chmod($c."/$y.png",0777); + chmod($cachedir."/googlemaps/$layer/$z/$x",0774); + chmod($c."/$y.png",0774); } return $c."/$y.png"; } diff --git a/ferramentas/congelamapa/openlayers.php b/ferramentas/congelamapa/openlayers.php index 0ae3abb..95e4017 100755 --- a/ferramentas/congelamapa/openlayers.php +++ b/ferramentas/congelamapa/openlayers.php @@ -15,7 +15,7 @@ $base = basename($map_file); $dir = dirname($map_file); $novo_mapfile = $dir."/".nomeRandomico(5).$base; copy($map_file,$novo_mapfile); -chmod($novo_mapfile,0777); +chmod($novo_mapfile,0774); $mapa = ms_newMapObj($novo_mapfile); $mapa->setProjection(pegaProjecaoDefault("proj4")); $numlayers = $mapa->numlayers; diff --git a/ferramentas/congelamapa/openlayers3.php b/ferramentas/congelamapa/openlayers3.php index d81db47..2a6b313 100755 --- a/ferramentas/congelamapa/openlayers3.php +++ b/ferramentas/congelamapa/openlayers3.php @@ -15,7 +15,7 @@ $base = basename($map_file); $dir = dirname($map_file); $novo_mapfile = $dir."/".nomeRandomico(5).$base; copy($map_file,$novo_mapfile); -chmod($novo_mapfile,0777); +chmod($novo_mapfile,0774); $mapa = ms_newMapObj($novo_mapfile); $mapa->setProjection(pegaProjecaoDefault("proj4")); $numlayers = $mapa->numlayers; diff --git a/ferramentas/melhorcaminho/exec.php b/ferramentas/melhorcaminho/exec.php index 4a440fe..945034f 100755 --- a/ferramentas/melhorcaminho/exec.php +++ b/ferramentas/melhorcaminho/exec.php @@ -10,7 +10,7 @@ switch (strtoupper($funcao)) $mapa = ms_newMapObj($map_file); $layer = $mapa->getlayerbyname($tema); $shapes = retornaShapesSelecionados($layer,$map_file,$mapa); - + if(count($shapes) == 0){ $shapes = retornaShapesMapext($layer,$mapa); } @@ -26,13 +26,13 @@ switch (strtoupper($funcao)) $objLine = $shapes[0]->line(0); $pontoA = $objLine->point(0); $pontoB = $objLine->point($objLine->numpoints - 1); - } + } //quando poligono 2 if($layer->type == 2){ $objLine = $shapes[0]->line(0); $pontoA = $objLine->point(0); $pontoB = $shapes[0]->getCentroid(); - } + } $retorno = array( "ax"=>$pontoA->x, "ay"=>$pontoA->y, @@ -50,7 +50,7 @@ switch (strtoupper($funcao)) if(file_exists($cost_surface_path)){ $pathresult = $dir_tmp."/melhorcaminho_".nomeRandomico(); //cria a pasta onde os resultados serao armazenados - mkdir ($pathresult,0777); + mkdir ($pathresult,0774); //parametros para o calculo de melhor caminho e linha reta $best = array( @@ -125,7 +125,7 @@ switch (strtoupper($funcao)) "stop_coord" => "[$ptb]" ) ); - $processos[] = $shp; + $processos[] = $shp; } //monta o array que sera utilizado para gerar o arquivo yaml que sera o input do programa python que faz o calculo $a = array( diff --git a/init/remover.php b/init/remover.php index eff5318..24b57be 100755 --- a/init/remover.php +++ b/init/remover.php @@ -12,6 +12,7 @@ Remove a tela inicial de apresentação do i3Geo substituindo-a pela Após remover, a tela inicial pode ser vista utilizando-se o endereço i3geo/init. Para definir qual a interface que será utilizada como default ao abrir o i3Geo edite o arquivo i3geo/ms_configura.php.