Commit 51618b02acb6f4ad4e2c29f37b061bc0f6421fc2
1 parent
2c3a6d40
Exists in
master
remocão de arquivos desnecessarios
Showing
4 changed files
with
10 additions
and
9 deletions
Show diff stats
ferramentas/congelamapa/openlayers.php
ferramentas/congelamapa/openlayers3.php
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, |
| ... | ... | @@ -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( |
| ... | ... | @@ -238,4 +238,4 @@ if (!connection_aborted()){ |
| 238 | 238 | else{ |
| 239 | 239 | exit(); |
| 240 | 240 | } |
| 241 | -?> | |
| 241 | +?> | |
| 242 | 242 | \ No newline at end of file | ... | ... |
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"); |
| ... | ... | @@ -36,8 +37,8 @@ if(file_exists("../index.htm") || file_exists("../index.html")){ |
| 36 | 37 | } |
| 37 | 38 | copy("_index.htm","../index.htm"); |
| 38 | 39 | copy("_index.html","../index.html"); |
| 39 | -chmod("../index.htm",0774); | |
| 40 | -chmod("../index.html",0774); | |
| 40 | +chmod("../index.htm",0777); | |
| 41 | +chmod("../index.html",0777); | |
| 41 | 42 | echo "<br><b>OK. Removido. Voce pode utilizar o init digitando i3geo/init no navegador"; |
| 42 | 43 | ?> |
| 43 | 44 | </div> | ... | ... |