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
| @@ -83,4 +83,4 @@ var v = mapa.getView(); | @@ -83,4 +83,4 @@ var v = mapa.getView(); | ||
| 83 | v.fit([<?php echo $mapext; ?>], mapa.getSize()); | 83 | v.fit([<?php echo $mapext; ?>], mapa.getSize()); |
| 84 | 84 | ||
| 85 | </script> | 85 | </script> |
| 86 | -</body> | 86 | -</body> |
| 87 | +</body> | ||
| 87 | \ No newline at end of file | 88 | \ No newline at end of file |
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, |
| @@ -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( |
| @@ -238,4 +238,4 @@ if (!connection_aborted()){ | @@ -238,4 +238,4 @@ if (!connection_aborted()){ | ||
| 238 | else{ | 238 | else{ |
| 239 | exit(); | 239 | exit(); |
| 240 | } | 240 | } |
| 241 | -?> | 241 | +?> |
| 242 | \ No newline at end of file | 242 | \ No newline at end of file |
init/remover.php
| @@ -12,6 +12,7 @@ Remove a tela inicial de apresenta&ccedil;&atilde;o do i3Geo substituindo-a pela | @@ -12,6 +12,7 @@ Remove a tela inicial de apresenta&ccedil;&atilde;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"); |
| @@ -36,8 +37,8 @@ if(file_exists("../index.htm") || file_exists("../index.html")){ | @@ -36,8 +37,8 @@ if(file_exists("../index.htm") || file_exists("../index.html")){ | ||
| 36 | } | 37 | } |
| 37 | copy("_index.htm","../index.htm"); | 38 | copy("_index.htm","../index.htm"); |
| 38 | copy("_index.html","../index.html"); | 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 | echo "<br><b>OK. Removido. Voce pode utilizar o init digitando i3geo/init no navegador"; | 42 | echo "<br><b>OK. Removido. Voce pode utilizar o init digitando i3geo/init no navegador"; |
| 42 | ?> | 43 | ?> |
| 43 | </div> | 44 | </div> |