Commit a80ec6a9fb92d7834f21265fcc0ad3d275fc8cf0

Authored by Edmar Moretti
1 parent 73856214

atualização do codigo

classesphp/funcoes_gerais.php
... ... @@ -335,6 +335,7 @@ function copiaSeguranca($map_file)
335 335 }
336 336 else
337 337 {
  338 + $map_file = str_replace(".map","",$map_file).".map";
338 339 copy((str_replace(".map","seguranca.map",$map_file)),$map_file);
339 340 }
340 341 }
... ... @@ -1747,6 +1748,7 @@ function downloadTema2($map_file,$tema,$locaplic,$dir_tmp,$postgis_mapa)
1747 1748 $map_file = str_replace(".map",$nr."tmp.map",$map_file);
1748 1749 if(file_exists($qyfile)){
1749 1750 $nqyfile = str_replace(".map",".qy",$map_file);
  1751 + $nqyfile = str_replace(".qy","",$nqyfile).".qy";
1750 1752 copy($qyfile,$nqyfile);
1751 1753 }
1752 1754 $map->save($map_file);
... ...
classesphp/parse_cgi.php
... ... @@ -25,7 +25,7 @@ Este programa é distribuído na expectativa de que seja útil
25 25 porém, SEM NENHUMA GARANTIA; nem mesmo a garantia implícita
26 26 de COMERCIABILIDADE OU ADEQUAÇÃO A UMA FINALIDADE ESPECÍFICA.
27 27 Consulte a Licença Pública Geral do GNU para mais detalhes.
28   -Você deve ter recebido uma cópia da Licença Pública Geral do
  28 +Você deve ter recebido uma c�pia da Licença Pública Geral do
29 29 GNU junto com este programa; se não, escreva para a
30 30 Free Software Foundation, Inc., no endereço
31 31 59 Temple Street, Suite 330, Boston, MA 02111-1307 USA.
... ... @@ -36,7 +36,7 @@ i3geo/classesphp/parse_cgi.php
36 36  
37 37 Parâmetros:
38 38  
39   -$g_sid {string} - código da seção aberta no servidor
  39 +$g_sid {string} - c�digo da seção aberta no servidor
40 40  
41 41 $map_size {string} - string com o tamanho do novo mapa (w h)
42 42  
... ... @@ -71,12 +71,12 @@ if (!isset($map_imagecolor)) $map_imagecolor = "-1 -1 -1";
71 71  
72 72 if (!isset($map_transparent)) $map_transparent = "ON";
73 73 //
74   -//faz uma cópia do mapfile para poder manipular sem afetar omapfile atual usado pelo i3geo
  74 +//faz uma c�pia do mapfile para poder manipular sem afetar omapfile atual usado pelo i3geo
75 75 //
76 76 $nomerando = nomerandomico();
77 77 //echo $map_file."<br>";
78 78 $map_filen = str_replace(basename($map_file),$nomerando.".map",$map_file);
79   -//echo $map_filen."<br>";
  79 +$map_filen = str_replace(".map","",$map_filen).".map";
80 80 copy($map_file,$map_filen);
81 81 substituiCon($map_filen,$postgis_mapa);
82 82 $map = ms_newMapObj($map_filen);
... ...
ferramentas/congelamapa/openlayers.php
... ... @@ -11,6 +11,7 @@ if($f[0] != md5(&#39;I3GEOSEC&#39; . $_SERVER[&#39;HTTP_USER_AGENT&#39;] . session_id())){
11 11 }
12 12 include(dirname(__FILE__)."/../../classesphp/funcoes_gerais.php");
13 13 $map_file = $_SESSION["map_file"];
  14 +$map_file = str_replace(".map","",$map_file).".map";
14 15 $base = basename($map_file);
15 16 $dir = dirname($map_file);
16 17 $novo_mapfile = $dir."/".nomeRandomico(5).$base;
... ...
ferramentas/congelamapa/openlayers3.php
... ... @@ -11,9 +11,11 @@ if($f[0] != md5(&#39;I3GEOSEC&#39; . $_SERVER[&#39;HTTP_USER_AGENT&#39;] . session_id())){
11 11 }
12 12 include(dirname(__FILE__)."/../../classesphp/funcoes_gerais.php");
13 13 $map_file = $_SESSION["map_file"];
  14 +$map_file = str_replace(".map","",$map_file).".map";
14 15 $base = basename($map_file);
15 16 $dir = dirname($map_file);
16 17 $novo_mapfile = $dir."/".nomeRandomico(5).$base;
  18 +
17 19 copy($map_file,$novo_mapfile);
18 20 chmod($novo_mapfile,0744);
19 21 $mapa = ms_newMapObj($novo_mapfile);
... ...
ferramentas/opcoes_legenda/exec.php
... ... @@ -49,6 +49,7 @@ Testa os par&amp;acirc;metros de defini&amp;ccedil;&amp;atilde;o da legenda inserida no mapa
49 49 */
50 50 case "TESTALEGENDA":
51 51 include_once(dirname(__FILE__)."/../../classesphp/classe_legenda.php");
  52 + $map_file = str_replace(".map","",$map_file).".map";
52 53 copy($map_file,str_replace(".map","testeleg.map",$map_file));
53 54 $m = new Legenda(str_replace(".map","testeleg.map",$map_file));
54 55 $m->aplicaParametrosLegImg($fonte,$imagecolor,$position,$status,$outlinecolor,$keyspacingy,$keyspacingx,$keysizey,$keysizex,$height,$width,$labelsize);
... ...