Commit a80ec6a9fb92d7834f21265fcc0ad3d275fc8cf0
1 parent
73856214
Exists in
master
and in
7 other branches
atualização do codigo
Showing
5 changed files
with
10 additions
and
4 deletions
Show diff stats
classesphp/funcoes_gerais.php
@@ -335,6 +335,7 @@ function copiaSeguranca($map_file) | @@ -335,6 +335,7 @@ function copiaSeguranca($map_file) | ||
335 | } | 335 | } |
336 | else | 336 | else |
337 | { | 337 | { |
338 | + $map_file = str_replace(".map","",$map_file).".map"; | ||
338 | copy((str_replace(".map","seguranca.map",$map_file)),$map_file); | 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,6 +1748,7 @@ function downloadTema2($map_file,$tema,$locaplic,$dir_tmp,$postgis_mapa) | ||
1747 | $map_file = str_replace(".map",$nr."tmp.map",$map_file); | 1748 | $map_file = str_replace(".map",$nr."tmp.map",$map_file); |
1748 | if(file_exists($qyfile)){ | 1749 | if(file_exists($qyfile)){ |
1749 | $nqyfile = str_replace(".map",".qy",$map_file); | 1750 | $nqyfile = str_replace(".map",".qy",$map_file); |
1751 | + $nqyfile = str_replace(".qy","",$nqyfile).".qy"; | ||
1750 | copy($qyfile,$nqyfile); | 1752 | copy($qyfile,$nqyfile); |
1751 | } | 1753 | } |
1752 | $map->save($map_file); | 1754 | $map->save($map_file); |
classesphp/parse_cgi.php
@@ -25,7 +25,7 @@ Este programa é distribuído na expectativa de que seja útil | @@ -25,7 +25,7 @@ Este programa é distribuído na expectativa de que seja útil | ||
25 | porém, SEM NENHUMA GARANTIA; nem mesmo a garantia implícita | 25 | porém, SEM NENHUMA GARANTIA; nem mesmo a garantia implícita |
26 | de COMERCIABILIDADE OU ADEQUAÇÃO A UMA FINALIDADE ESPECÍFICA. | 26 | de COMERCIABILIDADE OU ADEQUAÇÃO A UMA FINALIDADE ESPECÍFICA. |
27 | Consulte a Licença Pública Geral do GNU para mais detalhes. | 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 | GNU junto com este programa; se não, escreva para a | 29 | GNU junto com este programa; se não, escreva para a |
30 | Free Software Foundation, Inc., no endereço | 30 | Free Software Foundation, Inc., no endereço |
31 | 59 Temple Street, Suite 330, Boston, MA 02111-1307 USA. | 31 | 59 Temple Street, Suite 330, Boston, MA 02111-1307 USA. |
@@ -36,7 +36,7 @@ i3geo/classesphp/parse_cgi.php | @@ -36,7 +36,7 @@ i3geo/classesphp/parse_cgi.php | ||
36 | 36 | ||
37 | Parâmetros: | 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 | $map_size {string} - string com o tamanho do novo mapa (w h) | 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,12 +71,12 @@ if (!isset($map_imagecolor)) $map_imagecolor = "-1 -1 -1"; | ||
71 | 71 | ||
72 | if (!isset($map_transparent)) $map_transparent = "ON"; | 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 | $nomerando = nomerandomico(); | 76 | $nomerando = nomerandomico(); |
77 | //echo $map_file."<br>"; | 77 | //echo $map_file."<br>"; |
78 | $map_filen = str_replace(basename($map_file),$nomerando.".map",$map_file); | 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 | copy($map_file,$map_filen); | 80 | copy($map_file,$map_filen); |
81 | substituiCon($map_filen,$postgis_mapa); | 81 | substituiCon($map_filen,$postgis_mapa); |
82 | $map = ms_newMapObj($map_filen); | 82 | $map = ms_newMapObj($map_filen); |
ferramentas/congelamapa/openlayers.php
@@ -11,6 +11,7 @@ if($f[0] != md5('I3GEOSEC' . $_SERVER['HTTP_USER_AGENT'] . session_id())){ | @@ -11,6 +11,7 @@ if($f[0] != md5('I3GEOSEC' . $_SERVER['HTTP_USER_AGENT'] . session_id())){ | ||
11 | } | 11 | } |
12 | include(dirname(__FILE__)."/../../classesphp/funcoes_gerais.php"); | 12 | include(dirname(__FILE__)."/../../classesphp/funcoes_gerais.php"); |
13 | $map_file = $_SESSION["map_file"]; | 13 | $map_file = $_SESSION["map_file"]; |
14 | +$map_file = str_replace(".map","",$map_file).".map"; | ||
14 | $base = basename($map_file); | 15 | $base = basename($map_file); |
15 | $dir = dirname($map_file); | 16 | $dir = dirname($map_file); |
16 | $novo_mapfile = $dir."/".nomeRandomico(5).$base; | 17 | $novo_mapfile = $dir."/".nomeRandomico(5).$base; |
ferramentas/congelamapa/openlayers3.php
@@ -11,9 +11,11 @@ if($f[0] != md5('I3GEOSEC' . $_SERVER['HTTP_USER_AGENT'] . session_id())){ | @@ -11,9 +11,11 @@ if($f[0] != md5('I3GEOSEC' . $_SERVER['HTTP_USER_AGENT'] . session_id())){ | ||
11 | } | 11 | } |
12 | include(dirname(__FILE__)."/../../classesphp/funcoes_gerais.php"); | 12 | include(dirname(__FILE__)."/../../classesphp/funcoes_gerais.php"); |
13 | $map_file = $_SESSION["map_file"]; | 13 | $map_file = $_SESSION["map_file"]; |
14 | +$map_file = str_replace(".map","",$map_file).".map"; | ||
14 | $base = basename($map_file); | 15 | $base = basename($map_file); |
15 | $dir = dirname($map_file); | 16 | $dir = dirname($map_file); |
16 | $novo_mapfile = $dir."/".nomeRandomico(5).$base; | 17 | $novo_mapfile = $dir."/".nomeRandomico(5).$base; |
18 | + | ||
17 | copy($map_file,$novo_mapfile); | 19 | copy($map_file,$novo_mapfile); |
18 | chmod($novo_mapfile,0744); | 20 | chmod($novo_mapfile,0744); |
19 | $mapa = ms_newMapObj($novo_mapfile); | 21 | $mapa = ms_newMapObj($novo_mapfile); |
ferramentas/opcoes_legenda/exec.php
@@ -49,6 +49,7 @@ Testa os par&acirc;metros de defini&ccedil;&atilde;o da legenda inserida no mapa | @@ -49,6 +49,7 @@ Testa os par&acirc;metros de defini&ccedil;&atilde;o da legenda inserida no mapa | ||
49 | */ | 49 | */ |
50 | case "TESTALEGENDA": | 50 | case "TESTALEGENDA": |
51 | include_once(dirname(__FILE__)."/../../classesphp/classe_legenda.php"); | 51 | include_once(dirname(__FILE__)."/../../classesphp/classe_legenda.php"); |
52 | + $map_file = str_replace(".map","",$map_file).".map"; | ||
52 | copy($map_file,str_replace(".map","testeleg.map",$map_file)); | 53 | copy($map_file,str_replace(".map","testeleg.map",$map_file)); |
53 | $m = new Legenda(str_replace(".map","testeleg.map",$map_file)); | 54 | $m = new Legenda(str_replace(".map","testeleg.map",$map_file)); |
54 | $m->aplicaParametrosLegImg($fonte,$imagecolor,$position,$status,$outlinecolor,$keyspacingy,$keyspacingx,$keysizey,$keysizex,$height,$width,$labelsize); | 55 | $m->aplicaParametrosLegImg($fonte,$imagecolor,$position,$status,$outlinecolor,$keyspacingy,$keyspacingx,$keysizey,$keysizex,$height,$width,$labelsize); |