Commit f6407f58a1b7de623a16dfdf6ff5cfa556f400fe
1 parent
6f15023d
Exists in
master
and in
7 other branches
inclusão da variável perfil apenas na seção e n~~ao mais no mapfile.
Showing
1 changed file
with
2 additions
and
5 deletions
Show diff stats
ms_criamapa.php
| @@ -100,6 +100,7 @@ $srid_area_ = $srid_area; | @@ -100,6 +100,7 @@ $srid_area_ = $srid_area; | ||
| 100 | $debug_ = $debug; | 100 | $debug_ = $debug; |
| 101 | $ler_extensoes_ = $ler_extensoes; | 101 | $ler_extensoes_ = $ler_extensoes; |
| 102 | $postgis_mapa_ = $postgis_mapa; | 102 | $postgis_mapa_ = $postgis_mapa; |
| 103 | +$perfil_ = $perfil; | ||
| 103 | // | 104 | // |
| 104 | //inicia a sessão | 105 | //inicia a sessão |
| 105 | // | 106 | // |
| @@ -129,6 +130,7 @@ $_SESSION["srid_area"] = $srid_area_; | @@ -129,6 +130,7 @@ $_SESSION["srid_area"] = $srid_area_; | ||
| 129 | $_SESSION["debug"] = $debug_; | 130 | $_SESSION["debug"] = $debug_; |
| 130 | $_SESSION["ler_extensoes"] = $ler_extensoes_; | 131 | $_SESSION["ler_extensoes"] = $ler_extensoes_; |
| 131 | $_SESSION["postgis_mapa"] = $postgis_mapa_; | 132 | $_SESSION["postgis_mapa"] = $postgis_mapa_; |
| 133 | +$_SESSION["perfil"] = $perfil_; | ||
| 132 | // | 134 | // |
| 133 | //pega todas as variáveis da sessão | 135 | //pega todas as variáveis da sessão |
| 134 | // | 136 | // |
| @@ -307,11 +309,6 @@ if ((isset($mapext)) && ($mapext != "")) | @@ -307,11 +309,6 @@ if ((isset($mapext)) && ($mapext != "")) | ||
| 307 | if (count($newext) == 4) | 309 | if (count($newext) == 4) |
| 308 | {$ext->setextent($newext[0], $newext[1], $newext[2], $newext[3]);} | 310 | {$ext->setextent($newext[0], $newext[1], $newext[2], $newext[3]);} |
| 309 | } | 311 | } |
| 310 | -if (isset($perfil)) | ||
| 311 | -{ | ||
| 312 | - $mapn->setmetadata("PERFIL",$perfil); | ||
| 313 | - $_SESSION["perfil"] = $perfil; | ||
| 314 | -} | ||
| 315 | // | 312 | // |
| 316 | //configura os endereços corretos | 313 | //configura os endereços corretos |
| 317 | // | 314 | // |