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