Commit 9150735dc38e429bf66e6760601fe35372448529
1 parent
9920d5ab
Exists in
master
and in
7 other branches
remocão de arquivos desnecessarios
Showing
6 changed files
with
11 additions
and
10 deletions
Show diff stats
admin/admin.db
No preview for this file type
classesphp/mapa_googlemaps.php
| ... | ... | @@ -483,7 +483,7 @@ function salvaCacheImagem(){ |
| 483 | 483 | } |
| 484 | 484 | $c = $cachedir."/googlemaps/$layer/$z/$x"; |
| 485 | 485 | if(!file_exists($c."/$y.png")){ |
| 486 | - mkdir($cachedir."/googlemaps/$layer/$z/$x",0777,true); | |
| 486 | + mkdir($cachedir."/googlemaps/$layer/$z/$x",0774,true); | |
| 487 | 487 | $img->saveImage($c."/$y.png"); |
| 488 | 488 | // |
| 489 | 489 | //corta a imagem gerada para voltar ao tamanho normal |
| ... | ... | @@ -492,8 +492,8 @@ function salvaCacheImagem(){ |
| 492 | 492 | $img = cortaImagemDisco($c."/$y.png",$cortePixels,256); |
| 493 | 493 | } |
| 494 | 494 | |
| 495 | - chmod($cachedir."/googlemaps/$layer/$z/$x",0777); | |
| 496 | - chmod($c."/$y.png",0777); | |
| 495 | + chmod($cachedir."/googlemaps/$layer/$z/$x",0774); | |
| 496 | + chmod($c."/$y.png",0774); | |
| 497 | 497 | } |
| 498 | 498 | return $c."/$y.png"; |
| 499 | 499 | } | ... | ... |
ferramentas/congelamapa/openlayers.php
| ... | ... | @@ -15,7 +15,7 @@ $base = basename($map_file); |
| 15 | 15 | $dir = dirname($map_file); |
| 16 | 16 | $novo_mapfile = $dir."/".nomeRandomico(5).$base; |
| 17 | 17 | copy($map_file,$novo_mapfile); |
| 18 | -chmod($novo_mapfile,0777); | |
| 18 | +chmod($novo_mapfile,0774); | |
| 19 | 19 | $mapa = ms_newMapObj($novo_mapfile); |
| 20 | 20 | $mapa->setProjection(pegaProjecaoDefault("proj4")); |
| 21 | 21 | $numlayers = $mapa->numlayers; | ... | ... |
ferramentas/congelamapa/openlayers3.php
| ... | ... | @@ -15,7 +15,7 @@ $base = basename($map_file); |
| 15 | 15 | $dir = dirname($map_file); |
| 16 | 16 | $novo_mapfile = $dir."/".nomeRandomico(5).$base; |
| 17 | 17 | copy($map_file,$novo_mapfile); |
| 18 | -chmod($novo_mapfile,0777); | |
| 18 | +chmod($novo_mapfile,0774); | |
| 19 | 19 | $mapa = ms_newMapObj($novo_mapfile); |
| 20 | 20 | $mapa->setProjection(pegaProjecaoDefault("proj4")); |
| 21 | 21 | $numlayers = $mapa->numlayers; | ... | ... |
ferramentas/melhorcaminho/exec.php
| ... | ... | @@ -10,7 +10,7 @@ switch (strtoupper($funcao)) |
| 10 | 10 | $mapa = ms_newMapObj($map_file); |
| 11 | 11 | $layer = $mapa->getlayerbyname($tema); |
| 12 | 12 | $shapes = retornaShapesSelecionados($layer,$map_file,$mapa); |
| 13 | - | |
| 13 | + | |
| 14 | 14 | if(count($shapes) == 0){ |
| 15 | 15 | $shapes = retornaShapesMapext($layer,$mapa); |
| 16 | 16 | } |
| ... | ... | @@ -26,13 +26,13 @@ switch (strtoupper($funcao)) |
| 26 | 26 | $objLine = $shapes[0]->line(0); |
| 27 | 27 | $pontoA = $objLine->point(0); |
| 28 | 28 | $pontoB = $objLine->point($objLine->numpoints - 1); |
| 29 | - } | |
| 29 | + } | |
| 30 | 30 | //quando poligono 2 |
| 31 | 31 | if($layer->type == 2){ |
| 32 | 32 | $objLine = $shapes[0]->line(0); |
| 33 | 33 | $pontoA = $objLine->point(0); |
| 34 | 34 | $pontoB = $shapes[0]->getCentroid(); |
| 35 | - } | |
| 35 | + } | |
| 36 | 36 | $retorno = array( |
| 37 | 37 | "ax"=>$pontoA->x, |
| 38 | 38 | "ay"=>$pontoA->y, |
| ... | ... | @@ -50,7 +50,7 @@ switch (strtoupper($funcao)) |
| 50 | 50 | if(file_exists($cost_surface_path)){ |
| 51 | 51 | $pathresult = $dir_tmp."/melhorcaminho_".nomeRandomico(); |
| 52 | 52 | //cria a pasta onde os resultados serao armazenados |
| 53 | - mkdir ($pathresult,0777); | |
| 53 | + mkdir ($pathresult,0774); | |
| 54 | 54 | |
| 55 | 55 | //parametros para o calculo de melhor caminho e linha reta |
| 56 | 56 | $best = array( |
| ... | ... | @@ -125,7 +125,7 @@ switch (strtoupper($funcao)) |
| 125 | 125 | "stop_coord" => "[$ptb]" |
| 126 | 126 | ) |
| 127 | 127 | ); |
| 128 | - $processos[] = $shp; | |
| 128 | + $processos[] = $shp; | |
| 129 | 129 | } |
| 130 | 130 | //monta o array que sera utilizado para gerar o arquivo yaml que sera o input do programa python que faz o calculo |
| 131 | 131 | $a = array( | ... | ... |
init/remover.php
| ... | ... | @@ -12,6 +12,7 @@ Remove a tela inicial de apresentação do i3Geo substituindo-a pela |
| 12 | 12 | Após remover, a tela inicial pode ser vista utilizando-se o endereço i3geo/init. Para definir qual a interface que |
| 13 | 13 | será utilizada como default ao abrir o i3Geo edite o arquivo i3geo/ms_configura.php.<br><br> |
| 14 | 14 | <?php |
| 15 | +exit; | |
| 15 | 16 | $locaplic = dirname(__FILE__)."/.."; |
| 16 | 17 | include_once(dirname(__FILE__)."/../admin/php/admin.php"); |
| 17 | 18 | include_once(dirname(__FILE__)."/../admin/php/conexao.php"); | ... | ... |